repository

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoMatch = errors.New("no match found")

Functions

This section is empty.

Types

type CriteriaRepository

type CriteriaRepository[K any] struct {
	Collection *mongo.Collection
	Converter  specification.Converter[mongoSpecification.Criteria]
}

func (*CriteriaRepository[K]) Match

func (r *CriteriaRepository[K]) Match(ctx context.Context, c specification.Criteria) ([]K, error)

func (*CriteriaRepository[K]) MatchOne

func (r *CriteriaRepository[K]) MatchOne(ctx context.Context, c specification.Criteria) (k K, err error)

Jump to

Keyboard shortcuts

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