conn

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DELETE_USER    = -1
	ADD_USER       = 1
	NO_USER        = 0
	DELETE_MACHINE = -2
	ADD_MACHINE    = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterConn

type ClusterConn struct {
	user.UserTCPConn

	LiveTime int
	Close    bool
	// contains filtered or unexported fields
}

func NewClusterConn

func NewClusterConn(conn *net.TCPConn, clusterHandleFunc ClusterHandleFunc) *ClusterConn

func (*ClusterConn) SetReadDeadline

func (cc *ClusterConn) SetReadDeadline()

func (*ClusterConn) Start

func (cc *ClusterConn) Start()

type ClusterHandleFunc added in v1.0.2

type ClusterHandleFunc func(*ClusterConn, *message.Message, int)

Jump to

Keyboard shortcuts

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