github.com/crowdsecurity/crowdsec@v1.6.1/pkg/types/datasource.go (about) 1 package types 2 3 import ( 4 "time" 5 ) 6 7 type DataSource struct { 8 SourceURL string `yaml:"source_url"` 9 DestPath string `yaml:"dest_file"` 10 Type string `yaml:"type"` 11 //Control cache strategy on expensive regexps 12 Cache *bool `yaml:"cache"` 13 Strategy *string `yaml:"strategy"` 14 Size *int `yaml:"size"` 15 TTL *time.Duration `yaml:"ttl"` 16 }