Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ownership ¶
type Ownership interface { FindByUserID(userID uint) ([]model.Ownership, error) FindByDeviceID(deviceID uint) ([]*model.Ownership, error) Find(userID uint, deviceID uint) (model.Ownership, error) Create(userID uint, deviceID uint, role model.OwnershipRole) (model.Ownership, error) Exists(userID uint, deviceID uint) (bool, error) Delete(userID uint, deviceID uint) error }
type Repositories ¶
type Repositories interface { User() User Ownership() Ownership Device() Device Reading() Reading Alert() Alert Phone() Phone }
func NewRepositories ¶
func NewRepositories(db *gorm.DB) Repositories
Click to show internal directories.
Click to hide internal directories.