memory

package
v0.0.0-...-6005348 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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) Exist

func (r *InMemCardRepository) Exist(_ context.Context, id cards.ID) (bool, error)

func (*InMemCardRepository) Find

func (*InMemCardRepository) Prints

func (r *InMemCardRepository) Prints(
	ctx context.Context, name string, collector cards.Collector, page cards.Page) (cards.CardPrints, 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 NewDetectRepository(data []cards.Card, cfg postgres.Images) (*InMemDetectRepository, error)

func (*InMemDetectRepository) Top5MatchesByHash

func (r *InMemDetectRepository) Top5MatchesByHash(ctx context.Context, hashes ...cards.Hash) (cards.Scores, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL