Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultUserHeader = "X-Auth-UserId" DefaultApplicationHeader = "X-Auth-ApplicationId" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthHeadersConfiguration ¶
type AuthHeadersConfiguration struct { // UserRequestHeader configure the auth header key of the user UserRequestHeader string // ApplicationRequestHeader configure the auth header key of the application ApplicationRequestHeader string }
AuthHeadersConfiguration configure the auth headers of the requests
type ContextDefinition ¶
type ContextDefinition interface { // DefineUser defines the user within the context of the request DefineUser(next http.Handler) http.Handler // DefineApplication defines the application within the context of the request DefineApplication(next http.Handler) http.Handler // DefineAction defines the action within the context of the request DefineAction(next http.Handler) http.Handler }
ContextDefinition is a set of middleware functions to create middleware chains
Click to show internal directories.
Click to hide internal directories.