plugins

package
v0.0.0-...-ebda00a Latest Latest
Warning

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

Go to latest
Published: May 20, 2016 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PluginFactory

type PluginFactory interface {
	Name() string
	New(json.RawMessage) (interface{}, error)
}

type PluginStore

type PluginStore struct {
	// contains filtered or unexported fields
}
var DefaultPluginStore *PluginStore = NewPluginStore()

func NewPluginStore

func NewPluginStore() *PluginStore

func (*PluginStore) AddPlugin

func (self *PluginStore) AddPlugin(plugin PluginFactory) error

func (*PluginStore) Create

func (self *PluginStore) Create(pluginName string, pluginConfig json.RawMessage) (interface{}, error)

func (*PluginStore) String

func (self *PluginStore) String() string

Jump to

Keyboard shortcuts

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