feat: support hashicorp plugin in gPRC mode

This commit is contained in:
debugtalk
2022-03-04 16:13:38 +08:00
parent 4d64f2d7b6
commit f312535908
9 changed files with 677 additions and 21 deletions

View File

@@ -3,6 +3,8 @@ package pluginInternal
import "github.com/hashicorp/go-plugin"
const PluginName = "debugtalk"
const RPCPluginName = PluginName + "_rpc"
const GRPCPluginName = PluginName + "_grpc"
// handshakeConfigs are used to just do a basic handshake between
// a plugin and host. If the handshake fails, a user friendly error is shown.