Expensive bee

This commit is contained in:
2026-02-03 16:49:05 +02:00
parent d3f29e3927
commit cdcdf2c644
10 changed files with 376 additions and 50 deletions

13
db/interface.go Normal file
View 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
}