middleware

package
v0.0.0-...-749ffa6 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CORSOption

type CORSOption func(c *cors.Config)

type Middleware

type Middleware func(next http.Handler) http.Handler

func BodyLimit

func BodyLimit(limit int64) Middleware

func CORS

func CORS(options ...CORSOption) Middleware

func Logger

func Logger() Middleware

func RateLimit

func RateLimit(rateLimit int) Middleware

func Recovery

func Recovery() Middleware

func Timeout

func Timeout(duration time.Duration) Middleware

Timeout TODO

func Trace

func Trace(name string, options ...otelhttp.Option) Middleware

func TraceId

func TraceId() Middleware

Jump to

Keyboard shortcuts

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