mqtt5

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthModeNone             = "none"
	AuthModeUsernamePassword = "usernamepassword"
	AuthModeCert             = "clientcert"
	AuthModeCA               = "cacert"

	SecretUsernameKey = "username"
	SecretPasswordKey = "password"
	SecretClientKey   = "clientkey"
	SecretClientCert  = AuthModeCert
	SecretCACert      = AuthModeCA
)

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

func (*Mqtt5Client) Connect

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

func (*Mqtt5Client) Disconnect

func (c *Mqtt5Client) Disconnect() error

func (*Mqtt5Client) SetAuthData

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

type SecretData

type SecretData struct {
	Username     string
	Password     string
	KeyPemBlock  string
	CertPemBlock string
	CaPemBlock   string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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