alarmstorage

package
v0.0.0-...-81d16f7 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alarm

type Alarm struct {
	Identifier  string
	Name        string
	Description string
	Sensors     []*Sensor
}

type Home

type Home struct {
	Identifier  string
	Name        string
	Description string
	Alarm       *Alarm
}

type ReadAndWrite

type ReadAndWrite interface {
	ReadFromStorage
	WriteToStorage
}

type ReadFromStorage

type ReadFromStorage interface {
	GetAlarm(id string) *Alarm
	GetAlarms() []*Alarm
	GetHome(id string) *Home
	GetHomes() []*Home
	GetSensor(id string) *Sensor
	GetSensors() []*Sensor
}

type Sensor

type Sensor struct {
	Identifier  string
	Name        string
	Description string
}

type WriteToStorage

type WriteToStorage interface {
	CreateHome(home *Home)
}

Jump to

Keyboard shortcuts

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