2017-11-10 13:24:10 +00:00
|
|
|
package config
|
|
|
|
|
2017-11-23 07:34:55 +00:00
|
|
|
import (
|
|
|
|
oosc "git.loafle.net/overflow/overflow_server_config"
|
|
|
|
)
|
|
|
|
|
2017-11-10 13:24:10 +00:00
|
|
|
var Config GatewayConfig
|
|
|
|
|
|
|
|
type GatewayConfig struct {
|
2017-11-23 07:34:55 +00:00
|
|
|
Server *oosc.Server `json:"server" yaml:"server" toml:"server"`
|
|
|
|
Auth *oosc.Auth `json:"auth" yaml:"auth" toml:"auth"`
|
|
|
|
Websocket *oosc.Websocket `json:"websocket" yaml:"websocket" toml:"websocket"`
|
|
|
|
GRPC *oosc.GRPC `json:"gRPC" yaml:"gRPC" toml:"gRPC"`
|
|
|
|
Redis *oosc.Redis `json:"redis" yaml:"redis" toml:"redis"`
|
|
|
|
Servlets map[string]*oosc.Servlet `json:"servlets" yaml:"servlets" toml:"servlets"`
|
2017-11-10 13:24:10 +00:00
|
|
|
}
|