wsclient

package
v0.0.0-...-3071a76 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelSub

type ChannelSub interface {
	GetArg() map[string]string
	ReceiveData([]byte)
}

type Client

type Client struct {
	Addr okapi.BaseURL

	Channels map[string]ChannelSub

	ArgToID func(map[string]string) string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(addr okapi.BaseURL, argFunc func(map[string]string) string, apiKeys ...*rest.APIKey) (*Client, error)

func (*Client) Close

func (c *Client) Close()

func (*Client) Connect

func (c *Client) Connect() error

func (*Client) HandleOpRes

func (c *Client) HandleOpRes(res *types.Response) error

func (*Client) Subscribe

func (c *Client) Subscribe(cs types.ChannelSub) error

Jump to

Keyboard shortcuts

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