plugin

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bundle

func Bundle(
	bundles ...map[string][]interface{},
) map[string][]interface{}

func LoadPlugins

func LoadPlugins(path string) error

func MakePlugin

func MakePlugin(key string, ifc interface{}) map[string][]interface{}

func MustRegisterLoader

func MustRegisterLoader(name string, l PluginLoader)

func RegisterLoader

func RegisterLoader(name string, l PluginLoader) error

Types

type Plugin

type Plugin struct {
	Path     string
	Module   string
	Name     string
	OpenTime time.Time
}

func List

func List() []Plugin

type PluginLoader

type PluginLoader func(p interface{}) (pluginName string, err error)

Jump to

Keyboard shortcuts

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