Documentation ¶
Index ¶
Constants ¶
View Source
const (
NFDefaultResultsPerPage = 400
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NFClient ¶
type NFClient struct {
// contains filtered or unexported fields
}
func NewNFClient ¶
func (*NFClient) BuylistTotals ¶
func (*NFClient) RetailTotals ¶
type NFProduct ¶
type NFProduct struct { Language struct { Code string `json:"code"` Name string `json:"name"` } `json:"language"` Foil int `json:"foil"` // Used in retail Condition string `json:"condition"` // Used in buylist Conditions []string `json:"conditions"` Price int `json:"price"` Currency struct { Code string `json:"code"` Name string `json:"name"` } `json:"currency"` Quantity int `json:"qnt"` Card NFCard `json:"card"` // Present in retail but not buylist Set NFSet `json:"set"` }
type NFSearchResponse ¶
type NFSearchResponse struct { Code string `json:"code"` Message string `json:"message"` Results struct { Data []NFProduct `json:"data"` Meta struct { Pagination struct { Total int `json:"total"` Count int `json:"count"` PerPage int `json:"per_page"` CurrentPage int `json:"current_page"` TotalPages int `json:"total_pages"` } `json:"pagination"` } `json:"meta"` } `json:"results"` Errors []string `json:"errors"` Redirect string `json:"redirect"` }
type Ninetyfive ¶
type Ninetyfive struct { LogCallback mtgban.LogCallbackFunc MaxConcurrency int // contains filtered or unexported fields }
func NewScraper ¶
func NewScraper(altHost bool) (*Ninetyfive, error)
func (*Ninetyfive) Buylist ¶
func (nf *Ninetyfive) Buylist() (mtgban.BuylistRecord, error)
func (*Ninetyfive) Info ¶
func (nf *Ninetyfive) Info() (info mtgban.ScraperInfo)
func (*Ninetyfive) Inventory ¶
func (nf *Ninetyfive) Inventory() (mtgban.InventoryRecord, error)
Click to show internal directories.
Click to hide internal directories.