plugin

package
v0.174.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: Apache-2.0 Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const PluginName = "fanOut"

Currently we only support one plugin type

Variables

View Source
var HandshakeConfig = plugin.HandshakeConfig{
	MagicCookieKey:   "CHAINLOOP_PLUGIN",
	MagicCookieValue: "e575e823-335c-4e3b-8bfd-acceef0ae074",
}

Functions

func Serve

func Serve(opts *ServeOpts) error

Serve is a helper function used to serve a backend plugin. This should be ran on the plugin's main process.

Types

type GRPCFanOutPlugin

type GRPCFanOutPlugin struct {

	// Embedding this will disable the netRPC protocol
	plugin.NetRPCUnsupportedPlugin
	// contains filtered or unexported fields
}

GRPCFanOutPlugin is the plugin.Plugin implementation that only supports GRPC transport

func (*GRPCFanOutPlugin) GRPCClient

func (b *GRPCFanOutPlugin) GRPCClient(_ context.Context, _ *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)

func (GRPCFanOutPlugin) GRPCServer

func (b GRPCFanOutPlugin) GRPCServer(_ *plugin.GRPCBroker, s *grpc.Server) error

type ServeOpts

type ServeOpts struct {
	Factory sdk.FanOutFactory
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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