Documentation ¶
Index ¶
- type MenuParserI
- type SupplierProductsParser
- func (h *SupplierProductsParser) GetSupplierProductsByID(id int) ([]models.Product, error)
- func (h *SupplierProductsParser) GetSuppliers() ([]models.Supplier, error)
- func (h *SupplierProductsParser) Parse(ctx context.Context)
- func (h *SupplierProductsParser) ParseIteration(ctx context.Context)
- func (h *SupplierProductsParser) Save(suppliersList *[]models.Supplier)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MenuParserI ¶
type SupplierProductsParser ¶
type SupplierProductsParser struct {
// contains filtered or unexported fields
}
func NewParser ¶
func NewParser(cfg *conf.Config, supplierRepo *db_repository.SupplierRepository, productsRepo *db_repository.ProductRepository) *SupplierProductsParser
func (*SupplierProductsParser) GetSupplierProductsByID ¶
func (h *SupplierProductsParser) GetSupplierProductsByID(id int) ([]models.Product, error)
func (*SupplierProductsParser) GetSuppliers ¶
func (h *SupplierProductsParser) GetSuppliers() ([]models.Supplier, error)
func (*SupplierProductsParser) Parse ¶
func (h *SupplierProductsParser) Parse(ctx context.Context)
func (*SupplierProductsParser) ParseIteration ¶
func (h *SupplierProductsParser) ParseIteration(ctx context.Context)
func (*SupplierProductsParser) Save ¶
func (h *SupplierProductsParser) Save(suppliersList *[]models.Supplier)
Click to show internal directories.
Click to hide internal directories.