config.go 741 Bytes
Newer Older
qiuqunfeng's avatar
qiuqunfeng committed
1 2 3 4 5 6
package config

const (
	WeibuUrl = "https://api.threatbook.cn/v3/ip/query?apikey=d625206f5fdb49eeb98b0c30f46f4310a444f76d392540e8a0bb160d8a7d02c4&resource="
)

7 8 9 10 11 12 13 14 15 16 17 18
// var Conf Config = Config{
// 	Debug: true,
// }

//	type Config struct {
//		Debug bool
//	}
type ElasticsearchConfig struct {
	Url      string `json:"url"`
	Username string `json:"username"`
	Password string `json:"password"`
	Sniff    bool   `json:"sniff"`
19
}
qiuqunfeng's avatar
qiuqunfeng committed
20

21 22 23 24 25 26 27 28
type KafkaConfig struct {
	Brokers    []string `json:"brokers"`
	Topic      string   `json:"topic"`
	Group      string   `json:"group"`
	AuthMethod string   `json:"auth_method"`
	Username   string   `json:"username"`
	Password   string   `json:"password"`
	ScramAlgo  string   `json:"scram_algo"`
qiuqunfeng's avatar
qiuqunfeng committed
29 30 31
}

func init() {}