module

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 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 (*GRPCServer) GetStatus

func (*GRPCServer) OnStage

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

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