mqtt

package module
v0.0.0-...-c396fa1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindHeader

func FindHeader(pd []byte) (n int)

func NewBroker

func NewBroker(opts ...broker.Option) broker.Broker

func NewCache

func NewCache(timeout time.Duration) *cache

初始化缓存

func WithAuth

func WithAuth(username string, password string) broker.Option

WithAuth set username & password options

func WithAutoReconnect

func WithAutoReconnect(enable bool) broker.Option

WithAutoReconnect enable aut reconnect option

func WithCleanSession

func WithCleanSession(enable bool) broker.Option

WithCleanSession enable clean session option

func WithClientId

func WithClientId(clientId string) broker.Option

WithClientId set client id option

func WithOrderMatters

func WithOrderMatters(enable bool) broker.Option

WithOrderMatters .

func WithPublishQos

func WithPublishQos(qos byte) broker.PublishOption

WithPublishQos QOS

func WithPublishRetained

func WithPublishRetained(qos byte) broker.PublishOption

WithPublishRetained retained

func WithResumeSubs

func WithResumeSubs(enable bool) broker.Option

WithResumeSubs .

func WithSubscribeQos

func WithSubscribeQos(qos byte) broker.SubscribeOption

WithSubscribeQos QOS

Types

type AuthRecord

type AuthRecord struct {
	Username string
	Password string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL