processors

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrProcessorTypeNotFound = errors.New("processor type not found")

Functions

This section is empty.

Types

type DefaultProcessorFactory

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

DefaultProcessorFactory is an implementation of ProcessorFactory.

func NewDefaultProcessorFactory

func NewDefaultProcessorFactory() *DefaultProcessorFactory

NewDefaultProcessorFactory creates a new DefaultProcessorFactory.

func (*DefaultProcessorFactory) GetProcessor

func (f *DefaultProcessorFactory) GetProcessor(typeName string) (definitions.Processor, error)

func (*DefaultProcessorFactory) RegisterProcessor

func (f *DefaultProcessorFactory) RegisterProcessor(processor definitions.Processor)

RegisterProcessor registers a processor type with the factory.

Jump to

Keyboard shortcuts

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