client

package
v0.0.0-...-06e122d Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: MIT Imports: 11 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(endpoint string) *Client

func (*Client) GetPublishStream

func (c *Client) GetPublishStream(topic string) (func(payload []byte), error)

func (*Client) Subscribe

func (c *Client) Subscribe(topic string, f func(m *types.Message) (Unsubscribe bool)) error

type Conn

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

func (*Conn) Close

func (c *Conn) Close() error

func (*Conn) Init

func (c *Conn) Init(addr string, upstream *slowtable.Table) error

func (*Conn) Ping

func (c *Conn) Ping()

func (*Conn) Poll

func (c *Conn) Poll()

func (*Conn) Publish

func (c *Conn) Publish(topic string, payload []byte)

func (*Conn) Subscribe

func (c *Conn) Subscribe(topic string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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