background

package
v0.0.0-...-9942e84 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupExpiredSensorValues

func CleanupExpiredSensorValues(db *gorm.DB)

func PollSensorValues

func PollSensorValues(database db.Database, bindingManager *output.OutputBindingsManager)

Types

type PingStrategy

type PingStrategy struct{}

func (*PingStrategy) PerformRequest

func (strgy *PingStrategy) PerformRequest(s *sensor.Sensor) (*value.SensorValue, error)

type RequestStrategy

type RequestStrategy interface {
	PerformRequest(sensor *sensor.Sensor) (*value.SensorValue, error)
}

Jump to

Keyboard shortcuts

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