Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter interface { // Evaluate can be used to evaluate URL, headers and body content in one call Evaluate(span sdk.Span) result.FilterResult }
Filter evaluates whether request should be blocked, `true` blocks the request and `false` continues it.
type MultiFilter ¶
type MultiFilter struct {
// contains filtered or unexported fields
}
MultiFilter encapsulates multiple filters
func NewMultiFilter ¶
func NewMultiFilter(filter ...Filter) *MultiFilter
NewMultiFilter creates a new MultiFilter
func (*MultiFilter) Evaluate ¶ added in v0.7.0
func (m *MultiFilter) Evaluate(span sdk.Span) result.FilterResult
Evaluate runs body evaluators for each filter until one returns true
type NoopFilter ¶
type NoopFilter struct{}
NoopFilter is a filter that always evaluates to false
func (NoopFilter) Evaluate ¶ added in v0.7.0
func (NoopFilter) Evaluate(span sdk.Span) result.FilterResult
Evaluate that always returns false
Click to show internal directories.
Click to hide internal directories.