cardtrader

package
v0.0.0-...-882b071 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInventory

func NewInventory() mtgban.Scraper

NewInventory initializes a Scraper for retriving inventory information.

Types

type CTCard

type CTCard struct {
	Name string `json:"name"`
	Set  string `json:"set"`
	Foil bool   `json:"foil"`

	Vendor    string  `json:"vendor"`
	Pricing   float64 `json:"price"`
	Condition string  `json:"conditions"`
	Qty       int     `json:"quantity"`
	// contains filtered or unexported fields
}

func (*CTCard) CanonicalCard

func (c *CTCard) CanonicalCard(db mtgjson.MTGDB) (*mtgban.Card, error)

func (*CTCard) Conditions

func (c *CTCard) Conditions() string

func (*CTCard) Market

func (c *CTCard) Market() string

func (*CTCard) Price

func (c *CTCard) Price() float64

func (*CTCard) Quantity

func (c *CTCard) Quantity() int

func (*CTCard) TradePrice

func (c *CTCard) TradePrice() float64

type CardtraderInventory

type CardtraderInventory struct{}

CardtraderInventory is the Scraper for the Card Trader vendor.

func (*CardtraderInventory) Scrape

func (ct *CardtraderInventory) Scrape() ([]mtgban.Entry, error)

Scrape returns an array of Entry, containing pricing and card information

Jump to

Keyboard shortcuts

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