pipeline

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsyncWatcher

type AsyncWatcher interface {
	WatchAsync(context.Context, chan<- types.Message) <-chan error
}

type Params

type Params struct {
	Logger       log.Logger        // Logger is used for logging errors.
	Watcher      AsyncWatcher      // Watcher is used to start watching.
	NewProcessor processor.Factory // NewProcessor creates a processor for all message.
	BufferSize   int               // BufferSize is the message buffer size. Defaults to 0.
}

Params contains parameters for NewPipeline.

type Pipeline

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

Pipeline starts a Watcher and feeds all message to the Processor.

func New

func New(params Params) *Pipeline

New creates a new instance of Pipeline.

func (*Pipeline) ProcessPipeline

func (p *Pipeline) ProcessPipeline(ctx context.Context) error

ProcessPipeline starts the watch and feeds all messages to Processor.

Jump to

Keyboard shortcuts

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