Documentation
¶
Index ¶
- Constants
- func Addr2Ints(anyIP string) (int, int64, int64, int64, int64, error)
- func GetOrigins() []string
- func IP2Ints(pip net.IP) (int, int64, int64, error)
- func LastAddress(n net.IPNet) net.IP
- func NormalizeScope(scope string) string
- func Range2Ints(network net.IPNet) (int, int64, int64, int64, int64, error)
Constants ¶
View Source
const ( ApiKeyAuthType = "api-key" TlsAuthType = "tls" PasswordAuthType = "password" )
View Source
const ( CscliOrigin = "cscli" CrowdSecOrigin = "crowdsec" ConsoleOrigin = "console" CscliImportOrigin = "cscli-import" ListOrigin = "lists" CAPIOrigin = "CAPI" CommunityBlocklistPullSourceScope = "crowdsecurity/community-blocklist" RemediationSyncOrigin = "remediation_sync" )
View Source
const ( Undefined = "" Ip = "Ip" Range = "Range" Filter = "Filter" Country = "Country" AS = "AS" )
Move in leakybuckets
View Source
const DecisionTypeBan = "ban"
Variables ¶
This section is empty.
Functions ¶
func GetOrigins ¶ added in v1.5.0
func GetOrigins() []string
func LastAddress ¶
LastAddress returns the last address of a network
func NormalizeScope ¶ added in v1.6.3
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.