Documentation
¶
Index ¶
- Variables
- func AllowedIP(store kv.Store, ip net.IP) bool
- func DefaultForbiddenHandler(ctx fh.Ctx) error
- func LoadFile(store kv.Store, path string) error
- func New(allowed ...string) fh.HandlerFunc
- func NewWithConfig(config Config) fh.HandlerFunc
- func SaveList(store kv.Store, allowed ...string) error
- func StartFileWatcher(store kv.Store, path string, interval time.Duration) (func(), error)
- type Config
- type ForbiddenHandler
- type KeyFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrForbidden = errors.New("ipwhitelist: forbidden")
Functions ¶
func DefaultForbiddenHandler ¶
func New ¶
func New(allowed ...string) fh.HandlerFunc
func NewWithConfig ¶
func NewWithConfig(config Config) fh.HandlerFunc
Types ¶
type ForbiddenHandler ¶
Click to show internal directories.
Click to hide internal directories.