Documentation
¶
Index ¶
- Constants
- type Middleware
- func CreateStack(xs ...Middleware) Middleware
- func Gzip() Middleware
- func IPExtractor() Middleware
- func Logger(logger *slog.Logger) Middleware
- func Protected(service *auth.Service) Middleware
- func RateLimiter(rate rate.Limit, burst int, expiresIn time.Duration) Middleware
- func Recover() Middleware
- func Secure() Middleware
Constants ¶
View Source
const IPExtractorKey = "ip"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
func CreateStack ¶
func CreateStack(xs ...Middleware) Middleware
func Gzip ¶
func Gzip() Middleware
func IPExtractor ¶
func IPExtractor() Middleware
func Logger ¶
func Logger(logger *slog.Logger) Middleware
func Protected ¶
func Protected(service *auth.Service) Middleware
func RateLimiter ¶
func Recover ¶
func Recover() Middleware
func Secure ¶
func Secure() Middleware
Click to show internal directories.
Click to hide internal directories.