mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-10 20:05:55 +02:00
* context propagation: pass ctx to UpdateScenario() * context propagation: SendMetrics, SendUsageMetrics, plugin config
20 lines
391 B
Go
20 lines
391 B
Go
package apiclient
|
|
|
|
import (
|
|
"context"
|
|
"net/url"
|
|
|
|
"github.com/go-openapi/strfmt"
|
|
)
|
|
|
|
type Config struct {
|
|
MachineID string
|
|
Password strfmt.Password
|
|
Scenarios []string
|
|
URL *url.URL
|
|
PapiURL *url.URL
|
|
VersionPrefix string
|
|
UserAgent string
|
|
RegistrationToken string
|
|
UpdateScenario func(context.Context) ([]string, error)
|
|
}
|