Documentation
¶
Index ¶
Constants ¶
View Source
const ( CLUSTER_CLIENT_START_SUCCESS = 2 CLUSTER_CLIENT_NET_BREAK = -2 CLUSTER_CLIENT_START_ERROR = -3 CLUSTER_CLIENT_SEND_MESSAGE = 1 CLUSTER_CLIENT_SEND_USER = 4 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterClient ¶
type ClusterClient struct { *user.UserLite Raddress *net.TCPAddr // contains filtered or unexported fields }
func NewClusterClient1 ¶ added in v1.0.2
func NewClusterClient1(raddress *net.TCPAddr) *ClusterClient
func NewClusterClient2 ¶
func NewClusterClient2(raddress string) *ClusterClient
func (*ClusterClient) Start ¶
func (cc *ClusterClient) Start(clusterClientHandleFunc ClusterClientHandleFunc)
type ClusterClientHandleFunc ¶ added in v1.0.2
type ClusterClientHandleFunc func(*ClusterClient, *message.Message, int) error
Click to show internal directories.
Click to hide internal directories.