core

package
v0.0.0-...-cb2ae7d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

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()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL