Documentation ¶
Index ¶
- type Client
- type HTTPClient
- func (h *HTTPClient) Close() error
- func (h *HTTPClient) ResetClient(cfg *mqtt.ClientConfig)
- func (h *HTTPClient) SendOrDrop(method string, pkt *mqtt.Publish) error
- func (h *HTTPClient) SendPubAck(pkt mqtt.Packet) error
- func (h *HTTPClient) SetReconnectCallback(callback mqtt.ReconnectCallback)
- func (h *HTTPClient) Start(obs mqtt.Observer)
- type MqttClient
- func (m *MqttClient) Close() error
- func (m *MqttClient) ResetClient(cfg *mqtt.ClientConfig)
- func (m *MqttClient) SendOrDrop(method string, pkt *mqtt.Publish) error
- func (m *MqttClient) SendPubAck(pkt mqtt.Packet) error
- func (m *MqttClient) SetReconnectCallback(callback mqtt.ReconnectCallback)
- func (m *MqttClient) Start(obs mqtt.Observer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { SendOrDrop(method string, pkt *mqtt.Publish) error SendPubAck(pkt mqtt.Packet) error Start(obs mqtt.Observer) ResetClient(cfg *mqtt.ClientConfig) SetReconnectCallback(callback mqtt.ReconnectCallback) io.Closer }
func NewHTTPClient ¶ added in v2.4.0
func NewMqttClient ¶
func NewMqttClient(cfg *mqtt.ClientConfig) (Client, error)
type HTTPClient ¶ added in v2.4.0
type HTTPClient struct {
// contains filtered or unexported fields
}
func (*HTTPClient) ResetClient ¶ added in v2.4.0
func (h *HTTPClient) ResetClient(cfg *mqtt.ClientConfig)
func (*HTTPClient) SendOrDrop ¶ added in v2.4.0
func (h *HTTPClient) SendOrDrop(method string, pkt *mqtt.Publish) error
func (*HTTPClient) SendPubAck ¶ added in v2.4.0
func (h *HTTPClient) SendPubAck(pkt mqtt.Packet) error
func (*HTTPClient) SetReconnectCallback ¶ added in v2.4.0
func (h *HTTPClient) SetReconnectCallback(callback mqtt.ReconnectCallback)
func (*HTTPClient) Start ¶ added in v2.4.0
func (h *HTTPClient) Start(obs mqtt.Observer)
type MqttClient ¶
type MqttClient struct {
// contains filtered or unexported fields
}
func (*MqttClient) Close ¶
func (m *MqttClient) Close() error
func (*MqttClient) ResetClient ¶ added in v2.4.0
func (m *MqttClient) ResetClient(cfg *mqtt.ClientConfig)
func (*MqttClient) SendOrDrop ¶
func (m *MqttClient) SendOrDrop(method string, pkt *mqtt.Publish) error
func (*MqttClient) SendPubAck ¶ added in v2.4.0
func (m *MqttClient) SendPubAck(pkt mqtt.Packet) error
func (*MqttClient) SetReconnectCallback ¶ added in v2.4.0
func (m *MqttClient) SetReconnectCallback(callback mqtt.ReconnectCallback)
func (*MqttClient) Start ¶
func (m *MqttClient) Start(obs mqtt.Observer)
Click to show internal directories.
Click to hide internal directories.