stores

package
v0.0.0-...-1f4d271 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Amazon

type Amazon struct {
	// contains filtered or unexported fields
}

func NewAmazon

func NewAmazon(l *zap.Logger) Amazon

func (Amazon) Check

func (a Amazon) Check(getPage func() *rod.Page, releasePage func(*rod.Page)) StockCheckResult

type Argos

type Argos struct {
	// contains filtered or unexported fields
}

func NewArgos

func NewArgos(l *zap.Logger) Argos

func (Argos) Check

func (a Argos) Check(getPage func() *rod.Page, releasePage func(*rod.Page)) StockCheckResult

type Currys

type Currys struct {
	// contains filtered or unexported fields
}

func NewCurrys

func NewCurrys(l *zap.Logger) Currys

func (Currys) Check

func (c Currys) Check(getPage func() *rod.Page, releasePage func(*rod.Page)) StockCheckResult

type Game

type Game struct {
	// contains filtered or unexported fields
}

func NewGame

func NewGame(l *zap.Logger) Game

func (Game) Check

func (g Game) Check(getPage func() *rod.Page, releasePage func(*rod.Page)) StockCheckResult

type JohnLewis

type JohnLewis struct {
	// contains filtered or unexported fields
}

func NewJohnLewis

func NewJohnLewis(l *zap.Logger) JohnLewis

func (JohnLewis) Check

func (j JohnLewis) Check(getPage func() *rod.Page, releasePage func(*rod.Page)) StockCheckResult

type ShopTo

type ShopTo struct {
	// contains filtered or unexported fields
}

func NewShopTo

func NewShopTo(l *zap.Logger) ShopTo

func (ShopTo) Check

func (s ShopTo) Check(getPage func() *rod.Page, releasePage func(*rod.Page)) StockCheckResult

type Smyths

type Smyths struct {
	// contains filtered or unexported fields
}

func NewSmyths

func NewSmyths(l *zap.Logger) Smyths

func (Smyths) Check

func (s Smyths) Check(getPage func() *rod.Page, releasePage func(*rod.Page)) StockCheckResult

type StockCheckResult

type StockCheckResult struct {
	StoreName string
	Status    StockStatus
}

func (StockCheckResult) String

func (s StockCheckResult) String() string

type StockStatus

type StockStatus int

Based off: https://programming.guide/go/define-enumeration-string.html

const (
	InStock StockStatus = iota
	OutOfStock
	Unknown
)

func (StockStatus) String

func (s StockStatus) String() string

type Store

type Store interface {
	Check(getPage func() *rod.Page, releasePage func(*rod.Page)) StockCheckResult
}

Jump to

Keyboard shortcuts

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