v1

package
v0.0.0-...-43a32cb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePricesSameWholesaler

func ComparePricesSameWholesaler(cfg Config) fiber.Handler

func CreateXlsxFile

func CreateXlsxFile(cfg Config) fiber.Handler

func GetAllProducts

func GetAllProducts(cfg Config) fiber.Handler

func GetProductById

func GetProductById(cfg Config) fiber.Handler

func GetProductsByWholesaler

func GetProductsByWholesaler(cfg Config) fiber.Handler

func GetWholesaler

func GetWholesaler(cfg Config) fiber.Handler

func GetWholesalers

func GetWholesalers(cfg Config) fiber.Handler

func Home

func Home(c *fiber.Ctx) error

func NeedUpdatePricesSameWholesaler

func NeedUpdatePricesSameWholesaler(cfg Config) fiber.Handler

func Routes

func Routes(app *fiber.App, cfg Config) func(routes fiber.Router)

Routes binds all the version 1 routes.

func SaveWholesaler

func SaveWholesaler(cfg Config) fiber.Handler

func Scraper

func Scraper(cfg Config) fiber.Handler

func ShowSameProducts

func ShowSameProducts(cfg Config) fiber.Handler

func UpdateWholesaler

func UpdateWholesaler(cfg Config) fiber.Handler

Types

type Config

type Config struct {
	Log   *logrus.Logger
	Db    *database.MongoDb
	Setup *config.Data
}

Config contains all the mandatory systems required by handlers.

type PriceCompared

type PriceCompared struct {
	Name  string
	Price float64
	Webs  []PriceWeb
}

type PriceWeb

type PriceWeb struct {
	Name  string
	Price float64
	Owner string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL