Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Builder ¶ added in v0.0.2
func Builder(providedCreds map[string]string, opts ...Option) (func(http.HandlerFunc) http.HandlerFunc, error)
Builder is a factory-type function that returns middleware that middleware function can be handed an http.HandlerFunc and returns one anything that middleware is wrapped around should require and authenticate with constant-time comparison basic auth
Types ¶
type BasicAuthConfig ¶
type BasicAuthConfig struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.