middleware

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2016 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authentication

type Authentication struct{}

func NewAuthentication

func NewAuthentication() *Authentication

func (*Authentication) ServeHTTP

func (s *Authentication) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)

type ClearContext

type ClearContext struct{}

func NewClearContext

func NewClearContext() *ClearContext

func (*ClearContext) ServeHTTP

func (s *ClearContext) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)

type RecordFeatures added in v0.2.3

type RecordFeatures struct{}

func NewRecordFeatures added in v0.2.3

func NewRecordFeatures() *RecordFeatures

func (*RecordFeatures) ServeHTTP added in v0.2.3

func (s *RecordFeatures) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)

type Recovery added in v0.2.3

type Recovery struct {
	Logger     *log.Logger
	PrintStack bool
	StackAll   bool
	StackSize  int
}

Recovery is a Negroni middleware that recovers from any panics and writes a 500 if there was one.

func NewRecovery added in v0.2.3

func NewRecovery() *Recovery

NewRecovery returns a new instance of Recovery

func (*Recovery) ServeHTTP added in v0.2.3

func (rec *Recovery) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)

Jump to

Keyboard shortcuts

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