managed

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(address string, slotName string, opts ...Option) (c *client, err error)

Types

type DeathLink struct {
	Raw    api.Bounced
	Time   time.Time
	Cause  string
	Source string
}

type Option

type Option func(client *client)

func WithGame

func WithGame(game string) Option

func WithLogger added in v0.0.2

func WithLogger(l utils.Logger) Option

triggers when a deathlink is gotten, and does something.

func WithOnDeathlink(callback func(ctx context.Context, cmd DeathLink) error) Option

triggers when a deathlink is gotten, and does something.

func WithOnDisconnect added in v0.0.2

func WithOnDisconnect(callback func(err error)) Option

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

func WithOnRoomUpdate(callback func(ctx context.Context, cmd api.RoomUpdate) error) Option

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

func WithPassword(password string) Option

type ReceivedItems added in v0.0.3

type ReceivedItems struct {
	Raw            api.ReceivedItems
	ItemName       string
	SourceSlotName string
	DestSlotName   string
	LocationName   string
}

Jump to

Keyboard shortcuts

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