Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator struct { Type string Authenticate func(*http.Request) bool Forbidden http.Handler }
Authenticator middleware
func (Authenticator) ServeHandler ¶
func (m Authenticator) ServeHandler(h http.Handler) http.Handler
ServeHandler implements middleware interface
type BasicAuthenticator ¶
BasicAuthenticator middleware
func Basic ¶
func Basic(username, password string) *BasicAuthenticator
Basic creates new basic auth middleware
func (BasicAuthenticator) ServeHandler ¶
func (m BasicAuthenticator) ServeHandler(h http.Handler) http.Handler
ServeHandler implements middleware interface
Click to show internal directories.
Click to hide internal directories.