trollandtoad

package
v0.4.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TATBuyingOption

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

type TATClient

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

func NewTATClient

func NewTATClient() *TATClient

func (*TATClient) GetProductOptions

func (tat *TATClient) GetProductOptions(productId string) ([]TATBuyingOption, error)

func (*TATClient) ListModernEditions

func (tat *TATClient) ListModernEditions() ([]TATEdition, error)

func (*TATClient) ListVintageEditions

func (tat *TATClient) ListVintageEditions() ([]TATEdition, error)

func (*TATClient) ProductsForId

func (tat *TATClient) ProductsForId(id string, code string) (*TATProduct, error)

type TATEdition

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

type TATProduct

type TATProduct 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) Buylist

func (tat *Trollandtoad) Buylist() (mtgban.BuylistRecord, error)

func (*Trollandtoad) Info

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

func (*Trollandtoad) Inventory

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

Jump to

Keyboard shortcuts

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