plugin

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 9 Imported by: ? modules, 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

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