Documentation ¶ Index ¶ type ItemRepo func NewItemRepo(store database.Storer, db *database.Database) *ItemRepo func (p ItemRepo) All() ([]shopping.Item, error) func (p ItemRepo) Delete(name string) error func (p ItemRepo) Get(name string) (shopping.Item, error) func (p ItemRepo) Set(item shopping.Item) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type ItemRepo ¶ type ItemRepo struct { // contains filtered or unexported fields } func NewItemRepo ¶ func NewItemRepo(store database.Storer, db *database.Database) *ItemRepo func (ItemRepo) All ¶ func (p ItemRepo) All() ([]shopping.Item, error) func (ItemRepo) Delete ¶ func (p ItemRepo) Delete(name string) error func (ItemRepo) Get ¶ func (p ItemRepo) Get(name string) (shopping.Item, error) func (ItemRepo) Set ¶ func (p ItemRepo) Set(item shopping.Item) error Source Files ¶ View all Source files item.go Click to show internal directories. Click to hide internal directories.