Documentation
¶
Index ¶
- func CheckBlacklist(asAPI bool) fiber.Handler
- func CheckPathOr404() fiber.Handler
- func CheckWhitelist(asAPI bool) fiber.Handler
- func CounterStats() map[string]any
- func DefaultLogCondition(c *fiber.Ctx, elapsed time.Duration) bool
- func HTTPCounter(name string) fiber.Handler
- func RecoverLogger() fiber.Handler
- func WebLogger(cond LogCondition) fiber.Handler
- func WithTimeout(dur time.Duration, timeoutErrors ...error) fiber.Handler
- func WithTimeoutDefault(timeoutErrors ...error) fiber.Handler
- type LogCondition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CounterStats ¶
func DefaultLogCondition ¶
func WithTimeout ¶
WithTimeout 附加超时上下文, Handler 需要使用 <-ctx.UserContext().Done
func WithTimeoutDefault ¶
func WithTimeoutDefault(timeoutErrors ...error) fiber.Handler
Types ¶
type LogCondition ¶
LogCondition 日志记录条件计算器
Click to show internal directories.
Click to hide internal directories.