registry

package
v0.0.0-...-31600e6 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustRegister

func MustRegister(name string, constructorFunc interface{})

func NewProcessor

func NewProcessor(name string, config map[string]interface{}) (processor.Processor, error)

Types

type Registry

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

func NewRegistry

func NewRegistry() *Registry

func (*Registry) NewProcessor

func (r *Registry) NewProcessor(name string, config map[string]interface{}) (processor.Processor, error)

func (*Registry) Register

func (r *Registry) Register(name string, constructorFunc interface{}) error

Jump to

Keyboard shortcuts

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