Documentation ¶
Index ¶
Constants ¶
View Source
const ( START = 0 RUN = 1 END = -1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterClient ¶
func NewClusterClient ¶
func NewClusterClient(host string, port int) *ClusterClient
func NewClusterClient2 ¶
func NewClusterClient2(addr string) *ClusterClient
func (*ClusterClient) Start ¶
func (this *ClusterClient) Start(handler HandlerFunc, messageHandler MessageHandlerFunc, sendUserHandlerFunc SendUserHandlerFunc)
type HandlerFunc ¶
type HandlerFunc func(*ClusterClient, int)
type MessageHandlerFunc ¶
type MessageHandlerFunc func(*ClusterClient, *message.Message, string) error
type SendUserHandlerFunc ¶
type SendUserHandlerFunc func(*ClusterClient, string, int)
Click to show internal directories.
Click to hide internal directories.