cardsphere

package
v0.0.0-...-1e91090 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CardSphereClient

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

func NewCardSphereClient

func NewCardSphereClient(email, password string) (*CardSphereClient, error)

func (*CardSphereClient) GetOfferListByMaxAbsolute

func (cs *CardSphereClient) GetOfferListByMaxAbsolute(offset int) ([]CardSphereOfferList, error)

func (*CardSphereClient) GetOfferListByMaxRelative

func (cs *CardSphereClient) GetOfferListByMaxRelative(offset int) ([]CardSphereOfferList, error)

type CardSphereOfferList

type CardSphereOfferList struct {
	WantId      int     `json:"wantId"`
	MinOffer    int     `json:"minOffer"`
	MaxOffer    int     `json:"maxOffer"`
	MinIndex    int     `json:"minIndex"`
	MaxIndex    int     `json:"maxIndex"`
	MinEff      int     `json:"minEff"`
	MaxEff      int     `json:"maxEff"`
	MinRelEff   float64 `json:"minRelEff"`
	MaxRelEff   float64 `json:"maxRelEff"`
	MasterId    int     `json:"masterId"`
	Image       string  `json:"image"`
	UserId      int     `json:"userId"`
	UserDisplay string  `json:"userDisplay"`
	Country     string  `json:"country"`
	CountryName string  `json:"countryName"`
	Balance     int     `json:"balance"`
	CardName    string  `json:"cardName"`
	Kind        string  `json:"kind"`
	Sets        []struct {
		Code   string `json:"code"`
		Name   string `json:"name"`
		Rarity string `json:"rarity"`
	} `json:"sets"`
	Languages  []string `json:"languages"`
	Conditions []int    `json:"conditions"`
	Finishes   []string `json:"finishes"`
	Quantity   int      `json:"quantity"`
}

type Cardsphere

type Cardsphere struct {
	LogCallback mtgban.LogCallbackFunc

	MaxConcurrency int
	// contains filtered or unexported fields
}

func NewScraper

func NewScraper(email, password string) (*Cardsphere, error)

func (*Cardsphere) Buylist

func (cs *Cardsphere) Buylist() (mtgban.BuylistRecord, error)

func (*Cardsphere) Info

func (cs *Cardsphere) Info() (info mtgban.ScraperInfo)

Jump to

Keyboard shortcuts

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