repository

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2022 License: MIT Imports: 15 Imported by: 0

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 (u *UserRepo) FindByUsername(userName string) (*model.User, error)

func (*UserRepo) GetUsers

func (u *UserRepo) GetUsers() (*model.Users, error)

func (*UserRepo) ReloadUsers

func (u *UserRepo) ReloadUsers() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL