trollandtoad

package
v0.0.0-...-04cb1ee Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 18 Imported by: 2

Documentation

Index

Constants

View Source
const (
	GameLorcana = 6
)
View Source
const MB1ProductHash = "48ff4766-9d88-5426-800a-1613c990011b"

Variables

This section is empty.

Functions

This section is empty.

Types

type TNTBuyingOption

type TNTBuyingOption struct {
	ProductId  int     `json:"productid"`
	Price      float64 `json:"saleprice"`
	Quantity   int     `json:"quantityonsite"`
	Conditions string  `json:"conditioncode"`
}

type TNTClient

type TNTClient struct {
	// contains filtered or unexported fields
}

func NewTNTClient

func NewTNTClient() *TNTClient

func (*TNTClient) GetProductOptions

func (tnt *TNTClient) GetProductOptions(productId string) ([]TNTBuyingOption, error)

func (*TNTClient) ListModernEditions

func (tnt *TNTClient) ListModernEditions() ([]TNTEdition, error)

func (*TNTClient) ListVintageEditions

func (tnt *TNTClient) ListVintageEditions() ([]TNTEdition, error)

func (*TNTClient) ProductsForId

func (tnt *TNTClient) ProductsForId(id string, code string) (*TNTProduct, error)

type TNTEdition

type TNTEdition struct {
	DeptId       string `json:"dept_id"`
	CategoryId   string `json:"category_id"`
	CategoryName string `json:"category_name"`
}

type TNTProduct

type TNTProduct struct {
	Product map[string]struct {
		Name      string `json:"name"`
		Edition   string `json:"catname"`
		Condition string `json:"condition"`
		BuyPrice  string `json:"buyprice"`
		Quantity  string `json:"buyqty"`
	} `json:"product"`
}

type TrollAndToadGeneric

type TrollAndToadGeneric struct {
	LogCallback    mtgban.LogCallbackFunc
	MaxConcurrency int
	// contains filtered or unexported fields
}

func NewGenericScraper

func NewGenericScraper(game int) *TrollAndToadGeneric

func (*TrollAndToadGeneric) Buylist

func (tnt *TrollAndToadGeneric) Buylist() (mtgban.BuylistRecord, error)

func (*TrollAndToadGeneric) Info

func (tnt *TrollAndToadGeneric) Info() (info mtgban.ScraperInfo)

func (*TrollAndToadGeneric) Inventory

func (tnt *TrollAndToadGeneric) Inventory() (mtgban.InventoryRecord, error)

type Trollandtoad

type Trollandtoad struct {
	LogCallback mtgban.LogCallbackFunc

	MaxConcurrency int
	// contains filtered or unexported fields
}

func NewScraper

func NewScraper() *Trollandtoad

func (*Trollandtoad) Info

func (tnt *Trollandtoad) Info() (info mtgban.ScraperInfo)

func (*Trollandtoad) Inventory

func (tnt *Trollandtoad) Inventory() (mtgban.InventoryRecord, error)

type TrollandtoadSealed

type TrollandtoadSealed struct {
	LogCallback mtgban.LogCallbackFunc
	Partner     string

	MaxConcurrency int
	// contains filtered or unexported fields
}

func NewScraperSealed

func NewScraperSealed() *TrollandtoadSealed

func (*TrollandtoadSealed) Info

func (tnt *TrollandtoadSealed) Info() (info mtgban.ScraperInfo)

func (*TrollandtoadSealed) Inventory

func (tnt *TrollandtoadSealed) Inventory() (mtgban.InventoryRecord, error)

Jump to

Keyboard shortcuts

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