mythicmtg

package
v0.0.0-...-f36864f Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultResultsPerPage = 128
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MythicClient

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

func NewMythicClient

func NewMythicClient() *MythicClient

func (*MythicClient) Products

func (mc *MythicClient) Products(page int) (io.Reader, error)

func (*MythicClient) TotalItems

func (mc *MythicClient) TotalItems() (int, error)

type MythicMTGPage

type MythicMTGPage struct {
	Params struct {
		ItemsPerPage int `json:"items_per_page"`
		TotalItems   int `json:"total_items,string"`
	} `json:"ab__alp_params"`
	HTML struct {
		Contents string `json:"pagination_contents"`
	} `json:"html"`
	CurrentURL string `json:"current_url"`
}

type Mythicmtg

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

func NewScraper

func NewScraper() *Mythicmtg

func (*Mythicmtg) Buylist

func (mmtg *Mythicmtg) Buylist() (mtgban.BuylistRecord, error)

func (*Mythicmtg) Info

func (mmtg *Mythicmtg) Info() (info mtgban.ScraperInfo)

func (*Mythicmtg) Inventory

func (mmtg *Mythicmtg) Inventory() (mtgban.InventoryRecord, error)

Jump to

Keyboard shortcuts

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