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)
Click to show internal directories.
Click to hide internal directories.