plugins

package
v0.0.0-...-7cad2ef Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SDKVersion = "1.0.0"

	PluginConstSDKVersion  = "SDKVersion"
	PluginConstName        = "Name"
	PluginConstVersion     = "Version"
	PluginConstConstructor = "New"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	Plugins  map[string]Plugin
	Versions map[string]string
}

func New

func New() *Manager

func (*Manager) Load

func (m *Manager) Load(paths ...string) error

type Plugin

type Plugin interface {
	Name() string
	Functions() map[string]interface{}
	Version() string
}

Jump to

Keyboard shortcuts

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