Documentation
¶
Index ¶
- func EvaluateConditions(msg hermod.Message, conditions []map[string]any) bool
- func EvaluateField(msg hermod.Message, field string) any
- func GetMsgValByPath(msg hermod.Message, path string) any
- func GetValByPath(data map[string]any, path string) any
- func ResolveTemplate(temp string, data map[string]any) string
- func SetValByPath(data map[string]any, path string, val any)
- func ToBool(val any) bool
- func ToFloat64(val any) (float64, bool)
- func ToInt64(val any) (int64, bool)
- func ToTime(val any) (time.Time, bool)
- type Evaluator
- type OutboxTransactionalSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EvaluateConditions ¶
func ResolveTemplate ¶
ResolveTemplate replaces every {{ ... }} token in temp with the value resolved from data (or env/expressions). It performs a single forward pass: resolved values are written to the output and never re-scanned. This keeps resolution bounded and prevents both template injection and the infinite loop that occurs when a resolved value itself contains a self-referential {{ ... }} token (e.g. data field "a" whose value is literally "{{a}}").
Types ¶
type Evaluator ¶
type Evaluator struct {
}
Evaluator manages expression evaluation.
func NewEvaluator ¶
func NewEvaluator() *Evaluator
func (*Evaluator) EvaluateAdvancedExpression ¶
type OutboxTransactionalSource ¶
func (*OutboxTransactionalSource) Begin ¶
func (s *OutboxTransactionalSource) Begin(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.