示例#1
0
文件: main.go 项目: cokeboL/ZIM
func main() {
	SigHandler.Start(chAppStop)

	Logger.Start(1, 1, 1)

	Monitor.Start(Commen.GetConfig(Commen.CourierMonitorAddr), NetConf.MONITOR_INTERNAL, chAppStop)

	NetCore.StartTcpServer(Commen.GetConfig(Commen.CourierAddr), chAppStop)

	InitHandlers()

	EventMgrExample()

	WaitStop()
}
示例#2
0
文件: main.go 项目: cokeboL/ZIM
func main() {
	SigHandler.Start(chAppStop)

	Logger.Start(1, 1, 1)

	Monitor.Start(Commen.GetConfig(Commen.WorkerMonitorAddr), NetConf.MONITOR_INTERNAL, chAppStop)

	//DBMgr.Start(Commen.GetConfig(Commen.MysqlAddr), 3, Commen.GetConfig(Commen.MongoAddr), 5, chAppStop)

	NetCore.StartTcpServer(Commen.GetConfig(Commen.WorkerAddr), chAppStop)

	//ServerJob.InitAgent(Commen.GetConfig(Commen.CourierAddr), NetConf.Worker, chAppStop)

	WaitStop()
}
示例#3
0
文件: main.go 项目: cokeboL/GoWorld
func main() {
	SigHandler.Start()

	Logger.Start(1, 1, 1)

	Monitor.Start(Commen.GetConfig(Commen.WorkerMonitorAddr), 5, chAppStop)

	ServerJob.InitHandlers()

	ClientJob.InitHandlers()

	DBMgr.Start(Commen.GetConfig(Commen.MysqlAddr), 3, Commen.GetConfig(Commen.MongoAddr), 5, chAppStop)

	NetCore.StartTcpServer(Commen.GetConfig(Commen.WorkerAddr), chAppStop)

	ServerJob.InitAgent(Commen.GetConfig(Commen.CourierAddr), NetConf.Worker, chAppStop)

	WaitStop()
}