Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config 配置结构体,用于存储应用相关的配置. 不用 viper.Get,是因为这种方式能更加清晰的知道应用提供了哪些配置项.
func (*Config) NewUnionServer ¶
func (cfg *Config) NewUnionServer() (*UnionServer, error)
NewUnionServer 根据配置创建联合服务器.
type UnionServer ¶
type UnionServer struct {
// contains filtered or unexported fields
}
UnionServer 定义一个联合服务器. 根据 ServerMode 决定要启动的服务器类型.
Click to show internal directories.
Click to hide internal directories.