Documentation
¶
Index ¶
- Constants
- type BANPriceResponse
- type BanPrice
- type SealedEVScraper
- func (ss *SealedEVScraper) Buylist() (mtgban.BuylistRecord, error)
- func (ss *SealedEVScraper) Info() (info mtgban.ScraperInfo)
- func (ss *SealedEVScraper) InfoForScraper(name string) mtgban.ScraperInfo
- func (ss *SealedEVScraper) Inventory() (mtgban.InventoryRecord, error)
- func (tcg *SealedEVScraper) MarketNames() []string
Constants ¶
View Source
const ( BANAPIURL = "https://www.mtgban.com/api/mtgban/all.json?tag=tags&sig=" BulkThreshold = 0.5 )
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 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) InfoForScraper ¶ added in v0.4.48
func (ss *SealedEVScraper) InfoForScraper(name string) mtgban.ScraperInfo
func (*SealedEVScraper) Inventory ¶
func (ss *SealedEVScraper) Inventory() (mtgban.InventoryRecord, error)
func (*SealedEVScraper) MarketNames ¶
func (tcg *SealedEVScraper) MarketNames() []string
Click to show internal directories.
Click to hide internal directories.