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 (*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 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.
Click to show internal directories.
Click to hide internal directories.