Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthMiddleware ¶
func AuthMiddleware(requiredUser, requiredPassword, realm string) endpoint.Middleware
AuthMiddleware returns a Basic Authentication middleware for a particular user and password.
Types ¶
type AuthError ¶
type AuthError struct {
Realm string
}
AuthError represents an authorization error.
func (AuthError) StatusCode ¶
StatusCode is an implementation of the StatusCoder interface in go-kit/http.
Click to show internal directories.
Click to hide internal directories.