diff --git a/config/external/external-config.go b/config/external/external-config.go new file mode 100644 index 0000000..aee994f --- /dev/null +++ b/config/external/external-config.go @@ -0,0 +1,14 @@ +package external + +import ( + "git.loafle.net/overflow/commons-go/config/external/grpc" + "git.loafle.net/overflow/commons-go/config/external/kafka" + "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"` +} + diff --git a/config/external/grpc/grpc-config.go b/config/external/grpc/grpc-config.go new file mode 100644 index 0000000..f468157 --- /dev/null +++ b/config/external/grpc/grpc-config.go @@ -0,0 +1,6 @@ +package grpc + + +type GRPConfig struct { + Address string `json:"address"` +} diff --git a/config/external/kafka/kafka-config.go b/config/external/kafka/kafka-config.go new file mode 100644 index 0000000..a6700f7 --- /dev/null +++ b/config/external/kafka/kafka-config.go @@ -0,0 +1,6 @@ +package kafka + + +type KafkaConfig struct { + Address string `json:"address"` +} \ No newline at end of file diff --git a/config/external/redis/redis-config.go b/config/external/redis/redis-config.go new file mode 100644 index 0000000..e8c3c92 --- /dev/null +++ b/config/external/redis/redis-config.go @@ -0,0 +1,6 @@ +package redis + + +type RedisConfig struct { + Address string `json:"address"` +} \ No newline at end of file diff --git a/glide.yaml b/glide.yaml new file mode 100644 index 0000000..2d6247f --- /dev/null +++ b/glide.yaml @@ -0,0 +1,2 @@ +package: git.loafle.net/overflow/commons-go +import: []