client

package
v0.0.0-...-a772d94 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: Apache-2.0 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 {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(url *url.URL, log *zerolog.Logger) *Client

func (*Client) Handshake

func (c *Client) Handshake(ctx context.Context) error

func (*Client) SubscribeWithExt

func (c *Client) SubscribeWithExt(ctx context.Context, channel string, ext map[string]any, callback func(*message.Message)) error

type Subscriptions

type Subscriptions struct {
	// contains filtered or unexported fields
}

func NewSubscriptions

func NewSubscriptions() *Subscriptions

func (*Subscriptions) Add

func (s *Subscriptions) Add(channel string, callback func(*message.Message))

Jump to

Keyboard shortcuts

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