Documentation
¶
Index ¶
Constants ¶
View Source
const ( CONNECT = 1 CONNACK = 2 PUBLISH = 3 PUBACK = 4 SUBSCRIBE = 8 SUBACK = 9 DISCONNECT = 14 )
Constants for MQTT packet types
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MQTTClient ¶
type MQTTClient struct { ID string Session quic.Connection Stream quic.Stream }
MQTTClient represents a connected MQTT client
type MessageEvent ¶
MessageEvent represents a published message
type QUICBroker ¶
type QUICBroker struct {
// contains filtered or unexported fields
}
QUICBroker is a simple MQTT broker using QUIC transport
func NewQUICBroker ¶
func NewQUICBroker(addr string, insecure bool) (*QUICBroker, error)
NewQUICBroker creates a new MQTT broker using QUIC transport
Click to show internal directories.
Click to hide internal directories.