Documentation ¶
Index ¶
- Constants
- func ConfigureAdminEndpoints(processContext *process.ProcessContext, routers httputil.Routers)
- func CreateClient(cfg *config.Dendrite, dnsCache *fclient.DNSCache) *fclient.Client
- func CreateFederationClient(cfg *config.Dendrite, dnsCache *fclient.DNSCache) fclient.FederationClient
- func PlatformSanityChecks()
- func SetupAndServeHTTP(processContext *process.ProcessContext, cfg *config.Dendrite, ...)
- func WaitForShutdown(processCtx *process.ProcessContext)
Constants ¶
View Source
const HTTPServerTimeout = time.Minute * 5
Variables ¶
This section is empty.
Functions ¶
func ConfigureAdminEndpoints ¶ added in v0.13.0
func ConfigureAdminEndpoints(processContext *process.ProcessContext, routers httputil.Routers)
func CreateClient ¶ added in v0.13.0
CreateClient creates a new client (normally used for media fetch requests). Should only be called once per component.
func CreateFederationClient ¶ added in v0.13.0
func CreateFederationClient(cfg *config.Dendrite, dnsCache *fclient.DNSCache) fclient.FederationClient
CreateFederationClient creates a new federation client. Should only be called once per component.
func PlatformSanityChecks ¶ added in v0.13.0
func PlatformSanityChecks()
func SetupAndServeHTTP ¶ added in v0.13.0
func SetupAndServeHTTP( processContext *process.ProcessContext, cfg *config.Dendrite, routers httputil.Routers, externalHTTPAddr config.ServerAddress, certFile, keyFile *string, )
SetupAndServeHTTP sets up the HTTP server to serve client & federation APIs and adds a prometheus handler under /_dendrite/metrics.
func WaitForShutdown ¶ added in v0.13.0
func WaitForShutdown(processCtx *process.ProcessContext)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.