Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppSection ¶
type AppSection struct { Host string Ports []uint16 OutPort uint16 `toml:outport` Prog string Args string Curr int Pid int }
应用配置
type BuffSection ¶
type BuffSection struct {
ReadBuffSize int // 读缓冲大小(字节)
}
读缓冲配置
func (BuffSection) GetBuffSize ¶
func (c BuffSection) GetBuffSize() int
type LogSection ¶
日志配置
func (LogSection) GetLogger ¶
func (c LogSection) GetLogger() *logging.Logger
type MesgSection ¶
队列配置
type RelaySetting ¶
type RelaySetting map[string]*AppSection
配置,含多个应用配置
func (RelaySetting) GetSection ¶
func (conf RelaySetting) GetSection(name string) *AppSection
获取其中一个应用的配置
type ServSection ¶
type ServSection struct { Host string Port int Tick int // 打点器间隔(秒) BuffSection }
服务端配置
type ServSetting ¶
type ServSetting struct { Log LogSection Server ServSection Proto BuffSection Rabbit MesgSection }
Click to show internal directories.
Click to hide internal directories.