mintcard

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Card

type Card struct {
	ID       string `json:"Id"`
	Name     string `json:"Name"`
	Number   string `json:"Number,omitempty"`
	Quantity int    `json:"Quantity,omitempty,string"`
	Price    string `json:"Price,omitempty"`
	BuyPrice string `json:"Buy Price,omitempty"`
}

type MTGMintCard

type MTGMintCard struct {
	LogCallback mtgban.LogCallbackFunc
	Partner     string
	// contains filtered or unexported fields
}

func NewScraper

func NewScraper() *MTGMintCard

func (*MTGMintCard) Buylist

func (mint *MTGMintCard) Buylist() (mtgban.BuylistRecord, error)

func (*MTGMintCard) Info

func (mint *MTGMintCard) Info() (info mtgban.ScraperInfo)

func (*MTGMintCard) Inventory

func (mint *MTGMintCard) Inventory() (mtgban.InventoryRecord, error)

type MintClient

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

func NewMintClient

func NewMintClient() (*MintClient, error)

func (*MintClient) GetProductList

func (mint *MintClient) GetProductList() (MintData, error)

type MintData

type MintData map[string]struct {
	Abbreviation string `json:"Abbreviation"`
	EditionId    string `json:"Edition Id"`
	// Maps of Language - Finish - Condition - Rarity as keys
	Cards map[string]map[string]map[string]map[string][]Card `json:"Cards"`
}

Map with Edition as keys

type MintProductList

type MintProductList struct {
	Ack       string   `json:"Ack"`
	Products  MintData `json:"Products"`
	Timestamp string   `json:"Timestamp"`
}

Jump to

Keyboard shortcuts

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