Documentation
¶
Index ¶
- type ABUCard
- type ABUClient
- func (abu *ABUClient) Get(url string) (*http.Response, error)
- func (abu *ABUClient) GetProduct(pageStart int) (*ABUProduct, error)
- func (abu *ABUClient) GetSealedProduct(pageStart int) (*ABUResponse, error)
- func (abu *ABUClient) GetTotalItems() (int, error)
- func (abu *ABUClient) GetTotalSealedItems() (int, error)
- func (abu *ABUClient) Post(url, contentType string, reader io.Reader) (*http.Response, error)
- func (abu *ABUClient) SetCartBuylist(abuId string, qty int) (*CartResponse, error)
- func (abu *ABUClient) SetCartInventory(abuId string, qty int) (*CartResponse, error)
- type ABUGames
- type ABUGamesSealed
- func (abu *ABUGamesSealed) Buylist() (mtgban.BuylistRecord, error)
- func (abu *ABUGamesSealed) Info() (info mtgban.ScraperInfo)
- func (abu *ABUGamesSealed) InfoForScraper(name string) mtgban.ScraperInfo
- func (abu *ABUGamesSealed) Inventory() (mtgban.InventoryRecord, error)
- func (abu *ABUGamesSealed) TraderNames() []string
- type ABUProduct
- type ABUResponse
- type CartRequest
- type CartResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ABUCard ¶
type ABUCard struct { Id string `json:"id"` DisplayTitle string `json:"display_title"` SimpleTitle string `json:"simple_title"` Edition string `json:"magic_edition_sort"` Condition string `json:"condition"` Layout string `json:"layout"` Rarity string `json:"rarity"` Language []string `json:"language"` Title string `json:"title"` Number string `json:"card_number"` SellPrice float64 `json:"price"` SellQuantity int `json:"quantity"` BuyQuantity int `json:"buy_list_quantity"` BuyPrice float64 `json:"buy_price"` TradePrice float64 `json:"trade_price"` }
type ABUClient ¶
type ABUClient struct {
// contains filtered or unexported fields
}
func NewABUClient ¶
func NewABUClient() *ABUClient
func NewABUClientWithBearer ¶ added in v0.4.48
func (*ABUClient) GetProduct ¶
func (abu *ABUClient) GetProduct(pageStart int) (*ABUProduct, error)
func (*ABUClient) GetSealedProduct ¶ added in v0.4.49
func (abu *ABUClient) GetSealedProduct(pageStart int) (*ABUResponse, error)
func (*ABUClient) GetTotalItems ¶ added in v0.4.49
Use the URL as is, with just one row requested to fetch the number of items
func (*ABUClient) GetTotalSealedItems ¶ added in v0.4.49
func (*ABUClient) SetCartBuylist ¶ added in v0.4.48
func (abu *ABUClient) SetCartBuylist(abuId string, qty int) (*CartResponse, error)
func (*ABUClient) SetCartInventory ¶ added in v0.4.48
func (abu *ABUClient) SetCartInventory(abuId string, qty int) (*CartResponse, error)
type ABUGames ¶
type ABUGames struct { LogCallback mtgban.LogCallbackFunc MaxConcurrency int // contains filtered or unexported fields }
func NewScraper ¶
func NewScraper() *ABUGames
func (*ABUGames) Info ¶
func (abu *ABUGames) Info() (info mtgban.ScraperInfo)
func (*ABUGames) InfoForScraper ¶ added in v0.4.48
func (abu *ABUGames) InfoForScraper(name string) mtgban.ScraperInfo
func (*ABUGames) TraderNames ¶ added in v0.4.32
type ABUGamesSealed ¶ added in v0.4.49
type ABUGamesSealed struct { LogCallback mtgban.LogCallbackFunc MaxConcurrency int // contains filtered or unexported fields }
func NewScraperSealed ¶ added in v0.4.49
func NewScraperSealed() *ABUGamesSealed
func (*ABUGamesSealed) Buylist ¶ added in v0.4.49
func (abu *ABUGamesSealed) Buylist() (mtgban.BuylistRecord, error)
func (*ABUGamesSealed) Info ¶ added in v0.4.49
func (abu *ABUGamesSealed) Info() (info mtgban.ScraperInfo)
func (*ABUGamesSealed) InfoForScraper ¶ added in v0.4.49
func (abu *ABUGamesSealed) InfoForScraper(name string) mtgban.ScraperInfo
func (*ABUGamesSealed) Inventory ¶ added in v0.4.49
func (abu *ABUGamesSealed) Inventory() (mtgban.InventoryRecord, error)
func (*ABUGamesSealed) TraderNames ¶ added in v0.4.49
func (abu *ABUGamesSealed) TraderNames() []string
type ABUProduct ¶
type ABUResponse ¶ added in v0.4.49
type CartRequest ¶ added in v0.4.48
type CartResponse ¶ added in v0.4.48
type CartResponse struct { BuyList string `json:"buyList"` NqData struct { Maxqty int `json:"maxqty"` } `json:"nqData"` ConditionRowID int `json:"condition_row_id"` Resp struct { Exception any `json:"exception"` Headers []any `json:"headers"` Original any `json:"original"` } `json:"resp"` Message string `json:"message"` Code string `json:"code"` StatusCode int `json:"status_code"` }
Click to show internal directories.
Click to hide internal directories.