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 ¶
Click to show internal directories.
Click to hide internal directories.