middleware

package
v0.0.0-...-2dc3ea6 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2014 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {
	Scopes       []string
	UAAPublicKey string
}

func NewAuthenticator

func NewAuthenticator(publicKey string, scopes ...string) Authenticator

func (Authenticator) Error

func (ware Authenticator) Error(w http.ResponseWriter, code int, message string) bool

func (Authenticator) HasScope

func (ware Authenticator) HasScope(elements interface{}, key string) bool

func (Authenticator) ServeHTTP

func (ware Authenticator) ServeHTTP(w http.ResponseWriter, req *http.Request, context stack.Context) bool

type CORS

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

func NewCORS

func NewCORS(origin string) CORS

func (CORS) ServeHTTP

func (ware CORS) ServeHTTP(w http.ResponseWriter, req *http.Request, context stack.Context) bool

Jump to

Keyboard shortcuts

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