Documentation ¶
Index ¶
- type Selector
- type SelectorExpr
- func ConcatSelectorExpr(s ...SelectorExpr) SelectorExpr
- func ConditionalSelectorExpr(s SelectorExpr, cond *processors.Condition) SelectorExpr
- func ConstSelectorExpr(s string) SelectorExpr
- func EmptySelectorExpr() SelectorExpr
- func FmtSelectorExpr(fmt *fmtstr.EventFormatString, fallback string) SelectorExpr
- func LookupSelectorExpr(s SelectorExpr, table map[string]string, fallback string) SelectorExpr
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Selector ¶
type Selector struct {
// contains filtered or unexported fields
}
func BuildSelectorFromConfig ¶
func MakeSelector ¶
func MakeSelector(es ...SelectorExpr) Selector
type SelectorExpr ¶
type SelectorExpr interface {
// contains filtered or unexported methods
}
func ConcatSelectorExpr ¶
func ConcatSelectorExpr(s ...SelectorExpr) SelectorExpr
func ConditionalSelectorExpr ¶
func ConditionalSelectorExpr( s SelectorExpr, cond *processors.Condition, ) SelectorExpr
func ConstSelectorExpr ¶
func ConstSelectorExpr(s string) SelectorExpr
func EmptySelectorExpr ¶
func EmptySelectorExpr() SelectorExpr
func FmtSelectorExpr ¶
func FmtSelectorExpr(fmt *fmtstr.EventFormatString, fallback string) SelectorExpr
func LookupSelectorExpr ¶
func LookupSelectorExpr( s SelectorExpr, table map[string]string, fallback string, ) SelectorExpr
type Settings ¶
type Settings struct { // single selector key and default option keyword Key string // multi-selector key in config MultiKey string // if enabled a selector `key` in config will be generated, if `key` is present EnableSingleOnly bool // Fail building selector if `key` and `multiKey` are missing FailEmpty bool }
Click to show internal directories.
Click to hide internal directories.