Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProductService ¶
type ProductService struct { }
ProductsService mock version
func (ProductService) AllProducts ¶
func (s ProductService) AllProducts() ([]spec.Product, error)
AllProducts mock/fake DB
func (ProductService) QueryProducts ¶
func (s ProductService) QueryProducts(field, term string) ([]spec.Product, error)
QueryProducts mock/fake DB
func (ProductService) SearchProducts ¶
func (s ProductService) SearchProducts(query string) ([]spec.Product, error)
SearchProducts mock/fake DB
Click to show internal directories.
Click to hide internal directories.