ing
This commit is contained in:
parent
677677ab0e
commit
bdab9ab2a7
|
@ -6,9 +6,8 @@ import (
|
|||
"git.loafle.net/overflow/commons-go/config/external/redis"
|
||||
)
|
||||
|
||||
type ExternalConfig struct {
|
||||
GRPC *grpc.GRPConfig `json:"grpc"`
|
||||
Kafka *kafka.KafkaConfig `json:"kafka"`
|
||||
Redis *redis.RedisConfig `json:"redis"`
|
||||
type External struct {
|
||||
GRPC *grpc.GRPC `json:"grpc"`
|
||||
Kafka *kafka.Kafka `json:"kafka"`
|
||||
Redis *redis.Redis `json:"redis"`
|
||||
}
|
||||
|
6
config/external/grpc/grpc-config.go
vendored
6
config/external/grpc/grpc-config.go
vendored
|
@ -1,6 +0,0 @@
|
|||
package grpc
|
||||
|
||||
|
||||
type GRPConfig struct {
|
||||
Address string `json:"address"`
|
||||
}
|
6
config/external/grpc/grpc.go
vendored
Normal file
6
config/external/grpc/grpc.go
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
package grpc
|
||||
|
||||
type GRPC struct {
|
||||
Network string `json:"network"`
|
||||
Address string `json:"address"`
|
||||
}
|
6
config/external/kafka/kafka-config.go
vendored
6
config/external/kafka/kafka-config.go
vendored
|
@ -1,6 +0,0 @@
|
|||
package kafka
|
||||
|
||||
|
||||
type KafkaConfig struct {
|
||||
Address string `json:"address"`
|
||||
}
|
6
config/external/kafka/kafka.go
vendored
Normal file
6
config/external/kafka/kafka.go
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
package kafka
|
||||
|
||||
type Kafka struct {
|
||||
Network string `json:"network"`
|
||||
Address string `json:"address"`
|
||||
}
|
6
config/external/redis/redis-config.go
vendored
6
config/external/redis/redis-config.go
vendored
|
@ -1,6 +0,0 @@
|
|||
package redis
|
||||
|
||||
|
||||
type RedisConfig struct {
|
||||
Address string `json:"address"`
|
||||
}
|
6
config/external/redis/redis.go
vendored
Normal file
6
config/external/redis/redis.go
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
package redis
|
||||
|
||||
type Redis struct {
|
||||
Network string `json:"network"`
|
||||
Address string `json:"address"`
|
||||
}
|
Loading…
Reference in New Issue
Block a user