mqtt

package
v1.6.8 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 5 Imported by: 0

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) SetEntity

func (c *Client) SetEntity()

type Config

type Config struct {
	*mqtt.ClientOptions
	CertFile string `json:"cert_file,omitempty"`
	KeyFile  string `json:"key_file,omitempty"`
}

func (*Config) Build

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

func (*Config) Init added in v1.4.0

func (c *Config) Init()

func (*Config) InitBeforeInject

func (c *Config) InitBeforeInject()

Jump to

Keyboard shortcuts

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