config has been changed

This commit is contained in:
crusader
2017-09-19 17:38:59 +09:00
parent 3b7c5aad87
commit 8abac7b46a
12 changed files with 63 additions and 81 deletions

16
conf/conf.go Normal file
View File

@@ -0,0 +1,16 @@
package conf
import (
ofc "git.loafle.net/overflow/overflow_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"`
}