Versions in this module Expand all Collapse all v1 v1.0.0 Mar 24, 2021 Changes in this version + type Agent interface + Close func() + Destroy func() + GetNo func() uint32 + LocalAddr func() net.Addr + RemoteAddr func() net.Addr + SetUserData func(data interface{}) + UserData func() interface{} + WriteMsg func(msg interface{}) + type ClientGate struct + AgentChanRPC *chanrpc.Server + AutoReconnect bool + CloseAgentName string + ConnNum int + ConnectInterval time.Duration + HTTPTimeout time.Duration + MaxMsgLen uint32 + NewAgentName string + PendingWriteNum int + Processor network.Processor + ReadTimeOut time.Duration + TCPAddr string + TcpParser network.TcpParser + WSAddr string + func (c *ClientGate) OnDestroy() + func (c *ClientGate) Run() + func (c *ClientGate) Stop() + type ServerGate struct + AgentChanRPC *chanrpc.Server + CertFile string + CloseAgentName string + HTTPTimeout time.Duration + KeyFile string + MaxConnNum int + MaxMsgLen uint32 + NewAgentName string + PendingWriteNum int + Processor network.Processor + TCPAddr string + TcpParser network.TcpParser + WSAddr string + func (gate *ServerGate) OnDestroy() + func (gate *ServerGate) Run(closeSig chan bool)