feature

package
v0.0.0-...-67e434f Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureFinder

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

func NewFeatureFinder

func NewFeatureFinder(features repository.Features) *FeatureFinder

func (*FeatureFinder) Find

func (f *FeatureFinder) Find(
	ctx context.Context,
	rect model.Rectangle,
	onFeatureFound OnFeatureFound,
) error

type Finder

type Finder interface {
	// Find looks for features within rect, then calls onFeatureFound for each point found.
	// If rect points to an exact point, it looks for the exact match.
	Find(
		ctx context.Context,
		rect model.Rectangle,
		onFeatureFound OnFeatureFound,
	) error
}

Finder is an interface for finding a feature.

type OnFeatureFound

type OnFeatureFound func(feature *model.Feature) error

Jump to

Keyboard shortcuts

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