mqtt

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Conf Config
	mqtt.Client
}

func (*Client) Close

func (c *Client) Close() error

func (*Client) Config

func (c *Client) Config() any

func (*Client) Init

func (c *Client) Init() error

type Config

type Config struct {
	*mqtt.ClientOptions
	Brokers []string
	CAFile  string `json:"ca_file,omitempty"`
}

func (*Config) BeforeInject added in v0.0.33

func (c *Config) BeforeInject()

func (*Config) Build

func (c *Config) Build() (mqtt.Client, error)

func (*Config) Init

func (c *Config) Init()

Jump to

Keyboard shortcuts

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