modules

package
v0.0.0-...-5f394f6 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPipelinerConsumerModule

func RegisterPipelinerConsumerModule(module PipelinerConsumerModule) error

RegisterPipelinerConsumerModule registers a Pipeliner consumer module.

func RegisterPipelinerProcessorModule

func RegisterPipelinerProcessorModule(module PipelinerProcessorModule) error

RegisterPipelinerProcessorModule registers a Pipeliner processor module.

func RegisterPipelinerProducerModule

func RegisterPipelinerProducerModule(module PipelinerProducerModule) error

RegisterPipelinerProducerModule registers a Pipeliner producer module.

Types

type GenericConsumerModule

type GenericConsumerModule struct {
	*GenericPipelineModule
	// contains filtered or unexported fields
}

func NewGenericConsumerModule

func NewGenericConsumerModule(name, version, genericId, specificId string,
	consumerFunc func(<-chan *datatypes.PipelineItem,
		*sync.WaitGroup)) *GenericConsumerModule

func (*GenericConsumerModule) GetInputChannel

func (m *GenericConsumerModule) GetInputChannel() chan<- *datatypes.PipelineItem

func (*GenericConsumerModule) SetConsumerFunc

func (m *GenericConsumerModule) SetConsumerFunc(
	consumerFunc func(<-chan *datatypes.PipelineItem, *sync.WaitGroup)) error

func (*GenericConsumerModule) Start

func (m *GenericConsumerModule) Start(waitGroup *sync.WaitGroup) error

type GenericPipelineModule

type GenericPipelineModule struct {
	*base_modules.GenericModule
	// contains filtered or unexported fields
}

func NewGenericPipelineModule

func NewGenericPipelineModule(name, version, genericId, specificId,
	moduleType string) *GenericPipelineModule

func (*GenericPipelineModule) Log

func (m *GenericPipelineModule) Log(err error)

func (*GenericPipelineModule) SetLogChannel

func (m *GenericPipelineModule) SetLogChannel(
	logChannel chan<- *log.LogEntry)

func (*GenericPipelineModule) Stop

func (m *GenericPipelineModule) Stop()

type GenericProcessorModule

type GenericProcessorModule struct {
	*GenericPipelineModule
	// contains filtered or unexported fields
}

func NewGenericProcessorModule

func NewGenericProcessorModule(name, version, genericId, specificId string,
	processorFunc func(*datatypes.PipelineItem) bool) *GenericProcessorModule

func (*GenericProcessorModule) GetInputChannel

func (m *GenericProcessorModule) GetInputChannel() chan<- *datatypes.PipelineItem

func (*GenericProcessorModule) SetOutputChannel

func (m *GenericProcessorModule) SetOutputChannel(
	inputChannel chan<- *datatypes.PipelineItem) error

func (*GenericProcessorModule) SetProcessorFunc

func (m *GenericProcessorModule) SetProcessorFunc(
	processorFunc func(*datatypes.PipelineItem) bool) error

func (*GenericProcessorModule) Start

func (m *GenericProcessorModule) Start(waitGroup *sync.WaitGroup) error

type GenericProducerModule

type GenericProducerModule struct {
	*GenericPipelineModule
	// contains filtered or unexported fields
}

func NewGenericProducerModule

func NewGenericProducerModule(name, version, genericId, specificId string,
	producerFunc func(chan<- *datatypes.PipelineItem,
		<-chan struct{})) *GenericProducerModule

func (*GenericProducerModule) SetOutputChannel

func (m *GenericProducerModule) SetOutputChannel(
	outputChannel chan<- *datatypes.PipelineItem) error

func (*GenericProducerModule) SetProducerFunc

func (m *GenericProducerModule) SetProducerFunc(
	producerFunc func(chan<- *datatypes.PipelineItem, <-chan struct{})) error

func (*GenericProducerModule) Start

func (m *GenericProducerModule) Start(waitGroup *sync.WaitGroup) error

type PipelinerConsumerModule

type PipelinerConsumerModule interface {
	// Include methods from the base module interface.
	base_modules.Module

	// include methods required by pipeline output nodes.
	pipeline.ConsumerNode
}

type PipelinerProcessorModule

type PipelinerProcessorModule interface {
	// Include methods from the base module interface.
	base_modules.Module

	// Include methods required by pipeline processor nodes.
	pipeline.ProcessorNode
}

type PipelinerProducerModule

type PipelinerProducerModule interface {
	// Include methods from the base module interface.
	base_modules.Module

	// Include methods required by pipeline input nodes.
	pipeline.ProducerNode
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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