trollandtoad

package
v0.4.44 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: MIT Imports: 17 Imported by: 2

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type TNTBuyingOption added in v0.4.21

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

type TNTClient added in v0.4.21

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

func NewTNTClient added in v0.4.21

func NewTNTClient() *TNTClient

func (*TNTClient) GetProductOptions added in v0.4.21

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

func (*TNTClient) ListModernEditions added in v0.4.21

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

func (*TNTClient) ListVintageEditions added in v0.4.21

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

func (*TNTClient) ProductsForId added in v0.4.21

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

type TNTEdition added in v0.4.21

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

type TNTProduct added in v0.4.21

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

Jump to

Keyboard shortcuts

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