miniaturemarket

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

View Source
const (
	MMCategoryMtgSingles    = "1466"
	MMDefaultResultsPerPage = 32
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MMClient

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

func NewMMClient

func NewMMClient() *MMClient

func (*MMClient) GetInventory

func (mm *MMClient) GetInventory(start int) (*MMSearchResponse, error)

func (*MMClient) NumberOfProducts

func (mm *MMClient) NumberOfProducts() (int, error)

type MMProduct

type MMProduct struct {
	UUID     string  `json:"uniqueId"`
	Edition  string  `json:"mtg_set"`
	Title    string  `json:"title"`
	URL      string  `json:"productUrl"`
	Price    float64 `json:"price"`
	Quantity int     `json:"quantity"`
}

type MMSearchResponse

type MMSearchResponse struct {
	Response struct {
		NumberOfProducts int         `json:"numberOfProducts"`
		Products         []MMProduct `json:"products"`
	} `json:"response"`
}

type Miniaturemarket

type Miniaturemarket struct {
	LogCallback    mtgban.LogCallbackFunc
	MaxConcurrency int
	Affiliate      string
	// contains filtered or unexported fields
}

func NewScraperSealed

func NewScraperSealed() *Miniaturemarket

func (*Miniaturemarket) Info

func (mm *Miniaturemarket) Info() (info mtgban.ScraperInfo)

func (*Miniaturemarket) Inventory

func (mm *Miniaturemarket) Inventory() (mtgban.InventoryRecord, error)

Jump to

Keyboard shortcuts

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