mqtt

package
v0.0.0-...-cd1c70b Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const MaxSentLength = 15

We are unlikely to have 15 alerts all sent recently enough to cause duplicate alert messages to not be captured in the sent array.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alert

type Alert struct {
	Type    string
	Id      string
	Message string
	Link    string
}

type Client

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

func NewClient

func NewClient(broker string, username string, password string) Client

func (*Client) Connect

func (c *Client) Connect() error

func (*Client) Publish

func (c *Client) Publish(alert Alert) error

Jump to

Keyboard shortcuts

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