Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DestroyRouter ¶
func DestroyRouter(router *Router)
Types ¶
type Context ¶
type MqttApi ¶
type MqttApi struct {
// contains filtered or unexported fields
}
type MqttClient ¶
type MqttClient struct {
// contains filtered or unexported fields
}
type MqttClientOptions ¶
type Option ¶
type Option func(options *Options)
func WithLogSkipPaths ¶
WithLogSkipPaths 设置日志跳过的打印路径
func WithMqttOptions ¶
func WithMqttOptions(mqttOptions *MqttClientOptions) Option
WithMqttOptions 设置mqtt配置
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
func (Options) GetTopicPrefix ¶
type Router ¶
type Router struct { Group string // contains filtered or unexported fields }
func (*Router) AddGlobalHandlers ¶
func (*Router) Start ¶
func (router *Router) Start(mqttOptions *MqttClientOptions) error
Click to show internal directories.
Click to hide internal directories.