Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoMatch = PrioritiesCnt
Functions ¶
func SetTagMatchDetails ¶
func SetTagMatchDetails( tag TagPather, pathComponentIdx, matchedNameIdx int, prio Priority, det *MatchDetails, )
Types ¶
type ByPathItemIdxAndPrio ¶
type ByPathItemIdxAndPrio []TagPather
func (ByPathItemIdxAndPrio) Len ¶
func (a ByPathItemIdxAndPrio) Len() int
func (ByPathItemIdxAndPrio) Less ¶
func (a ByPathItemIdxAndPrio) Less(i, j int) bool
func (ByPathItemIdxAndPrio) Swap ¶
func (a ByPathItemIdxAndPrio) Swap(i, j int)
type MatchDetails ¶
type MatchDetails struct {
}
type MatcherExact ¶
type MatcherExact struct {
}
type MatcherType ¶
type MatcherType int
const ( MatcherTypeExact MatcherType = iota MatcherTypeFuzzy MatcherTypeExactThenFuzzy )
type TagMatcher ¶
type TagMatcher struct {
DefMatcherType MatcherType
}
func NewTagMatcher ¶
func NewTagMatcher() *TagMatcher
type TagPather ¶
type TagPather interface {
Path() string
PathItems() [][]string
SetMatchDetails(
pathComponentIdx, matchedNameIdx int, prio Priority,
det *MatchDetails,
)
SetMaxPathItemIdx(pathComponentIdx int, prio Priority)
GetMaxPathItemIdx() int
GetMaxPathItemIdxRev() int
GetPrio() Priority
}
TODO: find a better name
func CombineResults ¶
Click to show internal directories.
Click to hide internal directories.