Documentation
¶
Index ¶
- func NewClient(address string, slotName string, opts ...Option) (c *client, err error)
- type DeathLink
- type Option
- func WithGame(game string) Option
- func WithLogger(l utils.Logger) Option
- func WithOnDeathlink(callback func(ctx context.Context, cmd DeathLink) error) Option
- func WithOnDisconnect(callback func(err error)) Option
- func WithOnPrintJSON(...) Option
- func WithOnReceivedItems(callback func(ctx context.Context, cmd ReceivedItems) error) Option
- func WithOnRoomUpdate(callback func(ctx context.Context, cmd api.RoomUpdate) error) Option
- func WithPassword(password string) Option
- type ReceivedItems
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(client *client)
func WithLogger ¶ added in v0.0.2
triggers when a deathlink is gotten, and does something.
func WithOnDeathlink ¶
triggers when a deathlink is gotten, and does something.
func WithOnDisconnect ¶ added in v0.0.2
triggers when the disconnect is called
func WithOnPrintJSON ¶
func WithOnPrintJSON(callback func(ctx context.Context, cmd api.PrintJSON, receiverSlotInfo api.NetworkSlot, finderSlotInfo api.NetworkSlot, item string, location_where_found string) error) Option
This will likely be changed to with global item recieved.
func WithOnReceivedItems ¶
func WithOnReceivedItems(callback func(ctx context.Context, cmd ReceivedItems) error) Option
sets the check to be told that you have recieved an item.
func WithOnRoomUpdate ¶
sets the check to be told that you have collected an item somewhere. (AKA that the local state of collectables needs to be updated.)
func WithPassword ¶
type ReceivedItems ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.