Versions in this module Expand all Collapse all v0 v0.1.3 Nov 3, 2017 Changes in this version + func FactoryPluginType(factoryType reflect.Type) (plugin reflect.Type, ok bool) + func Lookup(pluginType reflect.Type) bool + func LookupFactory(factoryType reflect.Type) bool + func New(pluginType reflect.Type, name string, ...) (plugin interface{}, err error) + func NewFactory(factoryType reflect.Type, name string, ...) (factory interface{}, err error) + func PtrType(ptr interface{}) reflect.Type + func Register(pluginType reflect.Type, name string, newPluginImpl interface{}, ...) + type Registry struct + func DefaultRegistry() *Registry + func NewRegistry() *Registry + func (r *Registry) Lookup(pluginType reflect.Type) bool + func (r *Registry) LookupFactory(factoryType reflect.Type) bool + func (r *Registry) New(pluginType reflect.Type, name string, ...) (plugin interface{}, err error) + func (r *Registry) NewFactory(factoryType reflect.Type, name string, ...) (factory interface{}, err error) + func (r *Registry) Register(pluginType reflect.Type, name string, constructor interface{}, ...)