auth

package
v0.0.0-...-c360844 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2016 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const Type = "auth"

Variables

This section is empty.

Functions

func CliFlags

func CliFlags() []cli.Flag

func FromCli

func FromCli(c *cli.Context) (plugin.Middleware, error)

func FromOther

func FromOther(a Auth) (plugin.Middleware, error)

func GetSpec

func GetSpec() *plugin.MiddlewareSpec

Types

type Auth

type Auth struct {
	User, Pass string
}

func New

func New(user, pass string) (*Auth, error)

func (*Auth) NewHandler

func (a *Auth) NewHandler(next http.Handler) (http.Handler, error)

func (*Auth) String

func (a *Auth) String() string

Jump to

Keyboard shortcuts

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