Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Deck ¶ added in v0.3.0
Deck represents a deck of cards.
func DomainDeckToDeck ¶ added in v0.3.0
DomainDeckToDeck transforms a domain deck to a repo deck.
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
Repository is an in-memory implementation of the deckr.Repository interface.
func NewRepository ¶
func NewRepository(_ context.Context, log *logger.Logger) *Repository
NewRepository creates a new in-memory repository.
func (*Repository) Close ¶ added in v0.3.3
func (r *Repository) Close(_ context.Context) error
Close closes any external connection in the repository.
Click to show internal directories.
Click to hide internal directories.