Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyList [][]byte = [][]byte{}
Functions ¶
func GlobToRegexp ¶
func HasWildcard ¶
Types ¶
type BaseFinder ¶
type BaseFinder struct {
// contains filtered or unexported fields
}
func (*BaseFinder) Abs ¶
func (b *BaseFinder) Abs(v []byte) []byte
func (*BaseFinder) Execute ¶
func (b *BaseFinder) Execute(query string) (err error)
func (*BaseFinder) List ¶
func (b *BaseFinder) List() [][]byte
func (*BaseFinder) Series ¶
func (b *BaseFinder) Series() [][]byte
type Finder ¶
type MockFinder ¶
type MockFinder struct {
// contains filtered or unexported fields
}
func NewMockFinder ¶
func NewMockFinder(result [][]byte) *MockFinder
func (*MockFinder) Abs ¶
func (m *MockFinder) Abs(v []byte) []byte
func (*MockFinder) Execute ¶
func (m *MockFinder) Execute(query string) error
func (*MockFinder) List ¶
func (m *MockFinder) List() [][]byte
func (*MockFinder) Series ¶
func (m *MockFinder) Series() [][]byte
type PrefixFinder ¶
type PrefixFinder struct {
// contains filtered or unexported fields
}
func WrapPrefix ¶
func WrapPrefix(f Finder, prefix string) *PrefixFinder
func (*PrefixFinder) Abs ¶
func (p *PrefixFinder) Abs(value []byte) []byte
func (*PrefixFinder) Execute ¶
func (p *PrefixFinder) Execute(query string) error
func (*PrefixFinder) List ¶
func (p *PrefixFinder) List() [][]byte
type PrefixMatchResult ¶
type PrefixMatchResult int
const ( PrefixNotMatched PrefixMatchResult = iota PrefixMatched PrefixPartialMathed )
Click to show internal directories.
Click to hide internal directories.