Documentation ¶
Index ¶
- func BasicAuth(username, password string) func(http.Handler) http.Handler
- func Ctx(extenders ...func(context.Context) context.Context) func(http.Handler) http.Handler
- func Logger(logger *zap.Logger, durationThreshold time.Duration) func(http.Handler) http.Handler
- func PrivateAddressPool() []net.IPNet
- func VerifyRemoteAddressIsPrivate(privateAddressPool []net.IPNet) func(http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrivateAddressPool ¶
func VerifyRemoteAddressIsPrivate ¶
VerifyRemoteAddressIsPrivate verifies origin client IP contains in privateAddressPool if len(privateAddressPool) == 0, than system uses default pool from PrivateAddressPool you can set or add additional IP addresses to the IP-pool.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.