Documentation
¶
Index ¶
Constants ¶
View Source
const PluginServiceName = "plugin-service"
PluginServiceName is the name for types.PluginClient/[NewGRPCService].
Variables ¶
This section is empty.
Functions ¶
func ReportingPluginHandshakeConfig ¶
func ReportingPluginHandshakeConfig() plugin.HandshakeConfig
Types ¶
type GRPCService ¶
type GRPCService[T types.PluginProvider] struct { plugin.NetRPCUnsupportedPlugin loop.BrokerConfig PluginServer ProviderServer[T] // contains filtered or unexported fields }
GRPCService is the loopp interface for a plugin that can run an arbitrary product in the core node. By specifying `T`, server instances can request a specific provider type.
func (*GRPCService[T]) ClientConfig ¶
func (g *GRPCService[T]) ClientConfig() *plugin.ClientConfig
func (*GRPCService[T]) GRPCClient ¶
func (g *GRPCService[T]) GRPCClient(_ context.Context, broker *plugin.GRPCBroker, conn *grpc.ClientConn) (