Documentation
¶
Index ¶
- func IsDataUnmarshalError(err error) bool
- func IsDispatcherNotFound(err error) bool
- func IsMatcherNotFound(err error) bool
- func IsNotExistsVal(val interface{}) bool
- func IsTransformerNotFound(err error) bool
- type Dispatcher
- type EventExt
- type Executor
- type Matcher
- type NewDispatcherFunc
- type NewExecutorFunc
- type NewMatcherFunc
- type NewTransformerFunc
- type NotExistsValT
- type Option
- type Rule
- type Rules
- type RulesManager
- type Target
- type TargetParam
- type Transformer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDataUnmarshalError ¶
func IsDispatcherNotFound ¶
func IsMatcherNotFound ¶
func IsNotExistsVal ¶
func IsNotExistsVal(val interface{}) bool
IsNotExistsVal determine if a value is a non-existent value, i.e., a value generated by NewNotExistsVal
func IsTransformerNotFound ¶
Types ¶
type Dispatcher ¶
type EventExt ¶
func CloneEventExt ¶
func NewEventExt ¶
NewEventExt when the ID of an event is zero, it is reassigned a unique ID under a source
func NewEventExtFromBytes ¶
func (*EventExt) GetFieldByPath ¶
GetFieldByPath get internal field value by path. e.g.: ["data", "source"] -> e.Event.Data.source. if the path does not exist, the function will return the value generated by NewNotExistsVal to distinguish nil. if the event data is parsed incorrectly, the function will return a *dataUnmarshalError error, which can be asserted using the function IsDataUnmarshalError. all numbers use float64. to prevent precision overflow, id returns a string type.
func (*EventExt) ValidateEventData ¶
func (e *EventExt) ValidateEventData(validator *gojsonschema.Schema) error
ValidateEventData checking data field by schema definition
type NewDispatcherFunc ¶
type NewExecutorFunc ¶
func NewNewExecutorFunc ¶
func NewNewExecutorFunc( nmf NewMatcherFunc, ntf NewTransformerFunc, ndf NewDispatcherFunc, ) NewExecutorFunc
type NewMatcherFunc ¶
type NewTransformerFunc ¶
type NotExistsValT ¶
type NotExistsValT struct{}
func NewNotExistsVal ¶
func NewNotExistsVal() *NotExistsValT
NewNotExistsVal generate a value to represent a value that does not exist
type Option ¶
type Option func(*options)
Option is a functional option for configuring the executor.
func WithExecuteDuration ¶
func WithExecuteDuration(c metric.Float64Histogram) Option
WithExecuteDuration with executed duration histogram.
func WithExecuteTotal ¶
func WithExecuteTotal(c metric.Int64Counter) Option
WithExecuteTotal with executed total counter.
func WithTransformParallelism ¶
WithTransformParallelism sets the parallelism for transforming events.
type RulesManager ¶
type Target ¶
type Target struct {
ID uint64
Type string
Params []*TargetParam
RetryStrategy v1.RetryStrategy
}