deckbox

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Card

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

Card details from deckbox export

type Interface

type Interface interface {
	GetDeck(string) ([]string, error)
	GetInventory(string) ([]dataobjects.CardDetail, error)
	GetSetNames() ([]string, error)
}

Interface of a deckbox

type Struct

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

Struct of a deckbox

func Create

func Create() *Struct

Create deckbox

func CreateWithInterface

func CreateWithInterface(wd waitdo.Interface) *Struct

CreateWithInterface a deckbox

func (*Struct) GetDeck

func (db *Struct) GetDeck(listNumber string) (cards []string, err error)

GetDeck from deckbox given it's unique number

func (*Struct) GetInventory

func (db *Struct) GetInventory(listNumber string) (dbInventory []dataobjects.CardDetail, err error)

GetInventory from deckbox given it's unique number

func (*Struct) GetSetNames

func (db *Struct) GetSetNames() (sets []string, err error)

GetSetNames from deckbox because they have a slightly different naming schema compared to scryfall

Jump to

Keyboard shortcuts

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