Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InventoryRepoer ¶
type InventoryRepoer interface {
GetByID(id int) (*Inventory, error)
GetByUserID(userID int) ([]Inventory, error)
GetByName(name string) ([]Inventory, error)
GetAll() ([]Inventory, error)
Upsert(inventory *Inventory) error
Delete(id int) error
}
func NewInventoryRepo ¶
func NewInventoryRepo(db *storm.DB) InventoryRepoer
Click to show internal directories.
Click to hide internal directories.