plugins

package
v0.0.0-...-c8afd98 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Handshake = plugin.HandshakeConfig{
	ProtocolVersion:  plugin.CoreProtocolVersion,
	MagicCookieKey:   "OPNI_MONITORING_MAGIC_COOKIE",
	MagicCookieValue: "opni-monitoring",
}
View Source
var Scheme = meta.NewScheme()

Functions

func ClientConfig

func ClientConfig(md meta.PluginMeta, scheme meta.Scheme) *plugin.ClientConfig

func Serve

func Serve(scheme meta.Scheme)

func ServeConfig

func ServeConfig(scheme meta.Scheme) *plugin.ServeConfig

Types

type ActivePlugin

type ActivePlugin struct {
	Client *grpc.ClientConn
	Raw    interface{}
}

type PluginLoader

type PluginLoader struct {
	ActivePlugins map[string][]ActivePlugin
}

func NewPluginLoader

func NewPluginLoader() *PluginLoader

func (*PluginLoader) DispenseAll

func (pl *PluginLoader) DispenseAll(id string) []ActivePlugin

func (*PluginLoader) Load

func (pl *PluginLoader) Load(cc *plugin.ClientConfig)

Directories

Path Synopsis
apis

Jump to

Keyboard shortcuts

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