Documentation ¶
Index ¶
- type CORSOption
- type Middleware
- func BodyLimit(limit int64) Middleware
- func CORS(options ...CORSOption) Middleware
- func Logger() Middleware
- func RateLimit(rateLimit int) Middleware
- func Recovery() Middleware
- func Timeout(duration time.Duration) Middleware
- func Trace(name string, options ...otelhttp.Option) Middleware
- func TraceId() Middleware
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CORSOption ¶
type Middleware ¶
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 TraceId ¶
func TraceId() Middleware
Click to show internal directories.
Click to hide internal directories.