Documentation
¶
Index ¶
Constants ¶
View Source
const ( EventArgPrefix = "$." EventDataArgPrefix = EventArgPrefix + "data" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node interface {
Type() NodeType
Name() string
Value(ctx *context.EventContext) (interface{}, bool)
}
type NodeType ¶
type NodeType int
const ( Constant NodeType = iota // Plain text. Define // A <var> variable, example "key":<var> DefineString // A <var> variable, example "key":"<var>" or "key":"other <var>" EventAttribute // A $.attributeName, example "key": $.id EventAttributeString // A $.attributeName, example "key": "$.id" or "key":"other $.id" EventData // A $.data.path, example "key": $.data.key EventDataString // A $.data.path, example "key": "$.data.key" or "key":"other $.data.key" )
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
func NewTemplate ¶
func NewTemplate() *Template
func (*Template) ContentType ¶
Click to show internal directories.
Click to hide internal directories.