Discover Packages
github.com/edgefarm/edgefarm/examples/basic/producer
internal
sensor
package
Version:
v0.0.0-...-9cd1198
Opens a new window with list of versions in this module.
Published: Mar 27, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Configuration struct {
SampleRate float64
RingBufEntries int32
}
Unit is the instance of the SensorUnit
New creates a new instance of the MetricsUnit
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.