commands

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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) Bounce

func (c *Client) Bounce(ctx context.Context, data api.Bounce) (err error)

func (*Client) CloseCallback

func (c *Client) CloseCallback(err error)

func (*Client) CommandCallback

func (c *Client) CommandCallback(ctx context.Context, cmds api.Commands)

func (*Client) Connect

func (c *Client) Connect(ctx context.Context, data api.Connect) (err error)

func (*Client) ConnectUpdate

func (c *Client) ConnectUpdate(ctx context.Context, data api.ConnectUpdate) (err error)

func (*Client) Get

func (c *Client) Get(ctx context.Context, data api.Get) (err error)

func (*Client) GetDataPackage

func (c *Client) GetDataPackage(ctx context.Context, data api.GetDataPackage) (err error)

func (*Client) LocationChecks

func (c *Client) LocationChecks(ctx context.Context, data api.LocationChecks) (err error)

func (*Client) LocationScouts

func (c *Client) LocationScouts(ctx context.Context, data api.LocationScouts) (err error)

func (*Client) Say

func (c *Client) Say(ctx context.Context, data api.Say) (err error)

func (*Client) Set

func (c *Client) Set(ctx context.Context, data api.Set) (err error)

func (*Client) SetNotify

func (c *Client) SetNotify(ctx context.Context, data api.SetNotify) (err error)

func (*Client) StatusUpdate

func (c *Client) StatusUpdate(ctx context.Context, data api.StatusUpdate) (err error)

func (*Client) Sync

func (c *Client) Sync(ctx context.Context, data api.Sync) (err error)

func (*Client) UpdateHint

func (c *Client) UpdateHint(ctx context.Context, data api.UpdateHint) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL