base

package
v1.1.32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2026 License: AGPL-3.0 Imports: 26 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const HTTPServerTimeout = time.Minute * 15

Variables

View Source
var StaticContent = staticContent

Functions

func ConfigureAdminEndpoints

func ConfigureAdminEndpoints(processContext *process.ProcessContext, routers httputil.Routers)

func CreateClient

func CreateClient(cfg *config.Dendrite, dnsCache *fclient.DNSCache) *fclient.Client

CreateClient creates a new client (normally used for media fetch requests). Should only be called once per component.

func CreateFederationClient

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

func PlatformSanityChecks()

func SetupAndServeHTTP

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

func WaitForShutdown(processCtx *process.ProcessContext)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL