feat kafka

This commit is contained in:
2026-01-23 21:22:58 +08:00
parent 1edebb439c
commit 4d661d0813
9 changed files with 296 additions and 7 deletions

View File

@@ -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 {