Documentation ¶
Index ¶
- Variables
- func AddModuleComponent(m module.Module, c Component, mgr interface{})
- func AddTcpServerMgr(m module.Module, addr string, mgr interface{}, opts ...Option)
- func Close()
- func ContinueClose()
- func Init(opts ...Option)
- func NewLuaStae() *lua_state.LuaRuntime
- func Run()
- func StartTcpClientMgr(m module.Module, name string, mgr interface{}, opts ...Option)
- type Agent
- type AgentID
- type ArgsVar
- type Component
- type ComponentID
- type ComponentMgr
- type Context
- type EventMsg
- type EventReceiver
- type EventType
- type ITcpClientMgr
- type ITcpServerMgr
- type ITranMsgMultiple
- type LuaRuntime
- type Module
- type ModuleRouter
- type MsgHandler
- type NetLinker
- type Option
- type ProtoTypeID
- type RpcHandler
- type SessionEventMsg
- type SessionHandler
- type SessionMgr
- type TimerHandler
- type WorkerPool
Constants ¶
This section is empty.
Variables ¶
View Source
var NetworkOption networkOpt = networkOpt{ Name: network.Name, Module: func(s string) Option { m := GetModule(s) return network.Module(m.(event.EventReceiver)) }, ListenAddr: network.ListenAddr, ServeHandler: network.ServeHandler, TransportMaxCount: network.TransportMaxCount, TransportMaxLength: network.TransportMaxLength, TransportKeepAlive: network.TransportKeepAlive, }
Functions ¶
func AddModuleComponent ¶
func AddTcpServerMgr ¶
func ContinueClose ¶
func ContinueClose()
func NewLuaStae ¶
func NewLuaStae() *lua_state.LuaRuntime
Types ¶
type ComponentID ¶
type ComponentID = component.ComponentID
type ComponentMgr ¶
type ComponentMgr = module.ComponentMgr
type EventReceiver ¶
type EventReceiver = event.EventReceiver
type ITcpClientMgr ¶
type ITcpClientMgr = network.ITcpClientMgr
type ITcpServerMgr ¶
type ITcpServerMgr = network.ITcpServerMgr
type ITranMsgMultiple ¶
type ITranMsgMultiple = network.ITranMsgMultiple
type LuaRuntime ¶
type LuaRuntime = lua_state.LuaRuntime
type ModuleRouter ¶
type ModuleRouter = module.ModuleRouter
type MsgHandler ¶
type MsgHandler = module.MsgHandler
type ProtoTypeID ¶
type ProtoTypeID = network.ProtoTypeID
type RpcHandler ¶
type RpcHandler = module.RpcHandler
type SessionEventMsg ¶
type SessionEventMsg = event.SessionEventMsg
type SessionHandler ¶
type SessionHandler = network.SessionHandler
type SessionMgr ¶
type SessionMgr = network.SessionMgr
type TimerHandler ¶
type TimerHandler = timer.TimerHandler
type WorkerPool ¶
type WorkerPool = module.WorkerPool
func CreateModuleWorkers ¶
func CreateModuleWorkers(name string, size int) WorkerPool
func GetWorkerPool ¶
func GetWorkerPool(name string) WorkerPool
Click to show internal directories.
Click to hide internal directories.