Expensive bee
This commit is contained in:
13
db/interface.go
Normal file
13
db/interface.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package db
|
||||
|
||||
// AlarmStore defines the interface for alarm CRUD operations.
|
||||
// Implemented by *Store (local SQLite) and api.Client (remote HTTP).
|
||||
type AlarmStore interface {
|
||||
ListAlarms() ([]Alarm, error)
|
||||
GetAlarm(id int) (Alarm, error)
|
||||
CreateAlarm(a Alarm) (int, error)
|
||||
UpdateAlarm(a Alarm) error
|
||||
DeleteAlarm(id int) error
|
||||
ToggleAlarm(id int) error
|
||||
MarkTriggered(id int) error
|
||||
}
|
||||
Reference in New Issue
Block a user