middleware

package
v0.0.1-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2016 License: BSD-3-Clause Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessLog

type AccessLog struct{}

func NewAccessLog

func NewAccessLog() (*AccessLog, error)

func (*AccessLog) MiddlewareFunc

func (l *AccessLog) MiddlewareFunc(handler rest.HandlerFunc) rest.HandlerFunc

type Logger

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

func NewLogger

func NewLogger(logger log.Logger) (*Logger, error)

func (*Logger) MiddlewareFunc

func (l *Logger) MiddlewareFunc(handler rest.HandlerFunc) rest.HandlerFunc

type Recover

type Recover struct{}

func NewRecover

func NewRecover() (*Recover, error)

func (*Recover) MiddlewareFunc

func (r *Recover) MiddlewareFunc(handler rest.HandlerFunc) rest.HandlerFunc

type Trace

type Trace struct{}

func NewTrace

func NewTrace() (*Trace, error)

func (*Trace) MiddlewareFunc

func (l *Trace) MiddlewareFunc(handler rest.HandlerFunc) rest.HandlerFunc

Jump to

Keyboard shortcuts

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