Documentation ¶
Index ¶
- type ProductDlv
- func (p *ProductDlv) AddProduct(c context.Context, req entity.Product) error
- func (p *ProductDlv) DeleteProduct(c context.Context, req entity.Product) error
- func (p *ProductDlv) GetProduct(c context.Context) (entity.Product, error)
- func (p *ProductDlv) GetProducts(c context.Context) ([]entity.Product, error)
- func (p *ProductDlv) UpdateProduct(c context.Context, req entity.Product) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProductDlv ¶
type ProductDlv struct{}
ProductDlv holds all product repository related properties
func (*ProductDlv) AddProduct ¶
AddProduct add new product
func (*ProductDlv) DeleteProduct ¶
DeleteProduct will delete existing product
func (*ProductDlv) GetProduct ¶
GetProduct get one product
func (*ProductDlv) GetProducts ¶
GetProducts get list of product
func (*ProductDlv) UpdateProduct ¶
UpdateProduct update existing product
Click to show internal directories.
Click to hide internal directories.