abugames

package
v0.0.0-...-94d9014 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ABUCard

type ABUCard struct {
	Id           string `json:"id"`
	DisplayTitle string `json:"display_title"`
	SimpleTitle  string `json:"simple_title"`

	Edition   string `json:"magic_edition_sort"`
	Condition string `json:"condition"`
	Layout    string `json:"layout"`

	Rarity   string   `json:"rarity"`
	Language []string `json:"language"`
	Title    string   `json:"title"`
	Number   string   `json:"card_number"`

	SellPrice    float64 `json:"price"`
	SellQuantity int     `json:"quantity"`
	BuyQuantity  int     `json:"buy_list_quantity"`
	BuyPrice     float64 `json:"buy_price"`
	TradePrice   float64 `json:"trade_price"`
}

type ABUClient

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

func NewABUClient

func NewABUClient() *ABUClient

func (*ABUClient) GetInfo

func (abu *ABUClient) GetInfo() (*ABUProduct, error)

func (*ABUClient) GetProduct

func (abu *ABUClient) GetProduct(pageStart int) (*ABUProduct, error)

type ABUGames

type ABUGames struct {
	LogCallback mtgban.LogCallbackFunc

	MaxConcurrency int
	// contains filtered or unexported fields
}

func NewScraper

func NewScraper() *ABUGames

func (*ABUGames) Buylist

func (abu *ABUGames) Buylist() (mtgban.BuylistRecord, error)

func (*ABUGames) Info

func (abu *ABUGames) Info() (info mtgban.ScraperInfo)

func (*ABUGames) Inventory

func (abu *ABUGames) Inventory() (mtgban.InventoryRecord, error)

type ABUProduct

type ABUProduct struct {
	Grouped struct {
		ProductId struct {
			Count  int `json:"ngroups"`
			Groups []struct {
				Doclist struct {
					Cards []ABUCard `json:"docs"`
				} `json:"doclist"`
			} `json:"groups"`
		} `json:"product_id"`
	} `json:"grouped"`
}

Jump to

Keyboard shortcuts

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