deck

package
v0.0.0-...-20a34b2 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deck

type Deck struct {
	Id         string      `json:"id"`
	DeckName   string      `json:"deck_name"`
	Cards      []card.Card `json:"cards"`
	Created_at time.Time   `json:"created_at"`
}

Deck Entity

func NewDeck

func NewDeck(deckName string) *Deck

type Repository

type Repository interface {
	Store(deckName string) (string, error)
}

type Usecase

type Usecase interface {
	CreateAndPopulateDeck([]card.Card) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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