Documentation
¶
Index ¶
- type InMemCardRepository
- func (r *InMemCardRepository) Collect(_ context.Context, item cards.Collectable, collector cards.Collector) error
- func (r *InMemCardRepository) Exist(_ context.Context, id cards.ID) (bool, error)
- func (r *InMemCardRepository) Find(ctx context.Context, f cards.Filter, page cards.Page) (cards.Cards, error)
- func (r *InMemCardRepository) Prints(ctx context.Context, name string, collector cards.Collector, page cards.Page) (cards.CardPrints, error)
- func (r *InMemCardRepository) Remove(_ context.Context, item cards.Collectable, collector cards.Collector) error
- type InMemDetectRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemCardRepository ¶
type InMemCardRepository struct {
// contains filtered or unexported fields
}
func NewCardRepository ¶
func NewCardRepository(data []cards.Card, collected map[string][]cards.Collectable) (*InMemCardRepository, error)
func NewCollectRepository ¶
func NewCollectRepository(data []cards.Card) (*InMemCardRepository, error)
func (*InMemCardRepository) Collect ¶
func (r *InMemCardRepository) Collect(_ context.Context, item cards.Collectable, collector cards.Collector) error
func (*InMemCardRepository) Remove ¶
func (r *InMemCardRepository) Remove(_ context.Context, item cards.Collectable, collector cards.Collector) error
type InMemDetectRepository ¶
type InMemDetectRepository struct {
// contains filtered or unexported fields
}
func NewDetectRepository ¶
func (*InMemDetectRepository) Top5MatchesByHash ¶
Click to show internal directories.
Click to hide internal directories.