sensor

package
v0.0.0-...-9cd1198 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	SampleRate     float64
	RingBufEntries int32
}

type Unit

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

Unit is the instance of the SensorUnit

func New

func New(ps *pubsub.PubSub, export export.Exporter, cfg *Configuration) *Unit

New creates a new instance of the MetricsUnit

func (*Unit) Run

func (s *Unit) Run(subject string) error

Run starts the sensor unit It starts the sampler and the publisher with the given subject to publish to It returns as soon as all go routines are started

Jump to

Keyboard shortcuts

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