From 677677ab0e176efe850b5dc0414d7f33af1520c3 Mon Sep 17 00:00:00 2001 From: geek Date: Mon, 9 Apr 2018 22:09:38 +0900 Subject: [PATCH] config file added --- config/external/external-config.go | 14 ++++++++++++++ config/external/grpc/grpc-config.go | 6 ++++++ config/external/kafka/kafka-config.go | 6 ++++++ config/external/redis/redis-config.go | 6 ++++++ glide.yaml | 2 ++ 5 files changed, 34 insertions(+) create mode 100644 config/external/external-config.go create mode 100644 config/external/grpc/grpc-config.go create mode 100644 config/external/kafka/kafka-config.go create mode 100644 config/external/redis/redis-config.go create mode 100644 glide.yaml 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: []