Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEchoAgent ¶
func GetSendAgent ¶
func GetSingleAgent ¶
Types ¶
type EchoAgent ¶
type EchoAgent struct {
SingleAgent
}
EchoAgent 最简单的 Echo 代理,发什么回什么,使用单例实现(也可以和 Conn 一一对应)
type SingleAgent ¶
type SingleAgent struct {
}
SingleAgent 最简单的网络代理,单例且不响应任何事件
func (*SingleAgent) OnClose ¶
func (agent *SingleAgent) OnClose(_ core.Conn)
func (*SingleAgent) OnConnect ¶
func (agent *SingleAgent) OnConnect(_ core.Conn)
Click to show internal directories.
Click to hide internal directories.