moxfield

package
v0.0.0-...-1249b89 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection struct {
	PageNumber   int `json:"pageNumber"`
	PageSize     int `json:"pageSize"`
	TotalResults int `json:"totalResults"`
	TotalPages   int `json:"totalPages"`
	Data         []struct {
		ID            string  `json:"id"`
		Quantity      int     `json:"quantity"`
		Condition     string  `json:"condition"`
		Game          string  `json:"game"`
		Finish        string  `json:"finish"`
		PurchasePrice float64 `json:"purchasePrice"`
		Notes         string  `json:"notes"`
		Card          struct {
			ScryfallID string `json:"scryfall_id"`
			Lang       string `json:"lang"`
			IsToken    bool   `json:"isToken"`
		} `json:"card,omitempty"`
	} `json:"data"`
}

type Deck

type Deck struct {
	Boards map[string]struct {
		Count int `json:"count"`
		Cards map[string]struct {
			Quantity int    `json:"quantity"`
			Finish   string `json:"finish"`
			Card     struct {
				ScryfallID string `json:"scryfall_id"`
			} `json:"card"`
		} `json:"cards"`
	} `json:"boards"`
}

type Item

type Item struct {
	ScryfallID string
	Quantity   int
	IsFoil     bool
	IsEtched   bool
	Condition  string
	Price      float64
	Notes      string
}

func Load

func Load(ctx context.Context, link string, maxRows int) ([]Item, error)

Jump to

Keyboard shortcuts

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