Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnManager ¶
type ConnManager struct {
// contains filtered or unexported fields
}
func NewConnManager ¶
func NewConnManager() *ConnManager
func (*ConnManager) Close ¶
func (m *ConnManager) Close()
func (*ConnManager) RegisterToManager ¶
func (m *ConnManager) RegisterToManager(authTimeoutS, readTimeoutM time.Duration, conn *Connection)
func (*ConnManager) RemoveFromManager ¶
func (m *ConnManager) RemoveFromManager(reason string, conn *Connection) *Connection
type Connection ¶
type Connection struct { Id uint64 Ctx *channel.ConnContext // contains filtered or unexported fields }
func NewConnection ¶
func NewConnection(id uint64, conn *net.Conn) *Connection
func (*Connection) Close ¶
func (c *Connection) Close(msg string) error
func (*Connection) Push ¶
func (c *Connection) Push(msg []byte)
func (*Connection) ReadLoop ¶
func (c *Connection) ReadLoop()
Click to show internal directories.
Click to hide internal directories.