controllers

package
v0.0.0-...-eebc240 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBeerOffer

func GetBeerOffer(c *fiber.Ctx) error

Qoqa godoc @Summary Get current deal from Qbeer @Description receive the promotion of the day @Tags Qoqa 🦦 @Produce json @Success 200 {object} controllers.QoqaProduct @Router /deals/qbeer [get]

func GetCollectorData

func GetCollectorData(domains []string) []string

func GetDigitecOffer

func GetDigitecOffer(c *fiber.Ctx) error

Galaxus godoc @Summary Get current deal from Digitec @Description receive the promotion of the day @Tags Galaxus 🐢 @Produce json @Success 200 {object} controllers.GalaxusProduct @Router /deals/digitec [get]

func GetGalaxusOffer

func GetGalaxusOffer(c *fiber.Ctx) error

Galaxus godoc @Summary Get current deal from Galaxus @Description receive the promotion of the day @Tags Galaxus 🐢 @Produce json @Success 200 {object} controllers.GalaxusProduct @Router /deals/galaxus [get]

func GetQlockOffer

func GetQlockOffer(c *fiber.Ctx) error

Qoqa godoc @Summary Get current deal from Qlock @Description receive the promotion of the day @Tags Qoqa 🦦 @Produce json @Success 200 {object} controllers.QoqaProduct @Router /deals/qlock [get]

func GetQookingOffer

func GetQookingOffer(c *fiber.Ctx) error

Qoqa godoc @Summary Get current deal from Qooking @Description receive the promotion of the day @Tags Qoqa 🦦 @Produce json @Success 200 {object} controllers.QoqaProduct @Router /deals/qooking [get]

func GetQoqaOffer

func GetQoqaOffer(c *fiber.Ctx) error

Qoqa godoc @Summary Get current deal from QoQa @Description receive the promotion of the day @Tags Qoqa 🦦 @Produce json @Success 200 {object} controllers.QoqaProduct @Router /deals/qoqa [get]

func GetQsportOffer

func GetQsportOffer(c *fiber.Ctx) error

Qoqa godoc @Summary Get current deal from Qsport @Description receive the promotion of the day @Tags Qoqa 🦦 @Produce json @Success 200 {object} controllers.QoqaProduct @Router /deals/qsport [get]

func GetQwineOffer

func GetQwineOffer(c *fiber.Ctx) error

Qoqa godoc @Summary Get current deal from Qwine @Description receive the promotion of the day @Tags Qoqa 🦦 @Produce json @Success 200 {object} controllers.QoqaProduct @Router /deals/qwine [get]

Types

type GalaxusProduct

type GalaxusProduct struct {
	Store          string `json:"store"`
	Title          string `json:"title"`
	Url            string `json:"url"`
	RemainingStock int    `json:"remaining_stock"`
	Stock          int    `json:"stock"`
	OfferPrice     int    `json:"offer_price"`
	RegularPrice   int    `json:"regular_price"`
	ImageUrl       string `json:"image_url"`
}

type QoqaProduct

type QoqaProduct struct {
	Store          string `json:"store"`
	Title          string `json:"title"`
	Subtitle       string `json:"subtitle"`
	Url            string `json:"url"`
	RemainingStock int64  `json:"remaining_stock"`
	Stock          int    `json:"stock"`
	OfferPrice     string `json:"offer_price"`
	RegularPrice   string `json:"regular_price"`
	ImageUrl       string `json:"image_url"`
}

Jump to

Keyboard shortcuts

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