Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Deck ¶
type Deck struct { gorm.Model ID string `gorm:"primaryKey"` Shuffled bool Composition string `gorm:"type:varchar(64)"` Codes pq.StringArray `gorm:"type:varchar(3)[]"` }
Deck represents a deck of cards.
func DomainDeckToDeck ¶
DomainDeckToDeck transforms a domain deck to a repo deck.
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
Repository is a PostgreSQL implementation of the deckr.Repository interface.
func NewRepository ¶
func NewRepository(uri string, log *logger.Logger) (*Repository, error)
NewRepository creates a new PostgreSQL repository.
Click to show internal directories.
Click to hide internal directories.