pluginsdk

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "emerald"

Variables

View Source
var Handshake = plugin.HandshakeConfig{
	ProtocolVersion:  1,
	MagicCookieKey:   "EMERALD_PLUGIN",
	MagicCookieValue: "emerald-plugin",
}

Functions

func NewClientConfig

func NewClientConfig(cmd *exec.Cmd) *plugin.ClientConfig

func PluginMap

func PluginMap(impl pluginapi.Plugin) plugin.PluginSet

func Serve

func Serve(impl pluginapi.Plugin)

Types

type Plugin

type Plugin struct {
	plugin.NetRPCUnsupportedPlugin
	Impl pluginapi.Plugin
}

func (*Plugin) GRPCClient

func (p *Plugin) GRPCClient(ctx context.Context, _ *plugin.GRPCBroker, conn *grpc.ClientConn) (interface{}, error)

func (*Plugin) GRPCServer

func (p *Plugin) GRPCServer(_ *plugin.GRPCBroker, server *grpc.Server) error

Jump to

Keyboard shortcuts

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