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 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)
Click to show internal directories.
Click to hide internal directories.