log-agent/conf/config.go

24 lines
403 B
Go
Raw Permalink Normal View History

2024-08-29 00:42:11 +08:00
package config
type AppConfig struct {
KafkaConf `ini:"kafka"`
2024-09-02 00:26:06 +08:00
EtcdConf `ini:"etcd"`
2024-08-29 00:42:11 +08:00
}
type KafkaConf struct {
2024-09-09 08:54:56 +08:00
Address string `ini:"address"`
ChanMaxSize int `ini:"chan_max_size"`
2024-08-29 00:42:11 +08:00
}
2024-09-02 00:26:06 +08:00
type EtcdConf struct {
Address string `ini:"address"`
2024-09-09 08:54:56 +08:00
Key string `ini:"collect_log_key"`
2024-09-02 00:26:06 +08:00
Timeout int `ini:"timeout"`
}
//--- unused ---
2024-08-29 00:42:11 +08:00
type TailLog struct {
FileName string `ini:"filename"`
}