middleware

package
v0.8.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: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CombinedLogFormat     = `%s %s %s [%s] "%s %s %s" %d %d "%s" "%s"`
	CombinedLogTimeFormat = "02/Jan/2006:15:04:05 -0700"
	CombinedLogBlankValue = "-"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Counting

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

func NewCountingMiddleware

func NewCountingMiddleware(queueCounter queue.Counter, upstreamHandler http.Handler) *Counting

func (*Counting) ServeHTTP

func (cm *Counting) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Logging

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

func NewLogging

func NewLogging(logger logr.Logger, upstreamHandler http.Handler) *Logging

func (*Logging) ServeHTTP

func (lm *Logging) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Metrics added in v0.8.0

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

func NewMetrics added in v0.8.0

func NewMetrics(upstreamHandler http.Handler) *Metrics

func (*Metrics) ServeHTTP added in v0.8.0

func (m *Metrics) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Routing

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

func NewRouting

func NewRouting(routingTable routing.Table, probeHandler http.Handler, upstreamHandler http.Handler, tlsEnabled bool) *Routing

func (*Routing) ServeHTTP

func (rm *Routing) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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