func AuthMiddleware(requiredUser, requiredPassword, realm string) endpoint.Middleware
AuthMiddleware returns a Basic Authentication middleware for a particular user and password.
AuthError represents an authorization error.
type AuthError struct { Realm string }
func (AuthError) Error() string
Error is an implementation of the Error interface.
func (e AuthError) Headers() http.Header
Headers is an implementation of the Headerer interface in go-kit/http.
func (AuthError) StatusCode() int
StatusCode is an implementation of the StatusCoder interface in go-kit/http.