Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 683 Bytes

go-rpc-plugin.md

File metadata and controls

24 lines (16 loc) · 683 Bytes

Golang plugin over net/rpc

Using golang plugin over net/rpc is basically the same as golang plugin over gRPC.

The only difference is that if you want to run the plugin in net/rpc mode, you need to set an environment variable HRP_PLUGIN_TYPE=rpc.

Set environment variable in shell:

$ export HRP_PLUGIN_TYPE=rpc

Or in your golang code:

os.Setenv("HRP_PLUGIN_TYPE", "rpc")

The complete log example can be found in the file hashicorp_rpc_go.log.