cklite

package
v0.0.0-...-ba6ee8b Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Preprocess

func Preprocess(card CKCard) (*mtgmatcher.Card, error)

Types

type CKCard

type CKCard struct {
	Id           int    `json:"id"`
	SKU          string `json:"sku"`
	URL          string `json:"url"`
	Name         string `json:"name"`
	Variation    string `json:"variation"`
	Edition      string `json:"edition"`
	IsFoil       string `json:"is_foil"`
	SellPrice    string `json:"price_retail"`
	SellQuantity int    `json:"qty_retail"`
	BuyPrice     string `json:"price_buy"`
	BuyQuantity  int    `json:"qty_buying"`
}

type CKPriceList

type CKPriceList struct {
	Meta struct {
		CreatedAt string `json:"created_at"`
		BaseURL   string `json:"base_url"`
	} `json:"meta"`
	Data []CKCard `json:"data"`
}

func GetPriceList

func GetPriceList() (*CKPriceList, error)

Jump to

Keyboard shortcuts

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