Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrElementNotFound = errors.New("Key could not be found in the event/metadata")
ErrElementNotFound will be returned if the key is not found in the event
Functions ¶
func NewDataStore ¶
Types ¶
type ConditionParser ¶
type ConditionParser struct { //Prints debug output on std Debug bool }
ConditionParser parses a given string which should contain a go like condition, conditions can reference on a given JSON struct
func (ConditionParser) ParseString ¶
func (p ConditionParser) ParseString(condition string, jsonData interface{}, eventMetadata map[string]interface{}) (bool, error)
ParseString parses the string and JSON object, if there is an error the result is irrelevant
func (ConditionParser) ParseStringChannel ¶
func (p ConditionParser) ParseStringChannel(condition string, jsonData interface{}, eventMetadata map[string]interface{}, output chan bool, errors chan error)
ParseStringChannel parses the string and communicates through channels, if there is an error the result is irrelevant
Click to show internal directories.
Click to hide internal directories.