config file added

This commit is contained in:
geek 2018-04-09 22:09:38 +09:00
parent 0fae25e748
commit 677677ab0e
5 changed files with 34 additions and 0 deletions

14
config/external/external-config.go vendored Normal file
View File

@ -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"`
}

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

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

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

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

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

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

2
glide.yaml Normal file
View File

@ -0,0 +1,2 @@
package: git.loafle.net/overflow/commons-go
import: []