middleware

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewForwardMiddleware

func NewForwardMiddleware(leader string) *forwardMiddleware

Types

type CORSMiddleware

type CORSMiddleware struct{}

func NewCORSMiddleware

func NewCORSMiddleware() *CORSMiddleware

func (*CORSMiddleware) Name

func (c *CORSMiddleware) Name() string

func (*CORSMiddleware) WrapHandler

func (c *CORSMiddleware) WrapHandler(handler api.HandlerFunc) api.HandlerFunc

WrapHandler returns a new handler function wrapping the previous one in the request chain.

type NCSACommonLogMiddleware

type NCSACommonLogMiddleware struct {
}

func NewNCSACommonLogMiddleware

func NewNCSACommonLogMiddleware() *NCSACommonLogMiddleware

func (*NCSACommonLogMiddleware) Name

func (m *NCSACommonLogMiddleware) Name() string

func (*NCSACommonLogMiddleware) WrapHandler

func (m *NCSACommonLogMiddleware) WrapHandler(handler api.HandlerFunc) api.HandlerFunc

Jump to

Keyboard shortcuts

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