Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface {
Get(context.Context, string) (*deck.Deck, error)
Save(context.Context, *deck.Deck) error
Migrate(context.Context) error
}
Repository is an interface to get and save a deck.
func NewRepository ¶ added in v0.3.0
func NewRepository(uri string, log *logger.Logger) (Repository, error)
NewRepository returns a new repository.
Click to show internal directories.
Click to hide internal directories.