Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ExternFunctionMetadata = []expr.FunctionMetadata{ { Name: "ip", ReturnType: config.IP_ADDRESS, ArgumentTypes: []config.ValueType{config.STRING}, }, { Name: "timestamp", ReturnType: config.TIMESTAMP, ArgumentTypes: []config.ValueType{config.STRING}, }, { Name: "match", ReturnType: config.BOOL, ArgumentTypes: []config.ValueType{config.STRING, config.STRING}, }, { Name: "matches", Instance: true, TargetType: config.STRING, ReturnType: config.BOOL, ArgumentTypes: []config.ValueType{config.STRING}, }, { Name: "startsWith", Instance: true, TargetType: config.STRING, ReturnType: config.BOOL, ArgumentTypes: []config.ValueType{config.STRING}, }, { Name: "endsWith", Instance: true, TargetType: config.STRING, ReturnType: config.BOOL, ArgumentTypes: []config.ValueType{config.STRING}, }, }
ExternFunctionMetadata is the type-metadata about externs. It gets used during compilations.
View Source
var Externs = map[string]interpreter.Extern{ "ip": interpreter.ExternFromFn("ip", externIP), "ip_equal": interpreter.ExternFromFn("ip_equal", externIPEqual), "timestamp": interpreter.ExternFromFn("timestamp", externTimestamp), "timestamp_equal": interpreter.ExternFromFn("timestamp_equal", externTimestampEqual), "match": interpreter.ExternFromFn("match", externMatch), "matches": interpreter.ExternFromFn("matches", externMatches), "startsWith": interpreter.ExternFromFn("startsWith", externStartsWith), "endsWith": interpreter.ExternFromFn("endsWith", externEndsWith), }
Externs contains the list of standard external functions used during evaluation.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.