models

package
v0.0.0-...-2b77a9c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiExistsTest

type ApiExistsTest struct {
	Endpoint string
	Method   string
	ResType  int
}

Testing purposes

type Card

type Card struct {
	Value string `bson:"value" json:"value"`
	Suite string `bson:"suite" json:"suite"`
	Code  string `bson:"code" json:"code"`
}

Card is a structure for cards

type CreateDeckTest

type CreateDeckTest struct {
	Shuffle   string
	Cards     string
	Remaining int
}

type Deck

type Deck struct {
	Shuffled  bool   `bson:"shuffled" json:"shuffled"`
	Remaining int    `bson:"remaining" json:"remaining"`
	Cards     []Card `bson:"cards" json:"cards"`
}

Deck is a structure to store each Deck

type DeckId

type DeckId struct {
	Id        string `bson:"_id" json:"deck_id"`
	Shuffled  bool   `bson:"shuffled" json:"shuffled"`
	Remaining int    `bson:"remaining" json:"remaining"`
	Cards     []Card `bson:"cards" json:"cards"`
}

type DeckMo

type DeckMo struct {
	DeckID    string `json:"deck_id"`
	Shuffled  bool   `json:"shuffled"`
	Remaining int    `json:"remaining"`
}

DeckMo is a struct for storing deck data

type OpenDeck

type OpenDeck struct {
	Deck  Deck
	Cards []Card
}

OpenDeck is a structure to show a Deck and all the cards within

Jump to

Keyboard shortcuts

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