Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Preprocess ¶
func Preprocess(card CKCard) (*mtgmatcher.Card, error)
Types ¶
type CKCard ¶
type CKCard struct { Id int `json:"id"` SKU string `json:"sku"` URL string `json:"url"` Name string `json:"name"` Variation string `json:"variation"` Edition string `json:"edition"` IsFoil string `json:"is_foil"` SellPrice string `json:"price_retail"` SellQuantity int `json:"qty_retail"` BuyPrice string `json:"price_buy"` BuyQuantity int `json:"qty_buying"` ConditionValues conditionValues `json:"condition_values"` // Only from GetHotBuylist() HotPrice string `json:"price"` ShortName string `json:"short_name,omitempty"` }
type CKClient ¶
type CKClient struct {
// contains filtered or unexported fields
}
func NewCKClient ¶
func NewCKClient() *CKClient
func (*CKClient) GetHotBuylist ¶
func (*CKClient) GetPriceList ¶
func (*CKClient) GetSealedList ¶
type Cardkingdom ¶
type Cardkingdom struct { LogCallback mtgban.LogCallbackFunc Partner string PreserveOOS bool // contains filtered or unexported fields }
func NewScraper ¶
func NewScraper() *Cardkingdom
func (*Cardkingdom) Buylist ¶
func (ck *Cardkingdom) Buylist() (mtgban.BuylistRecord, error)
func (*Cardkingdom) Info ¶
func (ck *Cardkingdom) Info() (info mtgban.ScraperInfo)
func (*Cardkingdom) Inventory ¶
func (ck *Cardkingdom) Inventory() (mtgban.InventoryRecord, error)
type CardkingdomHotBuylist ¶
type CardkingdomHotBuylist struct { LogCallback mtgban.LogCallbackFunc Concurrency int TotalQueries int // contains filtered or unexported fields }
func NewHotScraper ¶
func NewHotScraper() *CardkingdomHotBuylist
func (*CardkingdomHotBuylist) Buylist ¶
func (ck *CardkingdomHotBuylist) Buylist() (mtgban.BuylistRecord, error)
func (*CardkingdomHotBuylist) Info ¶
func (ck *CardkingdomHotBuylist) Info() (info mtgban.ScraperInfo)
type CardkingdomSealed ¶
type CardkingdomSealed struct { LogCallback mtgban.LogCallbackFunc Partner string // contains filtered or unexported fields }
func NewScraperSealed ¶
func NewScraperSealed() *CardkingdomSealed
func (*CardkingdomSealed) Buylist ¶
func (ck *CardkingdomSealed) Buylist() (mtgban.BuylistRecord, error)
func (*CardkingdomSealed) Info ¶
func (ck *CardkingdomSealed) Info() (info mtgban.ScraperInfo)
func (*CardkingdomSealed) Inventory ¶
func (ck *CardkingdomSealed) Inventory() (mtgban.InventoryRecord, error)
Click to show internal directories.
Click to hide internal directories.