Versions in this module Expand all Collapse all v0 v0.14.1 Jan 16, 2025 v0.14.0 Dec 18, 2024 Changes in this version + const DendriteAdminPathPrefix + const PublicClientPathPrefix + const PublicFederationPathPrefix + const PublicKeyPathPrefix + const PublicMediaPathPrefix + const PublicStaticPath + const PublicWellKnownPrefix + const SynapseAdminPathPrefix + var NotAllowedHandler = WrapHandlerInCORS(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { ... })) + var NotFoundCORSHandler = WrapHandlerInCORS(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { ... })) + func MakeAdminAPI(metricsName string, userAPI userapi.QueryAcccessTokenAPI, ...) http.Handler + func MakeAuthAPI(metricsName string, userAPI userapi.QueryAcccessTokenAPI, ...) http.Handler + func MakeExternalAPI(metricsName string, f func(*http.Request) util.JSONResponse) http.Handler + func MakeHTTPAPI(metricsName string, userAPI userapi.QueryAcccessTokenAPI, enableMetrics bool, ...) http.Handler + func URLDecodeMapValues(vmap map[string]string) (map[string]string, error) + func WrapHandlerInBasicAuth(h http.Handler, b BasicAuth) http.HandlerFunc + func WrapHandlerInCORS(h http.Handler) http.HandlerFunc + type AuthAPIOption func(opts *AuthAPIOpts) + func WithAllowGuests() AuthAPIOption + func WithAuth() AuthAPIOption + type AuthAPIOpts struct + GuestAccessAllowed bool + WithAuth bool + type BasicAuth struct + Password string + Username string + type RateLimits struct + func NewRateLimits(cfg *config.RateLimiting) *RateLimits + func (l *RateLimits) Limit(req *http.Request, device *userapi.Device) *util.JSONResponse + type Routers struct + Client *mux.Router + DendriteAdmin *mux.Router + Federation *mux.Router + Keys *mux.Router + Media *mux.Router + Static *mux.Router + SynapseAdmin *mux.Router + WellKnown *mux.Router + func NewRouters() Routers