Documentation ¶
Index ¶
Constants ¶
View Source
const ( DOMAIN_GENERAL = "general" FUNC_TYPE_GENERAL = "general" FUNC_RuleFuncsGeneral = "GeneralFunc" FUNC_RuleFuncs = "RuleFunc" FUNC_DbRuleFuncs = "DbFunc" FUNC_EsRuleFuncs = "EsFunc" FUNC_PARAM_EMPTY = "{}" FUNC_HELPAPI = "helpapi" FUNC_AllAddr = "alladdr" FUNC_AllService = "allservice" FUNC_RULEDATA = "ruledata" FUNC_RULEFILE = "rulefile" FUNC_POSTRULE = "engine" FUNC_POSTRULE_BATCH = "batch" FUNC_LISTFUNCS = "func_listfuncs" FUNC_LISTFUNC = "func_listfunc" FUNC_SNOWFLAKE = "func_snowflake" FUNC_HELLOWORLD = "HelloWorld" FUNC_DEMO = "func_demo" FUNC_CONFIG = "func_config" FUNC_ESQUERY = "func_esquery" FUNC_ESMAPPING = "func_esmapping" FUNC_DBQUERY = "func_dbquery" FUNC_DBMETA = "func_dbmeta" PATH_HelloWorld = "/hello" PATH_HelpApi = "/helpapi" PATH_AllAddr = "/alladdr" PATH_AllService = "/allservice" PATH_Rule = "/engine" PATH_Batch = "/batch" PATH_LISTFUNCS = "/listfuncs" PATH_LISTFUNC = "/listfunc" )
@Title 文件名称: ichub_consts.go @Description 描述: GOWATER规则引擎常量
@Author 作者: leijianming@163.com 时间(2024-02-18 22:38:21) @Update 作者: leijianming@163.com 时间(2024-02-18 22:38:21)
View Source
const ( Suffix_rule = "_rule.txt" Suffix_param = "_param.json" Suffix_result = "_result.json" // testfile //RULE_LOG_FILE = "/opt/logs/sys_rule.log" TEST_RULE_FILE = "rule001_file.txt" TEST_PARAM_FILE = "rule001_param.json" TEST_RESULT_FILE = "rule001_result.json" TEST_RULE_FILE1 = TEST_RULE_FILE //"rule001_file.txt" TEST_PARAM_FILE1 = TEST_PARAM_FILE //"rule001_param.json" TEST_RESULT_FILE1 = TEST_RESULT_FILE // "rule001_result.json" TEST_RULE_FILE2 = "rule002_file.txt" TEST_PARAM_FILE2 = "rule002_param.json" TEST_RESULT_FILE2 = "rule002_result.json" TEST_RULE_FILE3 = "rule003_file.txt" TEST_PARAM_FILE3 = "rule003_param.json" TEST_RESULT_FILE3 = "rule003_result.json" )
@Title 文件名称: rule_const.go @Description 描述: GOWATER规则引擎的常量文件
@Author 作者: leijianming@163.com 时间(2024-02-18 22:38:21) @Update 作者: leijianming@163.com 时间(2024-02-18 22:38:21)
View Source
const ( KeyCtxt = "Ctxt" KeyIn = "In" KeyOut = "Out" KeyReturnValue = "ReturnValue" KeyReturnMsg = "ReturnMsg" // func key FuncGetParam = "GetParam" FuncSetParam = "SetParam" FuncGetReturnValue = "GetReturnValue" FuncSetReturnValue = "SetReturnValue" FuncGetReturnMsg = "GetReturnMsg" FuncSetReturnMsg = "SetReturnMsg" FuncSetReturn = "SetReturn" Func_PrintLn = "PrintLn" Func_PrintCtxt = "PrintCtxt" Func_PrintIn = "PrintIn" Func_PrintOut = "PrintOut" Func_PrintReturnValue = "PrintReturnValue" //self define FUNC_IchubLog = "IchubLog" FUNC_Golog = "Golog" FUNC_FromJson = "FromJson" FUNC_ToJson = "ToJson" FUNC_CheckType = "CheckType" )
View Source
const RuleExpression = `` /* 634-byte string literal not displayed */
Variables ¶
View Source
var IchubVars = map[string]string{ "KeyCtxt": KeyCtxt, "KeyIn": KeyIn, "KeyOut": KeyOut, "KeyReturnValue": KeyReturnValue, "KeyReturnMsg": KeyReturnMsg, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.