Versions in this module Expand all Collapse all v1 v1.0.1 Jun 2, 2026 Changes in this version + type Authenticator interface + Authenticate func(r *http.Request) error + type BasicAuthenticator struct + func NewBasicAuthenticator(username, password string) *BasicAuthenticator + func (a *BasicAuthenticator) Authenticate(r *http.Request) error + type BearerAuthenticator struct + func NewBearerAuthenticator(token, headerName string) *BearerAuthenticator + func (a *BearerAuthenticator) Authenticate(r *http.Request) error + type HMACAuthenticator struct + func NewHMACAuthenticator(secret, headerName, sigType string) *HMACAuthenticator + func (a *HMACAuthenticator) Authenticate(r *http.Request) error