Documentation
¶
Index ¶
- Constants
- func Authentication(engine token.Engine) func(http.Handler) http.Handler
- func LogRequest(config *config.Config) func(next http.Handler) http.Handler
- func Recoverer() func(http.Handler) http.Handler
- func RequireAuthentication(handler http.HandlerFunc) http.HandlerFunc
- func SetupContext(config *config.Config) func(http.Handler) http.Handler
- func Timeout(config *config.Config) func(next http.Handler) http.Handler
- func WithBasicContext(ctx context.Context, config *config.Config) context.Context
- func WithSession(manager *session.Manager) func(http.Handler) http.Handler
Constants ¶
View Source
const RequireAuthenticationMessage = "require authentication to access api"
Due to Hydrum's law, do not modify this message.
Variables ¶
This section is empty.
Functions ¶
func LogRequest ¶ added in v0.3.1
func RequireAuthentication ¶
func RequireAuthentication(handler http.HandlerFunc) http.HandlerFunc
func WithBasicContext ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.