basicauth

package
v0.0.0-...-fadaea2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(w http.ResponseWriter, r *http.Request, authFunc AuthenticatorFunc) bool

Types

type AuthenticatorFunc

type AuthenticatorFunc func(username, password string) bool

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(h http.Handler, authFunc AuthenticatorFunc, endpoints []string) *Handler

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL