Documentation
¶
Index ¶
Constants ¶
View Source
const REFRESH_INTERVAL_SECONDS = 60
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllowList ¶ added in v1.0.1
type AllowList interface {
GetPermission(ipAddress string) Permission
}
AllowList maintains an allow list for IP addresses
type DatabaseAllowList ¶ added in v1.0.1
type DatabaseAllowList struct {
// contains filtered or unexported fields
}
DatabaseAllowList implements database backed allow list.
func NewDatabaseAllowList ¶ added in v1.0.1
func (*DatabaseAllowList) GetPermission ¶ added in v1.0.1
func (d *DatabaseAllowList) GetPermission(ipAddress string) Permission
Get the permissions for a IP address
func (*DatabaseAllowList) Stop ¶ added in v1.0.1
func (d *DatabaseAllowList) Stop()
type Permission ¶
type Permission int64
const ( Unspecified Permission = 0 AllowAll Permission = 1 Priority Permission = 2 Denied Permission = 3 )
func (Permission) String ¶
func (p Permission) String() string
Add a string function to use for logging
Click to show internal directories.
Click to hide internal directories.