middleware

package
v1.33.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: BSD-2-Clause Imports: 15 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 (a *AccessLog) MiddlewareFunc(handler rest.HandlerFunc) rest.HandlerFunc

MiddlewareFunc adds logging of all calls, except those ignored above.

type Auth added in v1.20.0

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

func NewAuth added in v1.20.0

func NewAuth(serviceSecret string, authClient auth.Client) (*Auth, error)

func (*Auth) MiddlewareFunc added in v1.20.0

func (a *Auth) MiddlewareFunc(handlerFunc rest.HandlerFunc) rest.HandlerFunc

type Error added in v1.28.0

type Error struct{}

func NewError added in v1.28.0

func NewError() (*Error, error)

func (*Error) MiddlewareFunc added in v1.28.0

func (e *Error) 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 (t *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