Documentation
¶
Index ¶
- type 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func (Storage) CreateAssociation ¶
func (Storage) CreateCard ¶
upsert to logs NewCards++
func (Storage) DeleteCard ¶
func (Storage) GetAssociations ¶
func (storage Storage) GetAssociations(ctx context.Context, cardIndex protomodels.CardIndex) (protomodels.RelatedCards, error)
func (Storage) ListCardIndices ¶
func (Storage) ListCards ¶
func (storage Storage) ListCards(ctx context.Context, req storage.ListCardsRequest) ([]protomodels.Card, error)
func (Storage) ReviewCard ¶
upsert to logs ReviewedCards++ update card review date
func (Storage) UpdateCard ¶
zero values will NOT been updated
Click to show internal directories.
Click to hide internal directories.