middleware

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 17 Imported by: 7

Documentation

Index

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 Authentication

func Authentication(engine token.Engine) func(http.Handler) http.Handler

func LogRequest added in v0.3.1

func LogRequest(config *config.Config) func(next http.Handler) http.Handler

func Recoverer added in v0.3.0

func Recoverer() func(http.Handler) http.Handler

func RequireAuthentication

func RequireAuthentication(handler http.HandlerFunc) http.HandlerFunc

func SetupContext

func SetupContext(config *config.Config) func(http.Handler) http.Handler

func Timeout

func Timeout(config *config.Config) func(next http.Handler) http.Handler

func WithBasicContext

func WithBasicContext(ctx context.Context, config *config.Config) context.Context

func WithSession

func WithSession(manager *session.Manager) func(http.Handler) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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