mqttclient

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunMQTTClient

func RunMQTTClient(mqttOpts *Options)

RunMQTTClient sets up and runs a client connection

Types

type Collector

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

Collector TODO Comment

func NewCollector

func NewCollector() *Collector

NewCollector TODO Comment

func (*Collector) Collect

func (c *Collector) Collect(ch chan<- prometheus.Metric)

Collect is called by the Prometheus registry when collecting metrics.

func (*Collector) Describe

func (c *Collector) Describe(ch chan<- *prometheus.Desc)

Describe sends the super-set of all possible descriptors of metrics collected by this Collector.

type Metric

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

Metric TODO Comment

type Options

type Options struct {
	Endpoint string
	ClientID string
	Username string
	Password string
	CertFile string
	KeyFile  string
	Port     int
}

Options contains configurable options for an Client.

func NewOptions

func NewOptions() *Options

NewOptions will create a new ClientOptions type with some default values.

Jump to

Keyboard shortcuts

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