Documentation ¶
Index ¶
- Variables
- func GlobToRegexp(g string) string
- func HasWildcard(target string) bool
- func Leaf(value []byte) ([]byte, bool)
- func Q(v string) string
- func ReverseBytes(target []byte) []byte
- func ReverseString(target string) string
- type BaseFinder
- type BlacklistFinder
- type Finder
- type MockFinder
- type PrefixFinder
- type PrefixMatchResult
- type ReverseFinder
- type TagFinder
- type TagQ
- type TagState
- type Where
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyList [][]byte = [][]byte{}
Functions ¶
func GlobToRegexp ¶
func HasWildcard ¶
func ReverseBytes ¶ added in v0.3.2
func ReverseString ¶ added in v0.3.2
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 BlacklistFinder ¶ added in v0.4.0
type BlacklistFinder struct {
// contains filtered or unexported fields
}
func WrapBlacklist ¶ added in v0.4.0
func WrapBlacklist(f Finder, blacklist []*regexp.Regexp) *BlacklistFinder
func (*BlacklistFinder) Abs ¶ added in v0.4.0
func (p *BlacklistFinder) Abs(value []byte) []byte
func (*BlacklistFinder) Execute ¶ added in v0.4.0
func (p *BlacklistFinder) Execute(query string) error
func (*BlacklistFinder) List ¶ added in v0.4.0
func (p *BlacklistFinder) List() [][]byte
func (*BlacklistFinder) Series ¶ added in v0.4.0
func (p *BlacklistFinder) Series() [][]byte
For Render
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 )
type ReverseFinder ¶ added in v0.3.2
type ReverseFinder struct {
// contains filtered or unexported fields
}
func WrapReverse ¶ added in v0.3.2
func (*ReverseFinder) Abs ¶ added in v0.3.2
func (r *ReverseFinder) Abs(v []byte) []byte
func (*ReverseFinder) Execute ¶ added in v0.3.2
func (r *ReverseFinder) Execute(query string) error
func (*ReverseFinder) List ¶ added in v0.3.2
func (r *ReverseFinder) List() [][]byte
func (*ReverseFinder) Series ¶ added in v0.3.2
func (r *ReverseFinder) Series() [][]byte
Click to show internal directories.
Click to hide internal directories.