Co-authored-by: alteredCoder <kevin@crowdsec.net> Co-authored-by: he2ss <hamza.essahely@gmail.com> Co-authored-by: Sebastien Blot <sebastien@crowdsec.net>
24 lines
691 B
Go
24 lines
691 B
Go
package fflag
|
|
|
|
var Crowdsec = FeatureRegister{EnvPrefix: "CROWDSEC_FEATURE_"}
|
|
|
|
var CscliSetup = &Feature{Name: "cscli_setup", Description: "Enable cscli setup command (service detection)"}
|
|
var DisableHttpRetryBackoff = &Feature{Name: "disable_http_retry_backoff", Description: "Disable http retry backoff"}
|
|
var PapiClient = &Feature{Name: "papi_client", Description: "Enable Polling API client"}
|
|
|
|
func RegisterAllFeatures() error {
|
|
err := Crowdsec.RegisterFeature(CscliSetup)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
err = Crowdsec.RegisterFeature(DisableHttpRetryBackoff)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
err = Crowdsec.RegisterFeature(PapiClient)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|