加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
einx.go 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
Cyinx 提交于 2018-10-11 11:32 . no log commit
package einx
import (
"github.com/Cyinx/einx/agent"
"github.com/Cyinx/einx/component"
"github.com/Cyinx/einx/context"
"github.com/Cyinx/einx/event"
"github.com/Cyinx/einx/lua"
"github.com/Cyinx/einx/module"
"github.com/Cyinx/einx/network"
"github.com/Cyinx/einx/timer"
"sync"
)
type EventMsg = event.EventMsg
type EventType = event.EventType
type Agent = agent.Agent
type AgentID = agent.AgentID
type Component = component.Component
type ComponentID = component.ComponentID
type MsgHandler = module.MsgHandler
type RpcHandler = module.RpcHandler
type WorkerPool = module.WorkerPool
type ModuleRouter = module.ModuleRouter
type ComponentMgr = module.ComponentMgr
type SessionEventMsg = event.SessionEventMsg
type LuaRuntime = lua_state.LuaRuntime
type NetLinker = network.NetLinker
type ProtoTypeID = network.ProtoTypeID
type SessionMgr = network.SessionMgr
type SessionHandler = network.SessionHandler
type ITcpClientMgr = network.ITcpClientMgr
type ITcpServerMgr = network.ITcpServerMgr
type TimerHandler = timer.TimerHandler
type EventReceiver = event.EventReceiver
type Module = context.Module
type Context = context.Context
type einx struct {
end_wait sync.WaitGroup
close_chan chan bool
}
func (this *einx) do_close() {
module.Close()
}
func (this *einx) close() {
this.end_wait.Wait()
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化