kv

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

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

Go to latest
Published: Aug 20, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAlertMaxHumidityDay

func GetAlertMaxHumidityDay(controllerID string, box int, def float64) (float64, error)

func GetAlertMaxHumidityNight

func GetAlertMaxHumidityNight(controllerID string, box int, def float64) (float64, error)

func GetAlertMaxTemperatureDay

func GetAlertMaxTemperatureDay(controllerID string, box int, def float64) (float64, error)

func GetAlertMaxTemperatureNight

func GetAlertMaxTemperatureNight(controllerID string, box int, def float64) (float64, error)

func GetAlertMinHumidityDay

func GetAlertMinHumidityDay(controllerID string, box int, def float64) (float64, error)

func GetAlertMinHumidityNight

func GetAlertMinHumidityNight(controllerID string, box int, def float64) (float64, error)

func GetAlertMinTemperatureDay

func GetAlertMinTemperatureDay(controllerID string, box int, def float64) (float64, error)

func GetAlertMinTemperatureNight

func GetAlertMinTemperatureNight(controllerID string, box int, def float64) (float64, error)

func GetBool

func GetBool(key string) (bool, error)

func GetBoxEnabled

func GetBoxEnabled(controllerID string, box int) (bool, error)

func GetBoxTempSource

func GetBoxTempSource(controllerID string, box int) (int, error)

func GetHumidityAlertStatus

func GetHumidityAlertStatus(controllerID string, box int) (bool, error)

func GetHumidityAlertType

func GetHumidityAlertType(controllerID string, box int) (string, error)

func GetInt

func GetInt(key string, def int) (int, error)

func GetKeys

func GetKeys(patterns []string) ([]string, error)

func GetLedBox

func GetLedBox(controllerID string, led int) (int, error)

func GetNum

func GetNum(key string, def float64) (float64, error)

func GetSHT21Present

func GetSHT21Present(controllerID string, sht21 int) (bool, error)

func GetSHT21PresentForBox

func GetSHT21PresentForBox(controllerID string, box int) (bool, error)

func GetString

func GetString(key string) (string, error)

func GetTemperature

func GetTemperature(controllerID string, box int) (float64, error)

func GetTemperatureAlertStatus

func GetTemperatureAlertStatus(controllerID string, box int) (bool, error)

func GetTemperatureAlertType

func GetTemperatureAlertType(controllerID string, box int) (string, error)

func GetTimerPower

func GetTimerPower(controllerID string, box int) (float64, error)

func GetValues

func GetValues(keys []string) (map[string]interface{}, error)

func HasNumKey

func HasNumKey(key string) (bool, error)

func Init

func Init()

func SetAlertMaxHumidityDay

func SetAlertMaxHumidityDay(controllerID string, box int, value float64) error

func SetAlertMaxHumidityNight

func SetAlertMaxHumidityNight(controllerID string, box int, value float64) error

func SetAlertMaxTemperatureDay

func SetAlertMaxTemperatureDay(controllerID string, box int, value float64) error

func SetAlertMaxTemperatureNight

func SetAlertMaxTemperatureNight(controllerID string, box int, value float64) error

func SetAlertMinHumidityDay

func SetAlertMinHumidityDay(controllerID string, box int, value float64) error

func SetAlertMinHumidityNight

func SetAlertMinHumidityNight(controllerID string, box int, value float64) error

func SetAlertMinTemperatureDay

func SetAlertMinTemperatureDay(controllerID string, box int, value float64) error

func SetAlertMinTemperatureNight

func SetAlertMinTemperatureNight(controllerID string, box int, value float64) error

func SetBool

func SetBool(key string, value bool, expiration time.Duration) error

func SetHumidityAlertStatus

func SetHumidityAlertStatus(controllerID string, box int, value bool) error

func SetHumidityAlertType

func SetHumidityAlertType(controllerID string, box int, atype string) error

func SetNum

func SetNum(key string, value float64) error

func SetString

func SetString(key, value string) error

func SetStringWithExpiration

func SetStringWithExpiration(key, value string, expiration time.Duration) error

func SetTemperatureAlertStatus

func SetTemperatureAlertStatus(controllerID string, box int, value bool) error

func SetTemperatureAlertType

func SetTemperatureAlertType(controllerID string, box int, atype string) error

Types

type GetAlertStatusFunc

type GetAlertStatusFunc func(controllerID string, box int) (bool, error)

type GetAlertTypeFunc

type GetAlertTypeFunc func(controllerID string, box int) (string, error)

type GetSensorPresentForBoxFunc

type GetSensorPresentForBoxFunc func(controllerID string, box int) (bool, error)

type GetSensorPresentFunc

type GetSensorPresentFunc func(controllerID string, sht21 int) (bool, error)

type SetAlertStatusFunc

type SetAlertStatusFunc func(controllerID string, box int, value bool) error

type SetAlertTypeFunc

type SetAlertTypeFunc func(controllerID string, box int, atype string) error

Jump to

Keyboard shortcuts

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