auth

package module
v0.0.0-...-7f669fa Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2016 License: Apache-2.0 Imports: 1 Imported by: 2

README

Will be deleted. Use https://github.com/abbot/go-http-auth instead

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	User     string
	Password string
	Realm    string
}

Info is the info that used for check authentification

type Wrapper

type Wrapper interface {
	Wrap(wrapped http.HandlerFunc) http.HandlerFunc
}

Wrapper is the object to wrap http.HandlerFunc and provide auth

func NewBaseAuth

func NewBaseAuth(info Info) Wrapper

NewBaseAuth create new base authentification

Jump to

Keyboard shortcuts

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