Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetMessage ¶
func (c *Client) GetMessage() (*pb.SyncMessage, error)
func (*Client) SetConnectionSateHandler ¶
func (c *Client) SetConnectionSateHandler(h ConnectionStateHandler)
type ConnectionStateHandler ¶
type ConnectionStateHandler interface {
ConnectionState(active bool)
}
type ConnectionStateHandlerFunc ¶
type ConnectionStateHandlerFunc func(bool)
func (ConnectionStateHandlerFunc) ConnectionState ¶
func (f ConnectionStateHandlerFunc) ConnectionState(active bool)
type HandleMessageFunc ¶
type HandleMessageFunc func(msg *pb.SyncMessage)
type MessageHandler ¶
type MessageHandler interface {
Handle(message *pb.SyncMessage)
}
type Sender ¶
type Sender interface {
Send(message *pb.SyncMessage) error
}
Click to show internal directories.
Click to hide internal directories.