Documentation
¶
Index ¶
- type GRPCServer
- func (m *GRPCServer) GetManifest(ctx context.Context, req *proto_common.Empty) (*proto.GetManifestResponse, error)
- func (m *GRPCServer) GetStatus(ctx context.Context, req *proto_common.Empty) (*proto.GetStatusResponse, error)
- func (m *GRPCServer) OnStage(ctx context.Context, req *proto.OnStageRequest) (*proto_common.Empty, error)
- type Plugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GRPCServer ¶
type GRPCServer struct {
Impl shared.Hook // Hook functions to be called from runtime (module developers must implement this!)
// contains filtered or unexported fields
}
`module/server.go` implements the gRPC server for receiving from the runtime.
This part works on the module-side and is the gRPC server implementation for the runtime.
func (*GRPCServer) GetManifest ¶
func (m *GRPCServer) GetManifest(ctx context.Context, req *proto_common.Empty) (*proto.GetManifestResponse, error)
func (*GRPCServer) GetStatus ¶
func (m *GRPCServer) GetStatus(ctx context.Context, req *proto_common.Empty) (*proto.GetStatusResponse, error)
func (*GRPCServer) OnStage ¶
func (m *GRPCServer) OnStage(ctx context.Context, req *proto.OnStageRequest) (*proto_common.Empty, error)
type Plugin ¶
type Plugin struct {
plugin.NetRPCUnsupportedPlugin
Impl shared.Hook
}
FlexModule uses hashicorp/go-plugin: So we need to declare a separate Plugin for the runtime and module.
`module/server.go` implements the gRPC server for receiving from the runtime.
`module/client.go` implements the gRPC client for making calls to the runtime.
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.