Skip to main content

hook

函数名函数描述/介绍
hook.CallYakitPluginFunc
hook.LoadYakitPlugin
hook.LoadYakitPluginByName
hook.LoadYakitPluginContext
hook.NewManager
hook.NewMixPluginCaller
hook.NewMixPluginCallerWithFilter
hook.RemoveYakitPluginByName

函数定义#

CallYakitPluginFunc#

详细描述#

定义#

CallYakitPluginFunc(scriptName string, hookName string) (any, error)

参数#

参数名参数类型参数解释
scriptNamestring
hookNamestring

返回值#

返回值(顺序)返回值类型返回值解释
r1any
r2error

LoadYakitPlugin#

详细描述#

定义#

LoadYakitPlugin(mng *YakToCallerManager, scriptType string, hookNames ...string) error

参数#

参数名参数类型参数解释
mng*YakToCallerManager
scriptTypestring
hookNames...string

返回值#

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

LoadYakitPluginByName#

详细描述#

定义#

LoadYakitPluginByName(mng *YakToCallerManager, scriptName string, hookNames ...string) error

参数#

参数名参数类型参数解释
mng*YakToCallerManager
scriptNamestring
hookNames...string

返回值#

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

LoadYakitPluginContext#

详细描述#

定义#

LoadYakitPluginContext(mng *YakToCallerManager, ctx context.Context, scriptType string, hookNames ...string) error

参数#

参数名参数类型参数解释
mng*YakToCallerManager
ctxcontext.Context
scriptTypestring
hookNames...string

返回值#

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

NewManager#

详细描述#

定义#

NewManager() *YakToCallerManager

返回值#

返回值(顺序)返回值类型返回值解释
r1*YakToCallerManager

NewMixPluginCaller#

详细描述#

定义#

NewMixPluginCaller() (*MixPluginCaller, error)

返回值#

返回值(顺序)返回值类型返回值解释
r1*MixPluginCaller
r2error

NewMixPluginCallerWithFilter#

详细描述#

定义#

NewMixPluginCallerWithFilter(webFilter filter.Filterable) (*MixPluginCaller, error)

参数#

参数名参数类型参数解释
webFilterfilter.Filterable

返回值#

返回值(顺序)返回值类型返回值解释
r1*MixPluginCaller
r2error

RemoveYakitPluginByName#

详细描述#

定义#

RemoveYakitPluginByName(mng *YakToCallerManager, scriptNames ...string)

参数#

参数名参数类型参数解释
mng*YakToCallerManager
scriptNames...string