Versions in this module Expand all Collapse all v1 v1.0.4 Jun 20, 2018 v1.0.3 May 5, 2018 Changes in this version + const VERSION + var CachePath = path.CurrentPath + "/cache" + var ConfigPath = path.CurrentPath + "/config" + var DEBUG = false + var ErrorFileNotFound = errors.New("file does not exists") + var ErrorFileParse = errors.New("config file parse error") + var LogPath = path.CurrentPath + "/logs" + var Pid = path.CurrentPath + "/wing-binlog-go.pid" + func DaemonProcess(d bool) bool + func GetKey(sessionFile string) string + func Init(hasCmd bool, configPath string) + func Release() + func Usage() + type Config struct + CachePath string + ControlListen string + LogLevel int + LogPath string + PidFile string + PprofListen string + TimeZone string + type Context struct + AppConfig *Config + Cancel context.CancelFunc + Ctx context.Context + MysqlConfig *MysqlConfig + PidFile string + PosChan chan string + func NewContext() *Context + func (ctx *Context) Done() <-chan struct{} + func (ctx *Context) Stop() + type MysqlConfig struct + Addr string + BinFile string + BinPos uint32 + Charset string + Flavor string + HeartbeatPeriod time.Duration + Password string + ReadTimeout time.Duration + ServerID uint32 + User string + type TcpConfig struct + Enable bool + Groups TcpGroupConfigs + Listen string + Port int + ServiceIp string + type TcpGroupConfig struct + Filter []string + Name string + type TcpGroupConfigs map[string]TcpGroupConfig + func (cs *TcpGroupConfigs) HasName(name string) bool