Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithContextLog ¶
func WithIPAllowList ¶
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 ¶
WithRecover is the middleware that recovers from panics.
Types ¶
type Middleware ¶
Click to show internal directories.
Click to hide internal directories.