client

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client represents a plugin client

func NewClient

func NewClient(ctx context.Context, pluginName, pluginPath string, config map[string]*structpb.Value) (*Client, error)

NewClient creates a new plugin client

func (*Client) Close

func (c *Client) Close() error

Close closes the plugin client and cleans up resources

func (*Client) Plugin

func (c *Client) Plugin() pb.PluginClient

type GRPCPlugin

type GRPCPlugin struct {
	plugin.GRPCPlugin
}

GRPCPlugin is the plugin implementation for go-plugin

func (*GRPCPlugin) Client

func (p *GRPCPlugin) Client(_ *plugin.MuxBroker, _ *rpc.Client) (any, error)

Client is required by the go-plugin interface

func (*GRPCPlugin) GRPCClient

func (p *GRPCPlugin) GRPCClient(_ context.Context, _ *plugin.GRPCBroker, c *grpc.ClientConn) (any, error)

GRPCClient is required by the go-plugin interface

func (*GRPCPlugin) GRPCServer

func (p *GRPCPlugin) GRPCServer(_ *plugin.GRPCBroker, s *grpc.Server) error

GRPCServer is required by the go-plugin interface

func (*GRPCPlugin) Server

func (p *GRPCPlugin) Server(_ *plugin.MuxBroker) (any, error)

Server is required by the go-plugin interface

Jump to

Keyboard shortcuts

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