auth

package
v0.0.0-...-5d12fbd Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2016 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth interface {
	Wrap(wrappedHandler func(http.ResponseWriter, *http.Request)) func(w http.ResponseWriter, req *http.Request)
}

func NewBasicAuth

func NewBasicAuth(realm string, credentials []string) Auth

type BasicAuth

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

func (BasicAuth) Wrap

func (auth BasicAuth) Wrap(wrappedHandler func(http.ResponseWriter, *http.Request)) func(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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