matcher

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxNMaxNamesNum is the largest number of names that can be processed
	// per request. If input contains more names, it will be truncated.
	MaxNamesNum = 10_000

	// JobsNum determines number of go-routines to run during matching.
	JobsNum = 16
)

Variables

This section is empty.

Functions

func NewMatcher

func NewMatcher(em exact.ExactMatcher, fm fuzzy.FuzzyMatcher) matcher

NewMatcher returns Matcher object. It takes interfaces to ExactMatcher and FuzzyMatcher.

Types

type Matcher

type Matcher interface {
	Init()
	MatchNames(names []string) []*mlib.Match
}

Jump to

Keyboard shortcuts

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