This commit is contained in:
crusader 2017-09-19 17:59:57 +09:00
parent b9232b20e6
commit 59ed7df624
2 changed files with 8 additions and 8 deletions

View File

@ -1,16 +1,16 @@
package conf
import (
ofc "git.loafle.net/overflow/overflow_config"
ofgc "git.loafle.net/overflow/overflow_gateway_config"
)
var Config Conf
type Conf struct {
Server ofc.Server `json:"server" yaml:"server" toml:"server"`
Auth ofc.Auth `json:"auth" yaml:"auth" toml:"auth"`
Websocket ofc.Websocket `json:"websocket" yaml:"websocket" toml:"websocket"`
GRPC ofc.GRPC `json:"gRPC" yaml:"gRPC" toml:"gRPC"`
Redis ofc.Redis `json:"redis" yaml:"redis" toml:"redis"`
Handlers map[string]ofc.Handler `json:"handlers" yaml:"handlers" toml:"handlers"`
Server ofgc.Server `json:"server" yaml:"server" toml:"server"`
Auth ofgc.Auth `json:"auth" yaml:"auth" toml:"auth"`
Websocket ofgc.Websocket `json:"websocket" yaml:"websocket" toml:"websocket"`
GRPC ofgc.GRPC `json:"gRPC" yaml:"gRPC" toml:"gRPC"`
Redis ofgc.Redis `json:"redis" yaml:"redis" toml:"redis"`
Handlers map[string]ofgc.Handler `json:"handlers" yaml:"handlers" toml:"handlers"`
}

View File

@ -28,4 +28,4 @@ import:
- package: google.golang.org/grpc
subpackages:
- metadata
- package: git.loafle.net/overflow/overflow_config
- package: git.loafle.net/overflow/overflow_gateway_config