Versions in this module Expand all Collapse all v0 v0.1.0 Nov 14, 2023 Changes in this version + type Storage struct + func NewStorage(dbPath string, migrateTables bool) *Storage + func (storage Storage) CreateAssociation(ctx context.Context, conditions storage.CreateAssociationConditions) error + func (storage Storage) CreateCard(ctx context.Context, card protomodels.Card) error + func (storage Storage) DeleteCard(ctx context.Context, cardIndex protomodels.CardIndex) error + func (storage Storage) GetAssociations(ctx context.Context, cardIndex protomodels.CardIndex) (protomodels.RelatedCards, error) + func (storage Storage) GetLog(ctx context.Context, date time.Time) (protomodels.Log, error) + func (storage Storage) ListCardIndices(ctx context.Context) ([]protomodels.CardIndex, error) + func (storage Storage) ListCards(ctx context.Context, req storage.ListCardsRequest) ([]protomodels.Card, error) + func (storage Storage) ListLogs(ctx context.Context, from time.Time, until time.Time) ([]protomodels.Log, error) + func (storage Storage) ReviewCard(ctx context.Context, cardIndex protomodels.CardIndex) error + func (storage Storage) UpdateCard(ctx context.Context, card protomodels.Card) error