Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Storage ¶
type Storage interface { GetAllPumps(ctx context.Context) ([]models.Pump, error) GetLastPumpState(ctx context.Context, pumpId int) (pio.State, error) PersistPumpState(ctx context.Context, pumpId int, state pio.State, timestamp time.Time) error GetCyclesToNotify(ctx context.Context) ([]models.Cycle, error) SetCyclesNotified(ctx context.Context, cycleIds []int) error Close() error }
func NewStorage ¶
func NewStorage(configuration Configuration) (Storage, error)
Click to show internal directories.
Click to hide internal directories.