Versions in this module Expand all Collapse all v1 v1.0.6 Nov 4, 2024 Changes in this version + func BasicAuth(realm string, creds map[string]string) func(next http.Handler) http.Handler + func Setup(opts *Options) + func SetupGlobalMiddleware(handler http.Handler) http.Handler + func TokenAuth(realm string, token string) func(next http.Handler) http.Handler + type AuthBasic struct + Password string + Username string + type AuthToken struct + Token string + type Options struct + AuthBasic *AuthBasic + AuthToken *AuthToken + Handler http.Handler + Logger logger.Logger