Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert interface { List(userID uint) ([]model.Alert, error) Create(userID uint, payload dto.CreateAlertRequest) (model.Alert, error) Update(userID, alertID uint, payload dto.UpdateAlertRequest) (model.Alert, error) Delete(userID, alertID uint) error Owns(userID uint, alertID uint) (bool, error) Check(reading model.Reading) error }
type Device ¶
type Device interface { List(userID uint) ([]model.Device, error) Create(userID uint, payload dto.CreateDeviceRequest) (model.Device, error) Update(userID uint, deviceID uint, payload dto.UpdateDeviceRequest) (model.Device, error) Delete(userID uint, deviceID uint) error Owns(userID uint, deviceID uint) (bool, error) Get(token string) (model.Device, error) Watch() error }
Click to show internal directories.
Click to hide internal directories.