feat kafka
This commit is contained in:
@@ -27,6 +27,7 @@ type DBConfig struct {
|
||||
MySQL map[string]*MySQLConfig `yaml:"mysql"`
|
||||
Mongo map[string]*MongoConfig `yaml:"mongo"`
|
||||
Redis *RedisConfig `yaml:"redis"`
|
||||
Kafka *KafkaConfig `yaml:"kafka"`
|
||||
}
|
||||
|
||||
type EtcdConfig struct {
|
||||
@@ -52,6 +53,11 @@ type RedisConfig struct {
|
||||
DB int `yaml:"db"`
|
||||
}
|
||||
|
||||
type KafkaConfig struct {
|
||||
GroupID string `yaml:"groupID"`
|
||||
Brokers []string `yaml:"brokers"`
|
||||
}
|
||||
|
||||
type ServeConfig struct {
|
||||
Grpc *GrpcConfig `yaml:"grpc"`
|
||||
Socket *struct {
|
||||
|
||||
Reference in New Issue
Block a user