Documentation ¶
Index ¶
- func GetID(network, address string, seed int) string
- func GetRLimit() syscall.Rlimit
- type Client
- type Pool
- type PoolImpl
- func (p *PoolImpl) ClientIDs() []string
- func (p *PoolImpl) Close() error
- func (p *PoolImpl) ForEach(callback func(client *Client) error)
- func (p *PoolImpl) Pool() sync.Map
- func (p *PoolImpl) Pop(ID string) *Client
- func (p *PoolImpl) Put(client *Client) error
- func (p *PoolImpl) Shutdown()
- func (p *PoolImpl) Size() int
- type Proxy
- type ProxyImpl
- type Server
- func (s *Server) OnBoot(engine gnet.Engine) gnet.Action
- func (s *Server) OnClose(c gnet.Conn, err error) (action gnet.Action)
- func (s *Server) OnOpen(c gnet.Conn) (out []byte, action gnet.Action)
- func (s *Server) OnShutdown(engine gnet.Engine)
- func (s *Server) OnTick() (delay time.Duration, action gnet.Action)
- func (s *Server) OnTraffic(c gnet.Conn) gnet.Action
- func (s *Server) Run()
- func (s *Server) Shutdown()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type ProxyImpl ¶
type ProxyImpl struct { PoolSize int Elastic bool ReuseElasticClients bool // contains filtered or unexported fields }
func (*ProxyImpl) Disconnect ¶
func (*ProxyImpl) PassThrough ¶
Click to show internal directories.
Click to hide internal directories.