middleware

package
v0.0.0-...-9a81921 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommonMiddleware = alice.New(
	mylog.Log.AccessMiddleware,
	handlers.RecoveryHandler(),
)

Functions

This section is empty.

Types

type AddContext

type AddContext struct {
	Ctx context.Context
}

func (*AddContext) Use

func (a *AddContext) Use(h http.Handler) http.Handler

type Authenticate

type Authenticate struct {
	AuthSvc *service.AuthService
	Db      data.Queryer
}

func (*Authenticate) Use

func (a *Authenticate) Use(h http.Handler) http.Handler

type Middleware

type Middleware interface {
	Use(context.Context, http.Handler) http.Handler
}

Jump to

Keyboard shortcuts

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