middleware

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalMW added in v0.2.0

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

func NewGlobalMiddleware added in v0.2.0

func NewGlobalMiddleware(base http.Handler, intermediates []IntermediateMW) *GlobalMW

func (GlobalMW) ServeHTTP added in v0.2.0

func (global GlobalMW) ServeHTTP(rw http.ResponseWriter, r *http.Request)

implements the http.Handler interface

func (GlobalMW) Shutdown added in v0.2.0

func (global GlobalMW) Shutdown()

type IntermediateMW added in v0.2.0

type IntermediateMW interface {
	Wrap(next http.Handler) http.Handler
	Shutdown()
}

func PromoteWrapper added in v0.2.0

func PromoteWrapper(wrap func(http.Handler) http.Handler) IntermediateMW

Directories

Path Synopsis
responder
sse

Jump to

Keyboard shortcuts

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