middleware

package
v0.0.0-...-a4a4373 Latest Latest
Warning

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

Go to latest
Published: May 22, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Recoverer

type Recoverer interface {
	Handler() func(next http.Handler) http.Handler
}

func NewRecoverer

func NewRecoverer(l RequestLogger) Recoverer

type RequestLogger

type RequestLogger interface {
	FromContext(context.Context) logging.Logger
	Handler() func(next http.Handler) http.Handler
}

RequestLogger represents a way to log all requests.

func NewRequestLogger

func NewRequestLogger(log logging.Logger) RequestLogger

NewRequestLogger creates a new RequestLogger to log all requests.

Jump to

Keyboard shortcuts

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