Documentation ¶
Index ¶
- func CreateBlindLabelSetup(db Database, cfg dblind.BlindSetup) error
- func CreateHvacLabelSetup(db Database, cfg dhvac.HvacSetup) error
- func CreateLedLabelSetup(db Database, config dl.LedSetup) error
- func CreateNanoLabelSetup(db Database, config dnanosense.NanosenseSetup) error
- func CreateSensorLabelSetup(db Database, config ds.SensorSetup) error
- func CreateWagoLabelSetup(db Database, config dwago.WagoSetup) error
- func GetBlindConfig(db Database, mac string) (*dblind.BlindSetup, string)
- func GetBlindLabelConfig(db Database, label string) (*dblind.BlindSetup, string)
- func GetBlindStatus(db Database, mac string) *dblind.Blind
- func GetBlindSwitchSetup(db Database, swMac string) map[string]dblind.BlindSetup
- func GetBlindSwitchStatus(db Database, swMac string) map[string]dblind.Blind
- func GetBlindsConfig(db Database) map[string]dblind.BlindSetup
- func GetBlindsConfigByLabel(db Database) map[string]dblind.BlindSetup
- func GetBlindsStatus(db Database) map[string]dblind.Blind
- func GetBlindsStatusByLabel(db Database) map[string]dblind.Blind
- func GetCluster(db Database, cluster int) map[string]dserver.SwitchConfig
- func GetDrivers(db Database) map[string]core.Driver
- func GetFrame(db Database, label string) (*dserver.Frame, string)
- func GetFrames(db Database) []dserver.Frame
- func GetFramesConfigByLabel(db Database) map[string]dserver.Frame
- func GetFramesDumpByLabel(db Database) map[string]dserver.FrameStatus
- func GetGroupConfig(db Database, grID int) (*gm.GroupConfig, string)
- func GetGroupConfigs(db Database, driversMac map[string]bool) map[int]gm.GroupConfig
- func GetGroupStatus(db Database, grID int) *gm.GroupStatus
- func GetGroupSwitchs(db Database, grID int) map[string]bool
- func GetGroupsStatus(db Database) map[int]gm.GroupStatus
- func GetHvacConfig(db Database, mac string) (*dhvac.HvacSetup, string)
- func GetHvacLabelConfig(db Database, label string) (*dhvac.HvacSetup, string)
- func GetHvacStatus(db Database, mac string) *dhvac.Hvac
- func GetHvacSwitchSetup(db Database, swMac string) map[string]dhvac.HvacSetup
- func GetHvacSwitchStatus(db Database, swMac string) map[string]dhvac.Hvac
- func GetHvacsConfig(db Database) map[string]dhvac.HvacSetup
- func GetHvacsConfigByLabel(db Database) map[string]dhvac.HvacSetup
- func GetHvacsStatus(db Database) map[string]dhvac.Hvac
- func GetHvacsStatusByLabel(db Database) map[string]dhvac.Hvac
- func GetIfcs(db Database) []dserver.IfcInfo
- func GetLedConfig(db Database, mac string) (*dl.LedSetup, string)
- func GetLedLabelConfig(db Database, label string) (*dl.LedSetup, string)
- func GetLedStatus(db Database, mac string) *dl.Led
- func GetLedSwitchSetup(db Database, swMac string) map[string]dl.LedSetup
- func GetLedSwitchStatus(db Database, swMac string) map[string]dl.Led
- func GetLedsConfig(db Database) map[string]dl.LedSetup
- func GetLedsConfigByLabel(db Database) map[string]dl.LedSetup
- func GetLedsStatus(db Database) map[string]dl.Led
- func GetLedsStatusByLabel(db Database) map[string]dl.Led
- func GetModel(db Database, name string) *core.Model
- func GetModels(db Database) map[string]core.Model
- func GetNanoConfig(db Database, mac string) (*dnanosense.NanosenseSetup, string)
- func GetNanoLabelConfig(db Database, label string) (*dnanosense.NanosenseSetup, string)
- func GetNanoStatus(db Database, label string) *dnanosense.Nanosense
- func GetNanoSwitchSetup(db Database, swCluster int) map[string]dnanosense.NanosenseSetup
- func GetNanoSwitchStatus(db Database, cluster int) map[string]dnanosense.Nanosense
- func GetNanosConfig(db Database) map[string]dnanosense.NanosenseSetup
- func GetNanosConfigByLabel(db Database) map[string]dnanosense.NanosenseSetup
- func GetNanosStatus(db Database) map[string]dnanosense.Nanosense
- func GetNanosStatusByLabel(db Database) map[string]dnanosense.Nanosense
- func GetObjectID(db Database, dbName, tbName string, criteria map[string]interface{}) string
- func GetProject(db Database, label string) (*core.Project, string)
- func GetProjectByMac(db Database, mac string) *core.Project
- func GetProjects(db Database) []core.Project
- func GetSensorConfig(db Database, mac string) (*ds.SensorSetup, string)
- func GetSensorLabelConfig(db Database, label string) (*ds.SensorSetup, string)
- func GetSensorStatus(db Database, mac string) *ds.Sensor
- func GetSensorSwitchSetup(db Database, swMac string) map[string]ds.SensorSetup
- func GetSensorSwitchStatus(db Database, swMac string) map[string]ds.Sensor
- func GetSensorsConfig(db Database) map[string]ds.SensorSetup
- func GetSensorsConfigByLabel(db Database) map[string]ds.SensorSetup
- func GetSensorsStatus(db Database) map[string]ds.Sensor
- func GetSensorsStatusByLabel(db Database) map[string]ds.Sensor
- func GetServiceConfig(db Database, name string) *pkg.Service
- func GetServiceConfigs(db Database) map[string]pkg.Service
- func GetSwitchConfig(db Database, mac string) (*dserver.SwitchConfig, string)
- func GetSwitchLabelConfig(db Database, label string) *dserver.SwitchConfig
- func GetSwitchStatusCluster(db Database, cluster int) map[string]dserver.SwitchDump
- func GetSwitchsConfig(db Database) map[string]dserver.SwitchConfig
- func GetSwitchsConfigByLabel(db Database) map[string]dserver.SwitchConfig
- func GetSwitchsDump(db Database) map[string]dserver.SwitchDump
- func GetSwitchsDumpByLabel(db Database) map[string]dserver.SwitchDump
- func GetUser(db Database, userHash string) *duser.UserAccess
- func GetUserConfigs(db Database, groups map[int]bool, withPriviledge bool) map[string]duser.UserAccess
- func GetWagoClusterSetup(db Database, cluster int) map[string]dwago.WagoSetup
- func GetWagoClusterStatus(db Database, cluster int) map[string]dwago.Wago
- func GetWagoConfig(db Database, mac string) (*dwago.WagoSetup, string)
- func GetWagoLabelConfig(db Database, label string) (*dwago.WagoSetup, string)
- func GetWagoStatus(db Database, mac string) *dwago.Wago
- func GetWagoSwitchSetup(db Database, swCluster int) map[string]dwago.WagoSetup
- func GetWagosConfig(db Database) map[string]dwago.WagoSetup
- func GetWagosConfigByLabel(db Database) map[string]dwago.WagoSetup
- func GetWagosStatus(db Database) map[string]dwago.Wago
- func GetWagosStatusByLabel(db Database) map[string]dwago.Wago
- func NewError(text string) error
- func PrepareDB(db Database, withDrop bool)
- func RemoveBlindConfig(db Database, mac string) error
- func RemoveBlindStatus(db Database, mac string) error
- func RemoveFrame(db Database, label string) error
- func RemoveGroupConfig(db Database, grID int) error
- func RemoveHvacConfig(db Database, mac string) error
- func RemoveHvacStatus(db Database, mac string) error
- func RemoveLedConfig(db Database, mac string) error
- func RemoveLedStatus(db Database, mac string) error
- func RemoveModel(db Database, name string) error
- func RemoveNanoConfig(db Database, label string) error
- func RemoveNanoStatus(db Database, label string) error
- func RemoveProject(db Database, label string) error
- func RemoveSensorConfig(db Database, mac string) error
- func RemoveSensorStatus(db Database, mac string) error
- func RemoveServiceConfig(db Database, mac string) error
- func RemoveSwitchBlindStatus(db Database, mac string) error
- func RemoveSwitchConfig(db Database, mac string) error
- func RemoveSwitchHvacStatus(db Database, mac string) error
- func RemoveSwitchLedStatus(db Database, mac string) error
- func RemoveSwitchSensorStatus(db Database, mac string) error
- func RemoveSwitchStatus(db Database, mac string) error
- func RemoveUserConfig(db Database, userHash string) error
- func RemoveWagoConfig(db Database, mac string) error
- func RemoveWagoStatus(db Database, mac string) error
- func ReplaceSwitchConfig(db Database, old, new string) error
- func SaveBlindConfig(db Database, cfg dblind.BlindSetup) error
- func SaveBlindLabelConfig(db Database, cfg dblind.BlindSetup) error
- func SaveBlindStatus(db Database, status dblind.Blind) error
- func SaveFrame(db Database, cfg dserver.Frame) error
- func SaveGroupConfig(db Database, cfg gm.GroupConfig) error
- func SaveGroupStatus(db Database, status gm.GroupStatus) error
- func SaveHvacConfig(db Database, cfg dhvac.HvacSetup) error
- func SaveHvacLabelConfig(db Database, cfg dhvac.HvacSetup) error
- func SaveHvacStatus(db Database, status dhvac.Hvac) error
- func SaveLedConfig(db Database, cfg dl.LedSetup) error
- func SaveLedLabelConfig(db Database, cfg dl.LedSetup) error
- func SaveLedStatus(db Database, status dl.Led) error
- func SaveModel(db Database, cfg core.Model) error
- func SaveNanoConfig(db Database, cfg dnanosense.NanosenseSetup) error
- func SaveNanoLabelConfig(db Database, cfg dnanosense.NanosenseSetup) error
- func SaveNanoStatus(db Database, status dnanosense.Nanosense) error
- func SaveOnUpdateObject(db Database, obj interface{}, dbName, tbName string, ...) error
- func SaveProject(db Database, cfg core.Project) error
- func SaveSensorConfig(db Database, cfg ds.SensorSetup) error
- func SaveSensorLabelConfig(db Database, cfg ds.SensorSetup) error
- func SaveSensorStatus(db Database, status ds.Sensor) error
- func SaveServiceConfig(db Database, service pkg.Service) error
- func SaveServiceStatus(db Database, status core.ServiceDump) error
- func SaveSwitchConfig(db Database, sw dserver.SwitchConfig) error
- func SaveSwitchLabelConfig(db Database, config dserver.SwitchConfig) error
- func SaveSwitchStatus(db Database, status sd.SwitchStatus) error
- func SaveUserConfig(db Database, cfg duser.UserAccess) error
- func SaveWagoConfig(db Database, cfg dwago.WagoSetup) error
- func SaveWagoLabelConfig(db Database, cfg dwago.WagoSetup) error
- func SaveWagoStatus(db Database, status dwago.Wago) error
- func SetUsersDump(db Database, users map[string]duser.UserAccess) error
- func SwitchBlindConfig(db Database, old, new string) error
- func SwitchHvacConfig(db Database, old, new string) error
- func SwitchLedConfig(db Database, old, new string) error
- func SwitchSensorConfig(db Database, old, new string) error
- func SwitchWagoConfig(db Database, old, new string) error
- func UpdateBlindConfig(db Database, cfg dblind.BlindConf) error
- func UpdateBlindLabelConfig(db Database, cfg dblind.BlindConf) error
- func UpdateBlindLabelSetup(db Database, cfg dblind.BlindSetup) error
- func UpdateBlindSetup(db Database, cfg dblind.BlindSetup) error
- func UpdateGroupConfig(db Database, config gm.GroupConfig) error
- func UpdateHvacConfig(db Database, cfg dhvac.HvacConf) error
- func UpdateHvacLabelConfig(db Database, cfg dhvac.HvacConf) error
- func UpdateHvacLabelSetup(db Database, cfg dhvac.HvacSetup) error
- func UpdateHvacSetup(db Database, cfg dhvac.HvacSetup) error
- func UpdateLedConfig(db Database, config dl.LedConf) error
- func UpdateLedLabelConfig(db Database, config dl.LedConf) error
- func UpdateLedLabelSetup(db Database, config dl.LedSetup) error
- func UpdateLedSetup(db Database, config dl.LedSetup) error
- func UpdateNanoConfig(db Database, cfg dnanosense.NanosenseConf) error
- func UpdateNanoLabelConfig(db Database, cfg dnanosense.NanosenseConf) error
- func UpdateNanoLabelSetup(db Database, config dnanosense.NanosenseSetup) error
- func UpdateNanoSetup(db Database, cfg dnanosense.NanosenseSetup) error
- func UpdateSensorConfig(db Database, cfg ds.SensorConf) error
- func UpdateSensorLabelConfig(db Database, cfg ds.SensorConf) error
- func UpdateSensorLabelSetup(db Database, cfg ds.SensorSetup) error
- func UpdateSensorSetup(db Database, cfg ds.SensorSetup) error
- func UpdateSwitchConfig(db Database, config dserver.SwitchConfig) error
- func UpdateSwitchLabelConfig(db Database, config dserver.SwitchConfig) error
- func UpdateWagoConfig(db Database, config dwago.WagoConf) error
- func UpdateWagoLabelConfig(db Database, config dwago.WagoConf) error
- func UpdateWagoLabelSetup(db Database, config dwago.WagoSetup) error
- func UpdateWagoSetup(db Database, config dwago.WagoSetup) error
- type Database
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBlindLabelSetup ¶
func CreateBlindLabelSetup(db Database, cfg dblind.BlindSetup) error
CreateBlindLabelSetup create blind config in database
func CreateHvacLabelSetup ¶
CreateHvacLabelSetup create hvac config in database
func CreateLedLabelSetup ¶
CreateLedLabelSetup update led setup in database
func CreateNanoLabelSetup ¶
func CreateNanoLabelSetup(db Database, config dnanosense.NanosenseSetup) error
CreateNanoLabelSetup create nano setup in database
func CreateSensorLabelSetup ¶
func CreateSensorLabelSetup(db Database, config ds.SensorSetup) error
CreateSensorLabelSetup sensor sensor setup in database
func CreateWagoLabelSetup ¶
CreateWagoLabelSetup create wago setup in database
func GetBlindConfig ¶
func GetBlindConfig(db Database, mac string) (*dblind.BlindSetup, string)
GetBlindConfig return the sensor configuration
func GetBlindLabelConfig ¶
func GetBlindLabelConfig(db Database, label string) (*dblind.BlindSetup, string)
GetBlindLabelConfig return the sensor configuration
func GetBlindStatus ¶
GetBlindStatus return the blind status
func GetBlindSwitchSetup ¶
func GetBlindSwitchSetup(db Database, swMac string) map[string]dblind.BlindSetup
GetBlindSwitchSetup get blind Config list
func GetBlindSwitchStatus ¶
GetBlindSwitchStatus get cluster Config list
func GetBlindsConfig ¶
func GetBlindsConfig(db Database) map[string]dblind.BlindSetup
GetBlindsConfig return the blind config list
func GetBlindsConfigByLabel ¶
func GetBlindsConfigByLabel(db Database) map[string]dblind.BlindSetup
GetBlindsConfigByLabel return the blind config list
func GetBlindsStatus ¶
GetBlindsStatus return the blind status list
func GetBlindsStatusByLabel ¶
GetBlindsStatusByLabel return the blind status list
func GetCluster ¶
func GetCluster(db Database, cluster int) map[string]dserver.SwitchConfig
GetCluster get cluster Config list
func GetDrivers ¶
GetDrivers return the project configuration
func GetFramesConfigByLabel ¶
GetFramesConfigByLabel return the frame configuration
func GetFramesDumpByLabel ¶
func GetFramesDumpByLabel(db Database) map[string]dserver.FrameStatus
GetFramesDumpByLabel return the switch status list
func GetGroupConfig ¶
func GetGroupConfig(db Database, grID int) (*gm.GroupConfig, string)
GetGroupConfig return the group configuration
func GetGroupConfigs ¶
GetGroupConfigs get group Config
func GetGroupStatus ¶
func GetGroupStatus(db Database, grID int) *gm.GroupStatus
GetGroupStatus return the group status
func GetGroupSwitchs ¶
GetGroupSwitchs return the corresponding running switch list
func GetGroupsStatus ¶
func GetGroupsStatus(db Database) map[int]gm.GroupStatus
GetGroupsStatus get groups status
func GetHvacConfig ¶
GetHvacConfig return the sensor configuration
func GetHvacLabelConfig ¶
GetHvacLabelConfig return the sensor configuration
func GetHvacStatus ¶
GetHvacStatus return the hvac status
func GetHvacSwitchSetup ¶
GetHvacSwitchSetup get hvac Config list
func GetHvacSwitchStatus ¶
GetHvacSwitchStatus get cluster Config list
func GetHvacsConfig ¶
GetHvacsConfig return the hvac config list
func GetHvacsConfigByLabel ¶
GetHvacsConfigByLabel return the hvac config list
func GetHvacsStatus ¶
GetHvacsStatus return the hvac status list
func GetHvacsStatusByLabel ¶
GetHvacsStatusByLabel return the hvac status list
func GetLedConfig ¶
GetLedConfig return the led configuration
func GetLedLabelConfig ¶
GetLedLabelConfig return the led configuration
func GetLedStatus ¶
GetLedStatus return the led status
func GetLedSwitchSetup ¶
GetLedSwitchConfig get led Config list
func GetLedSwitchStatus ¶
GetLedSwitchStatus get cluster Config list
func GetLedsConfig ¶
GetLedsConfig return the led config list
func GetLedsConfigByLabel ¶
GetLedsConfigByLabel return the led config list
func GetLedsStatus ¶
GetLedsStatus return the led status list
func GetLedsStatusByLabel ¶
GetLedsStatusByLabel return the led status list
func GetNanoConfig ¶
func GetNanoConfig(db Database, mac string) (*dnanosense.NanosenseSetup, string)
GetNanoConfig return the nano configuration
func GetNanoLabelConfig ¶
func GetNanoLabelConfig(db Database, label string) (*dnanosense.NanosenseSetup, string)
GetNanoLabelConfig return the nano configuration
func GetNanoStatus ¶
func GetNanoStatus(db Database, label string) *dnanosense.Nanosense
GetNanoStatus return the nano status
func GetNanoSwitchSetup ¶
func GetNanoSwitchSetup(db Database, swCluster int) map[string]dnanosense.NanosenseSetup
GetNanoSwitchSetup get nano Config list
func GetNanoSwitchStatus ¶
func GetNanoSwitchStatus(db Database, cluster int) map[string]dnanosense.Nanosense
GetNanoSwitchStatus get cluster Config list
func GetNanosConfig ¶
func GetNanosConfig(db Database) map[string]dnanosense.NanosenseSetup
GetNanosConfig return the nano config list
func GetNanosConfigByLabel ¶
func GetNanosConfigByLabel(db Database) map[string]dnanosense.NanosenseSetup
GetNanosConfigByLabel return the sensor config list
func GetNanosStatus ¶
func GetNanosStatus(db Database) map[string]dnanosense.Nanosense
GetNanosStatus return the nano status list
func GetNanosStatusByLabel ¶
func GetNanosStatusByLabel(db Database) map[string]dnanosense.Nanosense
GetNanosStatusByLabel return the nano status list
func GetObjectID ¶
GetObjectID return id
func GetProject ¶
GetProject return the project configuration
func GetProjectByMac ¶
GetProjectByMac return the project configuration
func GetProjects ¶
GetProjects return the project configuration
func GetSensorConfig ¶
func GetSensorConfig(db Database, mac string) (*ds.SensorSetup, string)
GetSensorConfig return the sensor configuration
func GetSensorLabelConfig ¶
func GetSensorLabelConfig(db Database, label string) (*ds.SensorSetup, string)
GetSensorLabelConfig return the sensor configuration
func GetSensorStatus ¶
GetSensorStatus return the led status
func GetSensorSwitchSetup ¶
func GetSensorSwitchSetup(db Database, swMac string) map[string]ds.SensorSetup
GetSensorSwitchSetup get sensor Config list
func GetSensorSwitchStatus ¶
GetSensorSwitchStatus get cluster Config list
func GetSensorsConfig ¶
func GetSensorsConfig(db Database) map[string]ds.SensorSetup
GetSensorsConfig return the sensor config list
func GetSensorsConfigByLabel ¶
func GetSensorsConfigByLabel(db Database) map[string]ds.SensorSetup
GetSensorsConfigByLabel return the sensor config list
func GetSensorsStatus ¶
GetSensorsStatus return the led status list
func GetSensorsStatusByLabel ¶
GetSensorsStatusByLabel return the led status list
func GetServiceConfig ¶
GetServiceConfig get service Config
func GetServiceConfigs ¶
GetServiceConfigs return the sensor configuration
func GetSwitchConfig ¶
func GetSwitchConfig(db Database, mac string) (*dserver.SwitchConfig, string)
GetSwitchConfig get switch Config
func GetSwitchLabelConfig ¶
func GetSwitchLabelConfig(db Database, label string) *dserver.SwitchConfig
GetSwitchLabelConfig return the switch configuration
func GetSwitchStatusCluster ¶
func GetSwitchStatusCluster(db Database, cluster int) map[string]dserver.SwitchDump
GetSwitchStatusCluster get cluster Config list
func GetSwitchsConfig ¶
func GetSwitchsConfig(db Database) map[string]dserver.SwitchConfig
GetSwitchsConfig return the switch config list
func GetSwitchsConfigByLabel ¶
func GetSwitchsConfigByLabel(db Database) map[string]dserver.SwitchConfig
GetSwitchsConfigByLabel return the switch config list
func GetSwitchsDump ¶
func GetSwitchsDump(db Database) map[string]dserver.SwitchDump
GetSwitchsDump return the switch status list
func GetSwitchsDumpByLabel ¶
func GetSwitchsDumpByLabel(db Database) map[string]dserver.SwitchDump
GetSwitchsDumpByLabel return the switch status list
func GetUser ¶
func GetUser(db Database, userHash string) *duser.UserAccess
GetUser retrive user from the database
func GetUserConfigs ¶
func GetUserConfigs(db Database, groups map[int]bool, withPriviledge bool) map[string]duser.UserAccess
GetUserConfigs get user Config for a given group list
func GetWagoClusterSetup ¶
GetWagoClusterSetup get wago Config list
func GetWagoClusterStatus ¶
GetWagoClusterStatus get cluster Config list
func GetWagoConfig ¶
GetWagoConfig return the wago configuration
func GetWagoLabelConfig ¶
GetWagoLabelConfig return the wago configuration
func GetWagoStatus ¶
GetWagoStatus return the wago status
func GetWagoSwitchSetup ¶
GetWagoSwitchSetup get wago Config list
func GetWagosConfig ¶
GetWagosConfig return the wago config list
func GetWagosConfigByLabel ¶
GetWagosConfigByLabel return the wago config list
func GetWagosStatus ¶
GetWagosStatus return the wago status list
func GetWagosStatusByLabel ¶
GetWagosStatusByLabel return the wago status list
func RemoveBlindConfig ¶
RemoveBlindConfig remove blind config in database
func RemoveBlindStatus ¶
RemoveBlindStatus remove led status in database
func RemoveFrame ¶
RemoveFrame remove project entry in database
func RemoveGroupConfig ¶
RemoveGroupConfig remove group config in database
func RemoveHvacConfig ¶
RemoveHvacConfig remove hvac config in database
func RemoveHvacStatus ¶
RemoveHvacStatus remove hvac status in database
func RemoveLedConfig ¶
RemoveLedConfig remove led config in database
func RemoveLedStatus ¶
RemoveLedStatus remove led status in database
func RemoveModel ¶
RemoveModel remove ifc config in database
func RemoveNanoConfig ¶
RemoveNanoConfig remove nano config in database
func RemoveNanoStatus ¶
RemoveNanoStatus remove nano status in database
func RemoveProject ¶
RemoveProject remove project entry in database
func RemoveSensorConfig ¶
RemoveSensorConfig remove sensor config in database
func RemoveSensorStatus ¶
RemoveSensorStatus remove led status in database
func RemoveServiceConfig ¶
RemoveServiceConfig remove sensor config in database
func RemoveSwitchBlindStatus ¶
RemoveSwitchBlindStatus remove led status in database
func RemoveSwitchConfig ¶
RemoveSwitchConfig remove led config in database
func RemoveSwitchHvacStatus ¶
RemoveSwitchHvacStatus remove led status in database
func RemoveSwitchLedStatus ¶
RemoveSwitchLedStatus remove led status in database
func RemoveSwitchSensorStatus ¶
RemoveSwitchSensorStatus remove led status in database
func RemoveSwitchStatus ¶
RemoveSwitchStatus remove switch status in database
func RemoveUserConfig ¶
RemoveUserConfig remove user config in database
func RemoveWagoConfig ¶
RemoveWagoConfig remove wago config in database
func RemoveWagoStatus ¶
RemoveWagoStatus remove wago status in database
func ReplaceSwitchConfig ¶
ReplaceSwitchConfig update sensor config in database
func SaveBlindConfig ¶
func SaveBlindConfig(db Database, cfg dblind.BlindSetup) error
SaveBlindConfig dump blind config in database
func SaveBlindLabelConfig ¶
func SaveBlindLabelConfig(db Database, cfg dblind.BlindSetup) error
SaveBlindLabelConfig dump blind config in database
func SaveBlindStatus ¶
SaveBlindStatus dump blind status in database
func SaveGroupConfig ¶
func SaveGroupConfig(db Database, cfg gm.GroupConfig) error
SaveGroupConfig dump group config in database
func SaveGroupStatus ¶
func SaveGroupStatus(db Database, status gm.GroupStatus) error
SaveGroupStatus dump group status in database
func SaveHvacConfig ¶
SaveHvacConfig dump hvac config in database
func SaveHvacLabelConfig ¶
SaveHvacLabelConfig dump hvac config in database
func SaveHvacStatus ¶
SaveHvacStatus dump hvac status in database
func SaveLedConfig ¶
SaveLedConfig dump led config in database
func SaveLedLabelConfig ¶
SaveLedLabelConfig dump led config in database
func SaveLedStatus ¶
SaveLedStatus dump led status in database
func SaveNanoConfig ¶
func SaveNanoConfig(db Database, cfg dnanosense.NanosenseSetup) error
SaveNanoConfig dump nano config in database
func SaveNanoLabelConfig ¶
func SaveNanoLabelConfig(db Database, cfg dnanosense.NanosenseSetup) error
SaveNanoConfig dump nano config in database
func SaveNanoStatus ¶
func SaveNanoStatus(db Database, status dnanosense.Nanosense) error
SaveNanoStatus dump nano status in database
func SaveOnUpdateObject ¶
func SaveOnUpdateObject(db Database, obj interface{}, dbName, tbName string, criteria map[string]interface{}) error
SaveOnUpdateObject in database
func SaveProject ¶
SaveProject dump project in database
func SaveSensorConfig ¶
func SaveSensorConfig(db Database, cfg ds.SensorSetup) error
SaveSensorConfig dump sensor config in database
func SaveSensorLabelConfig ¶
func SaveSensorLabelConfig(db Database, cfg ds.SensorSetup) error
SaveSensorLabelConfig dump sensor config in database
func SaveSensorStatus ¶
SaveSensorStatus dump sensor status in database
func SaveServiceConfig ¶
SaveServiceConfig dump sensor config in database
func SaveServiceStatus ¶
func SaveServiceStatus(db Database, status core.ServiceDump) error
SaveServiceStatus dump service status in database
func SaveSwitchConfig ¶
func SaveSwitchConfig(db Database, sw dserver.SwitchConfig) error
SaveSwitchConfig register switch config in database
func SaveSwitchLabelConfig ¶
func SaveSwitchLabelConfig(db Database, config dserver.SwitchConfig) error
SaveSwitchLabelConfig update server config to database
func SaveSwitchStatus ¶
func SaveSwitchStatus(db Database, status sd.SwitchStatus) error
SaveSwitchStatus dump switch status in database
func SaveUserConfig ¶
func SaveUserConfig(db Database, cfg duser.UserAccess) error
SaveUserConfig dump user config in database
func SaveWagoConfig ¶
SaveWagoConfig dump wago config in database
func SaveWagoLabelConfig ¶
SaveWagoLabelConfig dump wago config in database
func SaveWagoStatus ¶
SaveWagoStatus dump wago status in database
func SetUsersDump ¶
func SetUsersDump(db Database, users map[string]duser.UserAccess) error
SetUsersDump drop table before adding users
func SwitchBlindConfig ¶
SwitchBlindConfig update blind config in database
func SwitchHvacConfig ¶
SwitchHvacConfig update hvac config in database
func SwitchLedConfig ¶
SwitchLedConfig update led config in database
func SwitchSensorConfig ¶
SwitchSensorConfig update sensor config in database
func SwitchWagoConfig ¶
SwitchWagoConfig update wago config in database
func UpdateBlindConfig ¶
UpdateBlindConfig update blind config in database
func UpdateBlindLabelConfig ¶
UpdateBlindLabelConfig update blind config in database
func UpdateBlindLabelSetup ¶
func UpdateBlindLabelSetup(db Database, cfg dblind.BlindSetup) error
UpdateBlindLabelSetup update blind config in database
func UpdateBlindSetup ¶
func UpdateBlindSetup(db Database, cfg dblind.BlindSetup) error
UpdateBlindSetup update blind config in database
func UpdateGroupConfig ¶
func UpdateGroupConfig(db Database, config gm.GroupConfig) error
UpdateGroupConfig update group config in database
func UpdateHvacConfig ¶
UpdateHvacConfig update hvac config in database
func UpdateHvacLabelConfig ¶
UpdateHvacLabelConfig update hvac config in database
func UpdateHvacLabelSetup ¶
UpdateHvacLabelSetup update hvac config in database
func UpdateHvacSetup ¶
UpdateHvacSetup update hvac config in database
func UpdateLedConfig ¶
UpdateLedConfig update led config in database
func UpdateLedLabelConfig ¶
UpdateLedLabelConfig update led config in database
func UpdateLedLabelSetup ¶
UpdateLedLabelSetup update led setup in database
func UpdateLedSetup ¶
UpdateLedSetup update led setup in database
func UpdateNanoConfig ¶
func UpdateNanoConfig(db Database, cfg dnanosense.NanosenseConf) error
UpdateNanoConfig update nano config in database
func UpdateNanoLabelConfig ¶
func UpdateNanoLabelConfig(db Database, cfg dnanosense.NanosenseConf) error
UpdateNanoLabelConfig update nano config in database
func UpdateNanoLabelSetup ¶
func UpdateNanoLabelSetup(db Database, config dnanosense.NanosenseSetup) error
UpdateNanoLabelSetup update nano setup in database
func UpdateNanoSetup ¶
func UpdateNanoSetup(db Database, cfg dnanosense.NanosenseSetup) error
UpdateNanoSetup update nano config in database
func UpdateSensorConfig ¶
func UpdateSensorConfig(db Database, cfg ds.SensorConf) error
UpdateSensorConfig update sensor config in database
func UpdateSensorLabelConfig ¶
func UpdateSensorLabelConfig(db Database, cfg ds.SensorConf) error
UpdateSensorLabelConfig update sensor config in database
func UpdateSensorLabelSetup ¶
func UpdateSensorLabelSetup(db Database, cfg ds.SensorSetup) error
UpdateSensorLabelSetup update sensor config in database
func UpdateSensorSetup ¶
func UpdateSensorSetup(db Database, cfg ds.SensorSetup) error
UpdateSensorSetup update sensor config in database
func UpdateSwitchConfig ¶
func UpdateSwitchConfig(db Database, config dserver.SwitchConfig) error
UpdateSwitchConfig update server config to database
func UpdateSwitchLabelConfig ¶
func UpdateSwitchLabelConfig(db Database, config dserver.SwitchConfig) error
UpdateSwitchLabelConfig update server config to database
func UpdateWagoConfig ¶
UpdateWagoConfig update wago config in database
func UpdateWagoLabelConfig ¶
UpdateWagoLabelConfig update wago config in database
func UpdateWagoLabelSetup ¶
UpdateWagoLabelSetup update wago setup in database
Types ¶
type Database ¶
type Database = database.DatabaseInterface
func ConnectDatabase ¶
ConnectDatabase plug datbase