Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDeckNotFound = errors.New("Deck not found") ErrCardCountNotAvailable = errors.New("Can't draw more cards than available on the deck") ErrInvalidCardCode = errors.New("Some of cards has an invalid code") ErrInvalidDeckSize = errors.New("The amount of cards is greater than it should be") ErrInvalidDeckID = errors.New("Invalid Deck ID") )
Functions ¶
This section is empty.
Types ¶
type CardResponse ¶
type CreateDeckResponse ¶
type DrawCardResponse ¶
type DrawCardResponse struct {
Cards []*CardResponse `json:"cards"`
}
type OpenDeckResponse ¶
type OpenDeckResponse struct { ID uuid.UUID `json:"deck_id"` Shuffled bool `json:"shuffled"` Remaining int `json:"remaining"` Cards []*CardResponse `json:"cards,omitempty"` }
Click to show internal directories.
Click to hide internal directories.