client

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2025 License: MIT Imports: 9 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 {
	Handlers map[string]func([]byte)
	Wg       *sync.WaitGroup
	// contains filtered or unexported fields
}

func NewClient

func NewClient(name string) *Client

func (*Client) DownloadAndStart

func (c *Client) DownloadAndStart()

func (*Client) HandleMessageType

func (h *Client) HandleMessageType(name string, handler func([]byte))

func (*Client) Init

func (h *Client) Init()

func (*Client) Kill

func (c *Client) Kill()

func (*Client) Respond

func (h *Client) Respond(t string, v any)

func (*Client) RunCommand

func (c *Client) RunCommand(name string, v any)

func (*Client) SetCommand

func (c *Client) SetCommand(command string)

func (*Client) StartLocal

func (c *Client) StartLocal()

Jump to

Keyboard shortcuts

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