Documentation ¶
Index ¶
- type Handler
- type Store
- func (s *Store) CreateProduct(product types.CreateProductRequest) (int, error)
- func (s *Store) GetProductByID(id int) (*types.Product, error)
- func (s *Store) GetProducts() ([]types.Product, error)
- func (s *Store) GetProductsByID(productIDs []int) ([]types.Product, error)
- func (s *Store) UpdateProduct(product types.Product) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(store types.ProductStore, userStore types.UserStore) *Handler
func (*Handler) RegisterRoutes ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) CreateProduct ¶
func (s *Store) CreateProduct(product types.CreateProductRequest) (int, error)
func (*Store) GetProductsByID ¶
Click to show internal directories.
Click to hide internal directories.