Documentation
¶
Index ¶
- type Client
- func (c *Client) Bounce(ctx context.Context, data api.Bounce) (err error)
- func (c *Client) CloseCallback(err error)
- func (c *Client) CommandCallback(ctx context.Context, cmds api.Commands)
- func (c *Client) Connect(ctx context.Context, data api.Connect) (err error)
- func (c *Client) ConnectUpdate(ctx context.Context, data api.ConnectUpdate) (err error)
- func (c *Client) Get(ctx context.Context, data api.Get) (err error)
- func (c *Client) GetDataPackage(ctx context.Context, data api.GetDataPackage) (err error)
- func (c *Client) LocationChecks(ctx context.Context, data api.LocationChecks) (err error)
- func (c *Client) LocationScouts(ctx context.Context, data api.LocationScouts) (err error)
- func (c *Client) Say(ctx context.Context, data api.Say) (err error)
- func (c *Client) Set(ctx context.Context, data api.Set) (err error)
- func (c *Client) SetNotify(ctx context.Context, data api.SetNotify) (err error)
- func (c *Client) StatusUpdate(ctx context.Context, data api.StatusUpdate) (err error)
- func (c *Client) Sync(ctx context.Context, data api.Sync) (err error)
- func (c *Client) UpdateHint(ctx context.Context, data api.UpdateHint) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Conn network.Client
BouncedCommandHandler func(ctx context.Context, cmd api.Bounced) (err error)
ConnectedCommandHandler func(ctx context.Context, cmd api.Connected) (err error)
ConnectionRefusedCommandHandler func(ctx context.Context, cmd api.ConnectionRefused) (err error)
DataPackageCommandHandler func(ctx context.Context, cmd api.DataPackage) (err error)
InvalidPacketCommandHandler func(ctx context.Context, cmd api.InvalidPacket) (err error)
LocationInfoCommandHandler func(ctx context.Context, cmd api.LocationInfo) (err error)
PrintJSONCommandHandler func(ctx context.Context, cmd api.PrintJSON) (err error)
ReceivedItemsCommandHandler func(ctx context.Context, cmd api.ReceivedItems) (err error)
RetrievedCommandHandler func(ctx context.Context, cmd api.Retrieved) (err error)
RoomInfoCommandHandler func(ctx context.Context, cmd api.RoomInfo) (err error)
RoomUpdateCommandHandler func(ctx context.Context, cmd api.RoomUpdate) (err error)
SetReplyCommandHandler func(ctx context.Context, cmd api.SetReply) (err error)
CloseCallbackHandler func(err error)
CommandErrorHandler func(cmd api.Command, err error)
Log utils.Logger
}
func (*Client) CloseCallback ¶
func (*Client) CommandCallback ¶
func (*Client) ConnectUpdate ¶
func (*Client) GetDataPackage ¶
func (*Client) LocationChecks ¶
func (*Client) LocationScouts ¶
func (*Client) StatusUpdate ¶
func (*Client) UpdateHint ¶
Click to show internal directories.
Click to hide internal directories.