plugins

package
v4.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Plugins              = make(map[string]*Plugin)
	PluginsWithScheduler = make(map[string]*PluginScheduler)
)

Functions

func AddNewPlugins

func AddNewPlugins(newPlugins map[string]*Plugin)

func ClearAllPlugins

func ClearAllPlugins()

func DelNoUsePlugins

func DelNoUsePlugins(newPlugins map[string]*Plugin)

func Detect

func Detect()

func ListPlugins

func ListPlugins() map[string]*Plugin

key: 60_ntp.py

func ListPluginsFromLocal

func ListPluginsFromLocal() map[string]*Plugin

func ListPluginsFromMonapi

func ListPluginsFromMonapi() map[string]*Plugin

func PluginRun

func PluginRun(plugin *Plugin)

Types

type Plugin

type Plugin struct {
	FilePath string
	Params   string
	Env      string
	Stdin    string
	MTime    int64
	Cycle    int
}

type PluginScheduler

type PluginScheduler struct {
	Ticker *time.Ticker
	Plugin *Plugin
	Quit   chan struct{}
}

func NewPluginScheduler

func NewPluginScheduler(p *Plugin) *PluginScheduler

func (*PluginScheduler) Schedule

func (p *PluginScheduler) Schedule()

func (*PluginScheduler) Stop

func (p *PluginScheduler) Stop()

Jump to

Keyboard shortcuts

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