plugin

package
v2.19.6 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PluginMap = map[string]plugin.Plugin{}

PluginMap is a map containing all the plugins

Functions

func Register

func Register(name string, plugin plugin.Plugin)

Register registers the plugin

Types

type Plugin

type Plugin interface {
	Configure(m map[string]interface{}) error
}

Plugin is the interface used to configure plugins

type RevaPlugin

type RevaPlugin struct {
	Plugin interface{}
	Client *plugin.Client
}

RevaPlugin represents the runtime plugin

func Load

func Load(pluginType, driver string) (*RevaPlugin, error)

Load loads the plugin using the hashicorp go-plugin system

func (*RevaPlugin) Kill

func (plug *RevaPlugin) Kill()

Kill kills the plugin process

Jump to

Keyboard shortcuts

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