plugins

package
v0.0.0-...-8a2a081 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2016 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PluginsLock = new(sync.RWMutex)
	Plugins     = make([]*Plugin, 0)
)

Functions

func ForceResetPlugin

func ForceResetPlugin() error

func GetCurrentPluginVersion

func GetCurrentPluginVersion() (string, error)

func RunPlugins

func RunPlugins(dirs []string, metrics []model.PluginParam)

func SyncConfig

func SyncConfig(pluginVer string, pluginDirs []string, pluginMetrics []model.PluginParam)

func UpdatePlugin

func UpdatePlugin(ver string) error

Types

type Plugin

type Plugin struct {
	FilePath string
	Step     int
	Params   []model.PluginParam
	// contains filtered or unexported fields
}

func (*Plugin) Kill

func (this *Plugin) Kill()

func (*Plugin) Run

func (this *Plugin) Run()

func (*Plugin) RunOnce

func (this *Plugin) RunOnce()

Jump to

Keyboard shortcuts

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