middleware

package
v0.0.0-...-be43ff6 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

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

func NewEnv

func NewEnv(req *http.Request) *Env

func (*Env) Ctx

func (e *Env) Ctx() *operator.Context

func (*Env) Owner

func (e *Env) Owner(owner string) *Env

func (*Env) Req

func (e *Env) Req(req *http.Request) *Env

type Middleware

type Middleware interface {
	IsAuthorized(resource, permission string, environment *Env) func(chd.ContextHandler) chd.ContextHandler
	IsAuthenticated(next chd.ContextHandler) chd.ContextHandler
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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