talk

package
v0.0.0-...-37e6509 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TClient

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

func NewTClient

func NewTClient(c conf.MqttConfig, clientId string, tchanPrefix string) *TClient

func (*TClient) ClientId

func (t *TClient) ClientId() string

func (*TClient) Connect

func (t *TClient) Connect() error

func (*TClient) Send

func (t *TClient) Send(tmsg *talk.TMessage) (*talk.TMessage, error)

func (*TClient) SetReqHandler

func (t *TClient) SetReqHandler(h TMsgHandler)

func (*TClient) Watch

func (t *TClient) Watch(key string) (chan *talk.TMessage, error)

type TMsgHandler

type TMsgHandler func(path string, payload []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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