monitor

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

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

Go to latest
Published: Nov 22, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseV2

func ParseV2(str string, start string, end string) (result string)

func WalmartCheckStockV1

func WalmartCheckStockV1()

func WalmartMonitorTask

func WalmartMonitorTask()

Types

type AmazonMonitor

type AmazonMonitor struct {
	Id              string
	UserAgent       string
	Proxy           string
	UseProxy        bool
	Price           float64
	PollingInterval int
	Sku             string
	OfferId         string
	LoggingDisabled bool
	Active          bool
}

func (*AmazonMonitor) AmazonCheckStock

func (monitor *AmazonMonitor) AmazonCheckStock(client *http.Client, apiToken string) (bool, bool, bool, error)

func (*AmazonMonitor) AmazonCheckStockV2

func (monitor *AmazonMonitor) AmazonCheckStockV2(client *http.Client, apiToken string) (bool, bool, bool, error)

func (*AmazonMonitor) AmazonMonitorTaskV2

func (monitor *AmazonMonitor) AmazonMonitorTaskV2() (bool, error)

func (*AmazonMonitor) Cancel

func (monitor *AmazonMonitor) Cancel()

func (*AmazonMonitor) CreateSession

func (monitor *AmazonMonitor) CreateSession(client *http.Client) error

func (*AmazonMonitor) GetApiToken

func (monitor *AmazonMonitor) GetApiToken(client *http.Client) (string, error)

type BestbuyMonitor

type BestbuyMonitor struct {
	Id              string
	UserAgent       string
	Proxy           string
	PollingInterval int
	Sku             string
	LoggingDisabled bool
	Active          bool
}

func (*BestbuyMonitor) BestbuyCheckStock

func (monitor *BestbuyMonitor) BestbuyCheckStock(client *http.Client) (bool, bool, error)

func (*BestbuyMonitor) BestbuyMonitorTask

func (monitor *BestbuyMonitor) BestbuyMonitorTask() (bool, error)

func (*BestbuyMonitor) Cancel

func (monitor *BestbuyMonitor) Cancel()

type HashList

type HashList struct {
	Id        string `json:"WM_CONSUMER.ID"`
	TimeStamp string `json:"WM_CONSUMER.INTIMESTAMP"`
	KeyVer    string `json:"WM_SEC.KEY_VERSION"`
}

type NeweggMonitor

type NeweggMonitor struct {
	Id              string
	UserAgent       string
	Proxy           string
	PollingInterval int
	Sku             string
	LoggingDisabled bool
	Active          bool
}

func (*NeweggMonitor) Cancel

func (monitor *NeweggMonitor) Cancel()

func (*NeweggMonitor) NeweggMonitorTask

func (monitor *NeweggMonitor) NeweggMonitorTask() (bool, error)

Jump to

Keyboard shortcuts

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