Versions in this module Expand all Collapse all v1 v1.0.0 Aug 26, 2026 Changes in this version + const APIKeyIDHeader + const APIKeySecretHeader + var ErrInvalidAccessDocument = errors.New("server: invalid access document") + var ErrInvalidConfiguration = errors.New("server: invalid configuration") + func NewAdministrativeHandler(api http.Handler, extractor authhttp.CredentialExtractor, ...) (http.Handler, error) + type Config struct + IdleTimeout time.Duration + MaxHeaderBytes int + ReadHeaderTimeout time.Duration + ReadTimeout time.Duration + ShutdownTimeout time.Duration + WriteTimeout time.Duration + type Server struct + func New(listener net.Listener, handler http.Handler, config Config) (*Server, error) + func (server *Server) Run(ctx context.Context) error + type StaticAccess struct + Authenticator authentication.Authenticator + Authorizer *controlauthz.Authorizer + Challenge authentication.Challenge + Extractor *authhttp.Extractor + func LoadStaticAccess(reader io.Reader, maxBytes int64) (*StaticAccess, error) + func LoadStaticAccessFile(path string, maxBytes int64) (*StaticAccess, error) + func NewStaticAccess(keys []apikey.Entry, entries []acl.Entry) (*StaticAccess, error)