client

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 5 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 {
	// contains filtered or unexported fields
}

func (*Client) Begin

func (client *Client) Begin(url url.URL) error

func (*Client) SendEvent

func (client *Client) SendEvent(event *primitives.Message)

func (*Client) Stop

func (client *Client) Stop() error

type IClient added in v0.0.6

type IClient interface {
	Begin(url url.URL) error
	Stop() error

	SendEvent(event *primitives.Message)
}

func NewClient

func NewClient(commandHandler func(command *primitives.Message)) IClient

Jump to

Keyboard shortcuts

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