Documentation
¶
Index ¶
- type MqttConnection
- func (mq *MqttConnection) Close()
- func (mq *MqttConnection) Connect() error
- func (mq *MqttConnection) Publish(topic string, qos byte, retained bool, payload []byte) error
- func (mq *MqttConnection) Stop()
- func (mq *MqttConnection) Subscribe(subPath string, pubFn func(client mqtt.Client, msg mqtt.Message)) error
- type Quicer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MqttConnection ¶
type MqttConnection struct { ConnectionUrl string // MqttPath string ToStop bool State models.ServerStatus ClientOptions *mqtt.ClientOptions // contains filtered or unexported fields }
func NewMqttConnection ¶
func NewMqttConnection(brokerUrl string, opts ...*mqtt.ClientOptions) (*MqttConnection, error)
func (*MqttConnection) Close ¶
func (mq *MqttConnection) Close()
func (*MqttConnection) Connect ¶
func (mq *MqttConnection) Connect() error
func (*MqttConnection) Stop ¶
func (mq *MqttConnection) Stop()
type Quicer ¶
type Quicer struct { Cfg quic.Config RoundTripper *http3.RoundTripper Client *http.Client }
func QuicConnect ¶
Click to show internal directories.
Click to hide internal directories.