cardkingdom

package
v0.0.0-...-f36864f Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 13 Imported by: 2

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 (ck *CKClient) GetHotBuylist() ([]CKCard, error)

func (*CKClient) GetPriceList

func (ck *CKClient) GetPriceList() ([]CKCard, error)

func (*CKClient) GetSealedList

func (ck *CKClient) GetSealedList() ([]CKCard, error)

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 (*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)

Jump to

Keyboard shortcuts

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