entity

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: MIT Imports: 2 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 {
	ID uuid.UUID

	Front string
	Back  string

	DeckID string
}

func CardFromValue added in v0.4.0

func CardFromValue(val value.Card) *Card

func (*Card) ToValue added in v0.4.0

func (c *Card) ToValue() *value.Card

func (*Card) UpdateFrom

func (c *Card) UpdateFrom(val value.Card) *Card

type Cards

type Cards []Card

func (Cards) ToValue added in v0.4.0

func (d Cards) ToValue() []value.Card

type Deck

type Deck struct {
	ID uuid.UUID

	Name string
}

func DeckFromValue added in v0.4.0

func DeckFromValue(val value.Deck) *Deck

func (*Deck) ToValue added in v0.4.0

func (d *Deck) ToValue() *value.Deck

func (*Deck) UpdateFrom

func (d *Deck) UpdateFrom(val value.Deck) *Deck

type Decks

type Decks []Deck

func (Decks) ToValue added in v0.4.0

func (d Decks) ToValue() []value.Deck

Jump to

Keyboard shortcuts

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