package
0.14.1
Repository: https://github.com/element-hq/dendrite.git
Documentation: pkg.go.dev

# Functions

MakeAdminAPI is a wrapper around MakeAuthAPI which enforces that the request can only be completed by a user that is a server administrator.
MakeAuthAPI turns a util.JSONRequestHandler function into an http.Handler which authenticates the request.
MakeExternalAPI turns a util.JSONRequestHandler function into an http.Handler.
MakeHTTPAPI adds Span metrics to the HTML Handler function This is used to serve HTML alongside JSON error messages.
No description provided by the author
No description provided by the author
URLDecodeMapValues is a function that iterates through each of the items in a map, URL decodes the value, and returns a new map with the decoded values under the same key names.
WithAllowGuests checks that guest users have access to this endpoint.
WithAuth is an option to MakeHTTPAPI to add authentication.
WrapHandlerInBasicAuth adds basic auth to a handler.
WrapHandlerInCORS adds CORS headers to all responses, including all error responses.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
BasicAuth is used for authorization on /metrics handlers.
No description provided by the author
No description provided by the author

# Type aliases

AuthAPIOption is an option to MakeAuthAPI to add additional checks (e.g.