Skip to main content

syntaxflow

函数名函数描述/介绍
syntaxflow.ExecRule
syntaxflow.QuerySyntaxFlowRules
syntaxflow.withContext
syntaxflow.withExecDebug
syntaxflow.withExecTaskID
syntaxflow.withProcess
syntaxflow.withSave

函数定义#

ExecRule#

详细描述#

定义#

ExecRule(r *schema.SyntaxFlowRule, prog *ssaapi.Program, opts ...ssaapi.QueryOption) (*ssaapi.SyntaxFlowResult, error)

参数#

参数名参数类型参数解释
r*schema.SyntaxFlowRule
prog*ssaapi.Program
opts...ssaapi.QueryOption

返回值#

返回值(顺序)返回值类型返回值解释
r1*ssaapi.SyntaxFlowResult
r2error

QuerySyntaxFlowRules#

详细描述#

定义#

QuerySyntaxFlowRules(name string, opts ...QueryRulesOption) chan *schema.SyntaxFlowRule

参数#

参数名参数类型参数解释
namestring
opts...QueryRulesOption

返回值#

返回值(顺序)返回值类型返回值解释
r1chan *schema.SyntaxFlowRule

withContext#

详细描述#

定义#

withContext(ctx context.Context) QueryOption

参数#

参数名参数类型参数解释
ctxcontext.Context

返回值#

返回值(顺序)返回值类型返回值解释
r1QueryOption

withExecDebug#

详细描述#

定义#

withExecDebug(b ...bool) QueryOption

参数#

参数名参数类型参数解释
b...bool

返回值#

返回值(顺序)返回值类型返回值解释
r1QueryOption

withExecTaskID#

详细描述#

定义#

withExecTaskID(taskID string) QueryOption

参数#

参数名参数类型参数解释
taskIDstring

返回值#

返回值(顺序)返回值类型返回值解释
r1QueryOption

withProcess#

详细描述#

定义#

withProcess(cb func(float64, string)) QueryOption

参数#

参数名参数类型参数解释
cbfunc(float64, string)

返回值#

返回值(顺序)返回值类型返回值解释
r1QueryOption

withSave#

详细描述#

定义#

withSave()