mtgprice

package
v0.0.0-...-65fc9ba Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2014 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CardInfo

type CardInfo struct {
	Name  string   `json:"name"`
	Names []string `json:"names,omitempty"`
	// NOTE: there is one card with .5 mana cost.
	CMC          float64  `json:"cmc"`
	MultiverseID *int     `json:"multiverseid,omitempty"`
	ManaCost     string   `json:"manaCost"`
	Rarity       string   `json:"rarity"`
	Power        string   `json:"power,omitempty"`
	Toughness    string   `json:"toughness,omitempty"`
	Type         string   `json:"type"`
	Types        []string `json:"types"`
}

type Client

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

func Open

func Open(opts Opts) (c *Client, err error)

func (*Client) CardInfo

func (c *Client) CardInfo(cardName string) (ci CardInfo, ok bool)

func (*Client) Close

func (c *Client) Close() error

func (*Client) PriceForCard

func (c *Client) PriceForCard(cardName string) (prices tcg.Price, err error)

func (*Client) RichInfo

func (c *Client) RichInfo(cardName string) (i info, err error)

type Opts

type Opts struct {
	Filename, CardData string
}

Jump to

Keyboard shortcuts

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