Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatchExpression
deprecated
added in
v0.3.0
func MatchFilters ¶ added in v0.2.1
MatchFilters is a convenient calling MatchFilters on the defaultMatcher
Types ¶
type CachingMatcher ¶ added in v0.2.1
type CachingMatcher interface { Matcher // Clear clears the lookup cache Clear() }
CachingMatcher is a Matcher that cache messages field path lookup results
func NewMatcher ¶ added in v0.2.1
func NewMatcher() CachingMatcher
NewMatcher creates a CachingMatcher
type Matcher ¶ added in v0.2.1
type Matcher interface { // Match matches to proto.Message against the protofilters.FieldsFilterer // It returns an error if one of the field path or FieldFilter is invalid Match(m proto.Message, f filters.FieldFilterer) (bool, error) // MatchFilters matches to proto.Message against the protofilters.FieldFilter slice // It returns an error if one of the field path or FieldFilter is invalid MatchFilters(m proto.Message, fs ...*filters.FieldFilter) (bool, error) MatchExpression(msg proto.Message, expr *filters.Expression) (bool, error) }
Matcher provides a way to match proto.Message against protofilters.Filter
Click to show internal directories.
Click to hide internal directories.