server

package
v0.0.0-...-314c4ad Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2015 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthServer

type AuthServer struct {
	*mux.Router
	Store   rbac.Store
	Schemes *SchemeMap
}

func NewAuthServer

func NewAuthServer(store rbac.Store) *AuthServer

func (*AuthServer) Authenticate

func (s *AuthServer) Authenticate(r *http.Request) (user User, err error)

type Response

type Response struct {
	bytes.Buffer
	StatusCode int
	Error      error
}

func (*Response) Send

func (r *Response) Send(w http.ResponseWriter)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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