Documentation ¶
Overview ¶
Package scope contains the block scope implementation for the event condition language ECAL.
Index ¶
- Constants
- func ConvertECALToJSONObject(v interface{}) interface{}
- func ConvertJSONToECALObject(v interface{}) interface{}
- func EvalToString(v interface{}) string
- func NameFromASTNode(node *parser.ASTNode) string
- func NewScope(name string) parser.Scope
- func NewScopeWithParent(name string, parent parser.Scope) parser.Scope
- func SetParentOfScope(scope parser.Scope, parent parser.Scope)
- func ToObject(vs parser.Scope) map[interface{}]interface{}
- func ToScope(name string, o map[interface{}]interface{}) parser.Scope
Constants ¶
const ( GlobalScope = "GlobalScope" FuncPrefix = "func:" )
Default scope names
Variables ¶
This section is empty.
Functions ¶
func ConvertECALToJSONObject ¶ added in v1.3.0
func ConvertECALToJSONObject(v interface{}) interface{}
ConvertECALToJSONObject converts an ECAL container structure into an object which can be marshalled into a JSON string.
func ConvertJSONToECALObject ¶ added in v1.2.0
func ConvertJSONToECALObject(v interface{}) interface{}
ConvertJSONToECALObject converts a JSON container structure into an object which can be used by ECAL.
func EvalToString ¶
func EvalToString(v interface{}) string
EvalToString should be used if a value should be converted into a string.
func NameFromASTNode ¶
NameFromASTNode returns a scope name from a given ASTNode.
func NewScopeWithParent ¶
NewScopeWithParent creates a new variable scope with a parent. This can be used to create scope structures without children links.
func SetParentOfScope ¶
SetParentOfScope sets the parent of a given scope. This assumes that the given scope is a varsScope.
Types ¶
This section is empty.