Documentation ¶ Index ¶ type BasicAuth func New(username, password string) BasicAuth func (a *BasicAuth) CreateMiddleware(h http.Handler) http.Handler Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type BasicAuth ¶ type BasicAuth struct { // contains filtered or unexported fields } BasicAuth is a basic implementation of the Authenticator interface. It expects requests to be sent with an Authorization header containing the HTTP Basic Authentication standard. func New ¶ func New(username, password string) BasicAuth func (*BasicAuth) CreateMiddleware ¶ func (a *BasicAuth) CreateMiddleware(h http.Handler) http.Handler Source Files ¶ View all Source files auth.go Click to show internal directories. Click to hide internal directories.