grpcplugin

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PluginClient

type PluginClient interface {
	proto.PluginClient
}

PluginClient is the client API for the Resource service.

type PluginGRPC

type PluginGRPC struct {
	// GRPCPlugin must still implement the Plugin interface
	plugin.NetRPCUnsupportedPlugin
	plugin.GRPCPlugin
	// Concrete implementation, written in Go. This is only used for plugins
	// that are written in Go.
	Impl PluginServer
}

This is the implementation of plugin.GRPCPlugin so we can serve/consume this.

func (*PluginGRPC) GRPCClient

func (p *PluginGRPC) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)

func (*PluginGRPC) GRPCServer

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

type PluginServer

type PluginServer interface {
	proto.PluginServer
}

PluginServer is the server API for the Resource service.

Jump to

Keyboard shortcuts

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