Documentation ¶
Overview ¶
Package allow provides a client-allowed middleware.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Allow ¶
func Allow(cidrs ...string) (middleware.Middleware, error)
Allowlist returns a new middleware named "allow" that only allows the request that the client ip is contained in the given cidrs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.