mqtt5

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDialTimeOut = 30
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Mqtt5Client

type Mqtt5Client struct {
	// contains filtered or unexported fields
}

func NewMqtt5Client

func NewMqtt5Client(config config.Mqtt5Config) Mqtt5Client

NewMqtt5Client create, initializes and returns new instance of Mqtt5Client

func (*Mqtt5Client) Connect

func (c *Mqtt5Client) Connect(ctx context.Context, logger log.Logger) error

Connect establishes a connection to a MQTT server.

func (*Mqtt5Client) Disconnect

func (c *Mqtt5Client) Disconnect() error

Disconnect closes the connection to the connected MQTT server.

func (*Mqtt5Client) SetAuthData

func (c *Mqtt5Client) SetAuthData(secretProvider interfaces.SecretProvider, logger log.Logger) error

SetAuthData retrieves and sets up auth data from secret provider according to AuthMode and SecretName

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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