middleware

package
v0.0.0-...-bb63497 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProxyAuthHeader = "Proxy-Authorization"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

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

func NewMiddleware

func NewMiddleware(cfg *config.Config) *Middleware

func (*Middleware) ProxyAuth

func (m *Middleware) ProxyAuth(ctx *goproxy.ProxyCtx) error

func (*Middleware) RateLimit

func (m *Middleware) RateLimit(r *http.Request) error

Jump to

Keyboard shortcuts

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