middleware

package
v0.0.0-...-a8f6685 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuth

type BasicAuth struct {
	Username, Password string
}

func (BasicAuth) Wrap

func (b BasicAuth) Wrap(next http.Handler) http.Handler

type Chain

type Chain []Middleware

func (Chain) Wrap

func (mc Chain) Wrap(next http.Handler) http.Handler

type Logger

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

func (Logger) Wrap

func (l Logger) Wrap(next http.Handler) http.Handler

type Middleware

type Middleware interface {
	Wrap(http.Handler) http.Handler
}

func NewBasicAuth

func NewBasicAuth(username, password string) Middleware

func NewHttpsEnforcer

func NewHttpsEnforcer(forceHttps bool) Middleware

func NewLogger

func NewLogger(logger lager.Logger, routePrefix string) Middleware

func NewPanicRecovery

func NewPanicRecovery(logger lager.Logger) Middleware

type PanicRecovery

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

func (PanicRecovery) Wrap

func (p PanicRecovery) Wrap(next http.Handler) http.Handler

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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