mqtt

package
v0.1.0-M4 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0, EPL-2.0 Imports: 14 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDesiredStateClient

func NewDesiredStateClient(domain string, updateAgent api.UpdateAgentClient) (api.DesiredStateClient, error)

NewDesiredStateClient instantiates a new client for triggering MQTT requests.

func NewUpdateAgentClient

func NewUpdateAgentClient(domain string, config *ConnectionConfig) api.UpdateAgentClient

NewUpdateAgentClient instantiates a new UpdateAgentClient instance using the provided configuration options.

func NewUpdateAgentThingsClient

func NewUpdateAgentThingsClient(domain string, config *ConnectionConfig) api.UpdateAgentClient

NewUpdateAgentThingsClient instantiates a new UpdateAgentClient instance using the provided configuration options.

Types

type ConnectionConfig

type ConnectionConfig struct {
	Broker             string `json:"broker,omitempty"`
	KeepAlive          string `json:"keepAlive,omitempty"`
	DisconnectTimeout  string `json:"disconnectTimeout,omitempty"`
	Username           string `json:"username,omitempty"`
	Password           string `json:"password,omitempty"`
	ConnectTimeout     string `json:"connectTimeout,omitempty"`
	AcknowledgeTimeout string `json:"acknowledgeTimeout,omitempty"`
	SubscribeTimeout   string `json:"subscribeTimeout,omitempty"`
	UnsubscribeTimeout string `json:"unsubscribeTimeout,omitempty"`
}

ConnectionConfig represents the mqtt client connection config

func NewDefaultConfig

func NewDefaultConfig() *ConnectionConfig

NewDefaultConfig returns a default mqtt client connection config instance

Directories

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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