Documentation
¶
Index ¶
- Constants
- Variables
- func ConfigureAdminEndpoints(ctx context.Context, routers httputil.Routers)
- func CreateClient(cfg *config.Matrix, dnsCache *fclient.DNSCache) *fclient.Client
- func CreateFederationClient(cfg *config.Matrix, dnsCache *fclient.DNSCache) fclient.FederationClient
- func PlatformSanityChecks(ctx context.Context)
- func SetupHTTPOption(ctx context.Context, cfg *config.Matrix, routers httputil.Routers) (frame.Option, error)
- func WaitForShutdown(ctx context.Context)
Constants ¶
View Source
const HTTPServerTimeout = time.Minute * 5
Variables ¶
View Source
var StaticContent = staticContent
Functions ¶
func ConfigureAdminEndpoints ¶
func CreateClient ¶
CreateClient creates a new client (normally used for media fetch requests). Should only be called once per component.
func CreateFederationClient ¶
func CreateFederationClient(cfg *config.Matrix, dnsCache *fclient.DNSCache) fclient.FederationClient
CreateFederationClient creates a new federation client. Should only be called once per component.
func PlatformSanityChecks ¶
func SetupHTTPOption ¶ added in v0.6.0
func SetupHTTPOption( ctx context.Context, cfg *config.Matrix, routers httputil.Routers, ) (frame.Option, error)
SetupHTTPOption sets up the HTTP server to serve client & federation APIs and adds a prometheus handler under /_dendrite/metrics.
func WaitForShutdown ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.