Documentation ¶
Index ¶
- type ItemRepository
- func (ItemRepository) CreateItem(newItem models.Item) (err error)
- func (ItemRepository) DeleteItem(id int) (err error)
- func (ItemRepository) GetItem(id int) (item models.Item, err error)
- func (ItemRepository) GetItems() (items []models.Item, err error)
- func (ItemRepository) UpdateItem(item models.Item) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ItemRepository ¶
type ItemRepository struct { }
ItemRepository godoc
func (ItemRepository) CreateItem ¶
func (ItemRepository) CreateItem(newItem models.Item) (err error)
CreateItem godoc
func (ItemRepository) DeleteItem ¶
func (ItemRepository) DeleteItem(id int) (err error)
DeleteItem godoc
func (ItemRepository) GetItem ¶
func (ItemRepository) GetItem(id int) (item models.Item, err error)
GetItem godoc
func (ItemRepository) GetItems ¶
func (ItemRepository) GetItems() (items []models.Item, err error)
GetItems godoc
func (ItemRepository) UpdateItem ¶
func (ItemRepository) UpdateItem(item models.Item) (err error)
UpdateItem godoc
Click to show internal directories.
Click to hide internal directories.