Documentation ¶
Index ¶
Constants ¶
View Source
const JsonSuffix = ".json"
View Source
const YmlSuffix = ".yml"
Variables ¶
This section is empty.
Functions ¶
func NewDeviceRepo ¶
func NewDeviceRepo(cfg config.IConfiguration) model.IDeviceRepo
func NewUserRepo ¶
func NewUserRepo(cfg config.IConfiguration) model.IUserRepo
Types ¶
type DeviceRepo ¶
type DeviceRepo struct {
// contains filtered or unexported fields
}
func (*DeviceRepo) GetDevice ¶
func (d *DeviceRepo) GetDevice(deviceKey string) (*model.Device, error)
func (*DeviceRepo) GetDevices ¶
func (d *DeviceRepo) GetDevices() (*model.Devices, error)
func (*DeviceRepo) ReloadDevices ¶
func (d *DeviceRepo) ReloadDevices() error
type NotificationRepo ¶
type NotificationRepo struct {
// contains filtered or unexported fields
}
func NewNotificationRepo ¶
func NewNotificationRepo(cfg config.IConfiguration) *NotificationRepo
func (*NotificationRepo) GetAllNotifications ¶
func (n *NotificationRepo) GetAllNotifications() (*model.Notifications, error)
func (*NotificationRepo) GetNotifications ¶
func (n *NotificationRepo) GetNotifications(deviceKey string, key string) ([]*model.Notification, error)
func (*NotificationRepo) ReloadNotifications ¶
func (n *NotificationRepo) ReloadNotifications() error
type UserRepo ¶
type UserRepo struct {
// contains filtered or unexported fields
}
func (*UserRepo) FindByUsername ¶
func (*UserRepo) ReloadUsers ¶
Click to show internal directories.
Click to hide internal directories.