-
Notifications
You must be signed in to change notification settings - Fork 572
/
config.go
18 lines (17 loc) · 1008 Bytes
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package utils
type Config struct {
Debug bool `default:"false"`
Mode string `default:"worker" required:"true"`
MetricsPort string `default:"8181" split_words:"true"`
KafkaBrokers []string `default:"deepfence-kafka-broker:9092" required:"true" split_words:"true"`
KafkaTopicPartitions int32 `default:"1" split_words:"true"`
KafkaTopicReplicas int16 `default:"1" split_words:"true"`
KafkaTopicRetentionMs string `default:"86400000" split_words:"true"`
RedisHost string `default:"deepfence-redis" required:"true" split_words:"true"`
RedisDbNumber int `default:"0" split_words:"true"`
RedisPort string `default:"6379" split_words:"true"`
RedisPassword string `default:"" split_words:"true"`
TasksConcurrency int `default:"50" split_words:"true"`
ProcessQueues []string `split_words:"true"`
MaxScanWorkload int `default:"5" split_words:"true"`
}