grpcplugin

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFromGRPCConn

func NewFromGRPCConn(l L.L, id apiplugin.PluginID, conn *grpc.ClientConn) (plugin.Plugin, error)

func NewFromHostPort

func NewFromHostPort(l L.L, id apiplugin.PluginID, hostPort string) (plugin.Plugin, error)

Types

type GRPCPlugin

type GRPCPlugin struct {
	L      L.Nullable
	ID     apiplugin.PluginID
	Client pb.PluginsProviderClient
}

func (*GRPCPlugin) Call

func (p *GRPCPlugin) Call(ctx context.Context, v *apivalues.Value, args []*apivalues.Value, kwargs map[string]*apivalues.Value) (*apivalues.Value, error)

func (*GRPCPlugin) Describe

func (p *GRPCPlugin) Describe(ctx context.Context) (*apiplugin.PluginDesc, error)

func (*GRPCPlugin) Get

func (p *GRPCPlugin) Get(ctx context.Context, name string) (*apivalues.Value, error)

func (*GRPCPlugin) GetAll

func (p *GRPCPlugin) GetAll(ctx context.Context) (map[string]*apivalues.Value, error)

Jump to

Keyboard shortcuts

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