fix: remove hrp internal dependency for plugin

This commit is contained in:
debugtalk
2022-03-10 16:51:42 +08:00
parent 0ede8d7989
commit 072d5d8fb0
4 changed files with 27 additions and 4 deletions

View File

@@ -8,10 +8,13 @@ import (
"github.com/rs/zerolog/log"
"google.golang.org/grpc"
"github.com/httprunner/hrp/internal/json"
"github.com/httprunner/hrp/plugin/go/proto"
jsoniter "github.com/json-iterator/go"
)
// replace with third-party json library to improve performance
var json = jsoniter.ConfigCompatibleWithStandardLibrary
// functionGRPCClient runs on the host side, it implements FuncCaller interface
type functionGRPCClient struct {
client proto.DebugTalkClient