sealedev

package
v0.0.0-...-462b367 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 15 Imported by: 2

Documentation

Index

Constants

View Source
const (
	BANAPIURL = "https://www.mtgban.com/api/mtgban/all.json?sig="

	BulkThreshold = 0.3
)
View Source
const (
	EVAverageRepetition = 5000

	EVMaxRepickCount = 10

	DefaultRepeatConcurrency = 8
	DefaultSetConcurrency    = 32
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BANPriceResponse

type BANPriceResponse struct {
	Error string `json:"error,omitempty"`
	Meta  struct {
		Date    time.Time `json:"date"`
		Version string    `json:"version"`
		BaseURL string    `json:"base_url"`
	} `json:"meta"`

	// uuid > store > price {regular/foil/etched}
	Retail  map[string]map[string]*BanPrice `json:"retail,omitempty"`
	Buylist map[string]map[string]*BanPrice `json:"buylist,omitempty"`
}

type BanPrice

type BanPrice struct {
	Regular float64 `json:"regular,omitempty"`
	Foil    float64 `json:"foil,omitempty"`
	Etched  float64 `json:"etched,omitempty"`
}

type SealedEVScraper

type SealedEVScraper struct {
	LogCallback      mtgban.LogCallbackFunc
	FastMode         bool
	Affiliate        string
	BuylistAffiliate string
	// contains filtered or unexported fields
}

func NewScraper

func NewScraper(sig string) *SealedEVScraper

func (*SealedEVScraper) Buylist

func (ss *SealedEVScraper) Buylist() (mtgban.BuylistRecord, error)

func (*SealedEVScraper) Info

func (ss *SealedEVScraper) Info() (info mtgban.ScraperInfo)

func (*SealedEVScraper) InitializeInventory

func (ss *SealedEVScraper) InitializeInventory(reader io.Reader) error

func (*SealedEVScraper) Inventory

func (ss *SealedEVScraper) Inventory() (mtgban.InventoryRecord, error)

func (*SealedEVScraper) InventoryForSeller

func (ss *SealedEVScraper) InventoryForSeller(sellerName string) (mtgban.InventoryRecord, error)

func (*SealedEVScraper) MarketNames

func (tcg *SealedEVScraper) MarketNames() []string

Jump to

Keyboard shortcuts

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