repo

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL