Documentation ¶
Index ¶
- type PGProduct
- func (pg *PGProduct) Add(in *product.Product) (err error)
- func (pg *PGProduct) ListAll() (res *product.ListProducts, err error)
- func (pg *PGProduct) ListAllProductsWithMinimumQuantity() (*product.ListProducts, error)
- func (pg *PGProduct) ShowDetails(ProductID *int64) (res *product.Product, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PGProduct ¶
type PGProduct struct {
DB *database.DBTransaction
}
PGProduct implements methods for postgres query execution
func (*PGProduct) ListAll ¶
func (pg *PGProduct) ListAll() (res *product.ListProducts, err error)
ListAll get a list of a products on database
func (*PGProduct) ListAllProductsWithMinimumQuantity ¶
func (pg *PGProduct) ListAllProductsWithMinimumQuantity() (*product.ListProducts, error)
ListAllProductsWithMinimumQuantity list all products with minimum quantity
Click to show internal directories.
Click to hide internal directories.