runtime

package
v0.0.0-...-27d56bb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2026 License: MPL-2.0 Imports: 6 Imported by: 0

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) GetStatus

func (m *GRPCClient) GetStatus() (shared.Status, 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

func (p *Plugin) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL