Documentation
¶
Index ¶
- func Preprocess(card CKCard) (*mtgmatcher.InputCard, error)
- type CKCard
- type CKClient
- type Cardkingdom
- type CardkingdomSealed
- type CartRequest
- type CookieClient
- func (ck *CookieClient) Get(link string) (*http.Response, error)
- func (ck *CookieClient) Post(url, contentType string, reader io.Reader) (*http.Response, error)
- func (ck *CookieClient) SetCartBuylist(ckId string, qty int) (string, error)
- func (ck *CookieClient) SetCartInventory(ckId, cond string, qty int) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Preprocess ¶
func Preprocess(card CKCard) (*mtgmatcher.InputCard, 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 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)
type CartRequest ¶
type CookieClient ¶
type CookieClient struct {
// contains filtered or unexported fields
}
func NewCookieClient ¶
func NewCookieClient(session string) *CookieClient
func (*CookieClient) SetCartBuylist ¶
func (ck *CookieClient) SetCartBuylist(ckId string, qty int) (string, error)
func (*CookieClient) SetCartInventory ¶
func (ck *CookieClient) SetCartInventory(ckId, cond string, qty int) (string, error)
Click to show internal directories.
Click to hide internal directories.