kit: Index | Files

package basic

import ""


Package Files


func AuthMiddleware Uses

func AuthMiddleware(requiredUser, requiredPassword, realm string) endpoint.Middleware

AuthMiddleware returns a Basic Authentication middleware for a particular user and password.

type AuthError Uses

type AuthError struct {
    Realm string

AuthError represents an authorization error.

func (AuthError) Error Uses

func (AuthError) Error() string

Error is an implementation of the Error interface.

func (AuthError) Headers Uses

func (e AuthError) Headers() http.Header

Headers is an implementation of the Headerer interface in go-kit/http.

func (AuthError) StatusCode Uses

func (AuthError) StatusCode() int

StatusCode is an implementation of the StatusCoder interface in go-kit/http.

Package basic imports 10 packages (graph). Updated 2020-03-20. Refresh now. Tools for package owners.