plugin

package
v0.0.0-...-519dc3d Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedPlugins = map[string]Plugin{}

Functions

func GetRegisteredPluginNames

func GetRegisteredPluginNames() []string

func PluginRegistered

func PluginRegistered(pluginName string) bool

func RegisterPlugin

func RegisterPlugin(pluginName string, plugin Plugin)

func RegisterPluginIfNotExists

func RegisterPluginIfNotExists(pluginName string, plugin Plugin)

Types

type Plugin

type Plugin interface {
	CreateEngine(cfg appconfig.Engine, logger *zap.Logger) (common.JobEngine, error)
}

Jump to

Keyboard shortcuts

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