mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-15 12:27:59 +08:00
refactor: plugin code structure
This commit is contained in:
@@ -9,7 +9,8 @@ import (
|
||||
"github.com/hashicorp/go-plugin"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
pluginInternal "github.com/httprunner/hrp/plugin/inner"
|
||||
pluginInternal "github.com/httprunner/hrp/plugin/go"
|
||||
pluginUtils "github.com/httprunner/hrp/plugin/utils"
|
||||
)
|
||||
|
||||
// functionsMap stores plugin functions
|
||||
@@ -37,7 +38,7 @@ func (p *functionPlugin) Call(funcName string, args ...interface{}) (interface{}
|
||||
return nil, fmt.Errorf("function %s not found", funcName)
|
||||
}
|
||||
|
||||
return pluginInternal.CallFunc(fn, args...)
|
||||
return pluginUtils.CallFunc(fn, args...)
|
||||
}
|
||||
|
||||
var functions = make(functionsMap)
|
||||
|
||||
Reference in New Issue
Block a user