repositories

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileBasedMatchRepository

type FileBasedMatchRepository struct {
	// contains filtered or unexported fields
}

func NewFileBasedMatchRepository

func NewFileBasedMatchRepository() *FileBasedMatchRepository

func (*FileBasedMatchRepository) Clear

func (r *FileBasedMatchRepository) Clear() error

func (*FileBasedMatchRepository) NewIterator

func (r *FileBasedMatchRepository) NewIterator() *MatchIterator

NewIterator creates a new MatchIterator for the repository

func (*FileBasedMatchRepository) Store

func (r *FileBasedMatchRepository) Store(matches []processors.Match) error

type MatchIterator

type MatchIterator struct {
	// contains filtered or unexported fields
}

MatchIterator implements the Iterator pattern for Match instances

func (*MatchIterator) HasNext

func (it *MatchIterator) HasNext() bool

HasNext checks if there are more Match instances to iterate over

func (*MatchIterator) Next

func (it *MatchIterator) Next() (processors.Match, error)

Next retrieves the next Match instance

type MatchRepository

type MatchRepository interface {
	Store(matches []processors.Match) error
	Clear() error
	NewIterator() *MatchIterator
}

Jump to

Keyboard shortcuts

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