middleware

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

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

Go to latest
Published: Oct 17, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddMiddleware

type AddMiddleware interface {
	Add(*[]alice.Constructor, *app.Application)
}

* / Add middleware in App under certain condition..

type Middleware

type Middleware struct {
	// all middleware
	AllMiddleware []AddMiddleware
	// middleware only included in application
	IncludeMiddleware []alice.Constructor
}

func (*Middleware) AddMiddleware

func (m *Middleware) AddMiddleware(middleware ...AddMiddleware)

func (Middleware) GetHandler

func (m Middleware) GetHandler(h http.HandlerFunc) http.Handler

func (*Middleware) LoadApplication

func (m *Middleware) LoadApplication(application *app.Application) []alice.Constructor

Method loading middleware for application

Jump to

Keyboard shortcuts

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