Documentation
¶
Index ¶
- type EventRepo
- type ProductRepo
- func (p *ProductRepo) AddProduct(ctx context.Context, pr *model.Product, tx *sqlx.Tx) error
- func (p *ProductRepo) GetProduct(ctx context.Context, productID uint64, tx *sqlx.Tx) (model.Product, error)
- func (p *ProductRepo) ListProducts(ctx context.Context) ([]model.Product, error)
- func (p *ProductRepo) RemoveProduct(ctx context.Context, productID uint64, tx *sqlx.Tx) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventRepo ¶
type EventRepo struct {
// contains filtered or unexported fields
}
func NewEventRepo ¶
type ProductRepo ¶
type ProductRepo struct {
// contains filtered or unexported fields
}
func NewProductRepo ¶
func NewProductRepo(db *sqlx.DB) *ProductRepo
func (*ProductRepo) AddProduct ¶
func (*ProductRepo) GetProduct ¶
func (*ProductRepo) ListProducts ¶
func (*ProductRepo) RemoveProduct ¶
Click to show internal directories.
Click to hide internal directories.