whitelists

package
v0.2.10-30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IPWhitelist

func IPWhitelist(acl map[string]bool) fiber.Handler

IPWhitelist takes an acl map of IPs and checks incoming requests for matches. In acl map, the key is either an IP address or an IP network, while the bool value indicates it is allowed or blocked.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL