server

package
v0.0.0-...-12d1dba Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2014 License: LGPL-3.0 Imports: 6 Imported by: 2

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.FactStore
	Schemes *affinity.SchemeMap
}

func NewAuthServer

func NewAuthServer(store rbac.FactStore) *AuthServer

func (*AuthServer) Authenticate

func (s *AuthServer) Authenticate(r *http.Request) (user affinity.Principal, 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