Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithContextLog ¶
func WithContextLog() fiber.Handler
func WithIPAllowList ¶
func WithIPAllowList(allowlist []string) fiber.Handler
WithIPAllowList is the option that allowlist the IP. If the IP is in the allowlist, the request will be passed. Otherwise, the request will be dropped.
Example:
WithIPAllowList([]string{"192.168.1.0/24"})
func WithRecover ¶
func WithRecover() fiber.Handler
WithRecover is the middleware that recovers from panics.
func WithRequestLog ¶
WithRequestLog is the middleware that logs the request. If you want to masked your request. You can configure it by setting on log agent. Some agent have feature like redaction rule to mask the request body.
Types ¶
type Middleware ¶
type Middleware fiber.Handler
Click to show internal directories.
Click to hide internal directories.