extpoints

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2016 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

generated by go-extpoints -- DO NOT EDIT

Index

Constants

This section is empty.

Variables

View Source
var PluginProviders = &pluginProviderExt{
	newExtensionPoint(new(PluginProvider)),
}

Functions

func NewPluginManager

func NewPluginManager(pluginsToLoad []string, options PluginOptions) (plugins.Plugin, error)

NewPluginManager loads the list of plugins it is given and returns a single Plugin implementation that wraps all of the plugins.

func RegisterExtension

func RegisterExtension(extension interface{}, name string) []string

func UnregisterExtension

func UnregisterExtension(name string) []string

Types

type PluginOptions

type PluginOptions struct {
	// contains filtered or unexported fields
}

PluginOptions is a wrapper for the arguments/options given when instantiating a Plugin using PluginProvider.

We wrap all arguments so that we can add additional properties without breaking source compatibility with older plugins.

type PluginProvider

type PluginProvider func(options PluginOptions) (plugins.Plugin, error)

The PluginProvider interface must be implemented and registered by anyone implementing a Plugin.

If an implementor can determine that a plugin isn't available at compile-time it is preferred not to register the plugin.

Jump to

Keyboard shortcuts

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