middleware

package
v3.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap added in v3.1.0

func Wrap(handler http.Handler, mw ...Middleware) http.Handler

Wrap wraps handler with middleware chain.

Types

type IPWhiteList added in v3.1.0

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

type Middleware added in v3.1.0

type Middleware func(http.Handler) http.Handler

func RateLimiter

func RateLimiter(config *model.RateLimiterConfig) Middleware

func RequestLogger added in v3.1.0

func RequestLogger(logger *slog.Logger, skipPaths []string) Middleware

RequestLogger returns a middleware that logs request details using provided logger.

Jump to

Keyboard shortcuts

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