Documentation
¶
Index ¶
- func NewClient(cfg config.NorthMQTTConfig) (link.Link, error)
- func NewObserver() mqtt.Observer
- type MqttClient
- func (m *MqttClient) Close() error
- func (m *MqttClient) GetFailMsg() chan []byte
- func (m *MqttClient) GetLinkID() string
- func (m *MqttClient) Send(ctx *comctx.Context, data *link.SendMessage) error
- func (m *MqttClient) SetFailMsg(fallMsg chan []byte)
- func (m *MqttClient) SyncSend(ctx *comctx.Context, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewObserver ¶
Types ¶
type MqttClient ¶
func (*MqttClient) Close ¶
func (m *MqttClient) Close() error
func (*MqttClient) GetFailMsg ¶
func (m *MqttClient) GetFailMsg() chan []byte
func (*MqttClient) GetLinkID ¶
func (m *MqttClient) GetLinkID() string
func (*MqttClient) Send ¶
func (m *MqttClient) Send(ctx *comctx.Context, data *link.SendMessage) error
func (*MqttClient) SetFailMsg ¶
func (m *MqttClient) SetFailMsg(fallMsg chan []byte)
Click to show internal directories.
Click to hide internal directories.