This commit is contained in:
crusader 2018-04-10 14:24:03 +09:00
parent 677677ab0e
commit bdab9ab2a7
7 changed files with 22 additions and 23 deletions

View File

@ -6,9 +6,8 @@ import (
"git.loafle.net/overflow/commons-go/config/external/redis" "git.loafle.net/overflow/commons-go/config/external/redis"
) )
type ExternalConfig struct { type External struct {
GRPC *grpc.GRPConfig `json:"grpc"` GRPC *grpc.GRPC `json:"grpc"`
Kafka *kafka.KafkaConfig `json:"kafka"` Kafka *kafka.Kafka `json:"kafka"`
Redis *redis.RedisConfig `json:"redis"` Redis *redis.Redis `json:"redis"`
} }

View File

@ -1,6 +0,0 @@
package grpc
type GRPConfig struct {
Address string `json:"address"`
}

6
config/external/grpc/grpc.go vendored Normal file
View File

@ -0,0 +1,6 @@
package grpc
type GRPC struct {
Network string `json:"network"`
Address string `json:"address"`
}

View File

@ -1,6 +0,0 @@
package kafka
type KafkaConfig struct {
Address string `json:"address"`
}

6
config/external/kafka/kafka.go vendored Normal file
View File

@ -0,0 +1,6 @@
package kafka
type Kafka struct {
Network string `json:"network"`
Address string `json:"address"`
}

View File

@ -1,6 +0,0 @@
package redis
type RedisConfig struct {
Address string `json:"address"`
}

6
config/external/redis/redis.go vendored Normal file
View File

@ -0,0 +1,6 @@
package redis
type Redis struct {
Network string `json:"network"`
Address string `json:"address"`
}