Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GRPCClient ¶
type GRPCClient struct {
// contains filtered or unexported fields
}
`runtime/client.go` implements the gRPC client for making calls to the module.
This part works on the runtime-side and is the gRPC client implementation for the module.
func (*GRPCClient) GetManifest ¶
func (m *GRPCClient) GetManifest() (shared.Manifest, error)
func (*GRPCClient) OnStage ¶
func (m *GRPCClient) OnStage(stage string)
type Plugin ¶
type Plugin struct {
plugin.NetRPCUnsupportedPlugin
}
FlexModule uses hashicorp/go-plugin: So we need to declare a separate Plugin for the runtime and module.
`runtime/server.go` implements the gRPC server for receiving from the module.
`runtime/client.go` implements the gRPC client for making calls to the module.
func (*Plugin) GRPCClient ¶
func (p *Plugin) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)
func (*Plugin) GRPCServer ¶
Click to show internal directories.
Click to hide internal directories.