Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { Insert(device entities.Device) error Update(device entities.Device) error FindByMacAddress(address string) (*entities.Device, error) FindAll(fetchedAt time.Time) ([]entities.Device, error) }
func NewRepository ¶
func NewRepository(dbClient *gorm.DB) Repository
Click to show internal directories.
Click to hide internal directories.