config file added
This commit is contained in:
parent
0fae25e748
commit
677677ab0e
14
config/external/external-config.go
vendored
Normal file
14
config/external/external-config.go
vendored
Normal 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
6
config/external/grpc/grpc-config.go
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
package grpc
|
||||
|
||||
|
||||
type GRPConfig struct {
|
||||
Address string `json:"address"`
|
||||
}
|
6
config/external/kafka/kafka-config.go
vendored
Normal file
6
config/external/kafka/kafka-config.go
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
package kafka
|
||||
|
||||
|
||||
type KafkaConfig struct {
|
||||
Address string `json:"address"`
|
||||
}
|
6
config/external/redis/redis-config.go
vendored
Normal file
6
config/external/redis/redis-config.go
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
package redis
|
||||
|
||||
|
||||
type RedisConfig struct {
|
||||
Address string `json:"address"`
|
||||
}
|
2
glide.yaml
Normal file
2
glide.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
package: git.loafle.net/overflow/commons-go
|
||||
import: []
|
Loading…
Reference in New Issue
Block a user