Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CTIUrl = "https://cti.api.crowdsec.net" CTIUrlSuffix = "/v2/smoke/" CTIApiKey = "" )
View Source
var ( CTIBackOffUntil time.Time CTIBackOffDuration = 5 * time.Minute )
when hitting quotas or auth errors, we temporarily disable the API
View Source
var ( CTICache gcache.Cache CacheExpiration time.Duration )
Cache for responses
View Source
var CTIApiEnabled = false
this is set for non-recoverable errors, such as 403 when querying API or empty API key
Functions ¶
func CrowdsecCTI ¶
func CrowdsecCTI(ip string) (*cticlient.SmokeItem, error) {
func CrowdsecCTIInitCache ¶
func InitCrowdsecCTI ¶
func ShutdownCrowdsecCTI ¶
func ShutdownCrowdsecCTI()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.