Versions in this module Expand all Collapse all v0 v0.4.1 Jan 17, 2020 Changes in this version + func KillProcess(pid int) error + func WriteConfig(filename string, conf *RelaySetting) error + type AppSection struct + Args string + Curr int + Host string + OutPort uint16 + Pid int + Ports []uint16 + Prog string + func (app *AppSection) GetInPort(curr, next bool, number int) uint16 + func (app *AppSection) RunServer(port string, verbose bool) int + type BuffSection struct + ReadBuffSize int + func (c BuffSection) GetBuffSize() int + type LogSection struct + Level string + Logdir string + func (c LogSection) GetLogger() *logging.Logger + type MesgSection struct + Exchange string + Routings []string + Url string + func (c MesgSection) Push(id int, msg *queue.Message) error + type RelaySetting map[string]*AppSection + func GetConfig(filename string) (*RelaySetting, error) + func (conf RelaySetting) GetSection(name string) *AppSection + type ServSection struct + Host string + Port int + Tick int + type ServSetting struct + Log LogSection + Proto BuffSection + Rabbit MesgSection + Server ServSection v0.4.0 Jan 16, 2020