Documentation
¶
Index ¶
- func Collect(columns map[string]string, data sensor.Data) iter.Seq2[string, any]
- func CollectFields(columns map[string]string, fields sensor.Fields) iter.Seq2[string, any]
- func Transform(columns map[string]string, data sensor.Data) map[string]any
- func TransformFields(columns map[string]string, fields sensor.Fields) map[string]any
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectFields ¶
CollectFields returns an iterator over each sensor data field that has a non-nil value with field name as key.
func Transform ¶ added in v1.3.1
Transform creates a map with the values copied from the given sensor.Data, using the provided column names as map keys.
Any values that are not included in the given column map are not included in the returned map.
func TransformFields ¶ added in v1.3.1
TransformFields creates a map with the values copied from the given sensor.Fields, using the provided column names as map keys.
Any fields that have a nil value or are not included in the given column map are not included in the returned map.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.