steps

package
v0.0.0-...-af67c94 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const FANIN_NAME = "fin"
View Source
const FANOUT_NAME = "fout"
View Source
const JOIN_NAME = "join"
View Source
const PROCESS_NAME = "process"
View Source
const SINK_NAME = "sink"
View Source
const SOURCE_NAME = "source"
View Source
const SYNC_NAME = "sync"

Variables

This section is empty.

Functions

func NewFanIn

func NewFanIn(opts ...options.Option) (pipeline.Step, error)

func NewFanOut

func NewFanOut(opts ...options.Option) (pipeline.Step, error)

func NewJoin

func NewJoin(opts ...options.Option) (pipeline.Step, error)

func NewProcessor

func NewProcessor(opts ...options.Option) (pipeline.Step, error)

func NewReader

func NewReader(opts ...options.Option) (pipeline.Step, error)

func NewSink

func NewSink(opts ...options.Option) (pipeline.Step, error)

func NewSync

func NewSync(opts ...options.Option) (pipeline.Step, error)

func WithCloseFunc

func WithCloseFunc(f func()) options.Option

func WithFields

func WithFields(fields store.Store) options.Option

func WithInitFunc

func WithInitFunc(f func() error) options.Option

func WithKey

func WithKey(dst store.FQDNType) options.Option

func WithNamedProcessorFunc

func WithNamedProcessorFunc(name string, f ProcessFunc) options.Option

func WithNamedSinkFunc

func WithNamedSinkFunc(name string, f SinkFunc) options.Option

func WithProcessor

func WithProcessor(pr Processor) options.Option

func WithProcessorFunc

func WithProcessorFunc(f ProcessFunc) options.Option

func WithRepeat

func WithRepeat() options.Option

func WithResetFunc

func WithResetFunc(f func()) options.Option

func WithSinkCloseFunc

func WithSinkCloseFunc(f func()) options.Option

func WithSinkFunc

func WithSinkFunc(f SinkFunc) options.Option

func WithSinkInitFunc

func WithSinkInitFunc(f func() error) options.Option

func WithSinkProcessor

func WithSinkProcessor(pr Sink) options.Option

func WithSinkResetFunc

func WithSinkResetFunc(f func()) options.Option

func WithSourceReader

func WithSourceReader(reader SourceReader) options.Option

Types

type DefaultProcessor

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

func (DefaultProcessor) Close

func (p DefaultProcessor) Close()

func (DefaultProcessor) Init

func (p DefaultProcessor) Init() error

func (DefaultProcessor) Process

func (p DefaultProcessor) Process(src, dst pipeline.Data) error

func (DefaultProcessor) Reset

func (p DefaultProcessor) Reset()

type DefaultSink

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

func (DefaultSink) Close

func (p DefaultSink) Close()

func (DefaultSink) Init

func (p DefaultSink) Init() error

func (DefaultSink) Reset

func (p DefaultSink) Reset()

func (DefaultSink) Sink

func (p DefaultSink) Sink(data pipeline.Data) error

type NamedSourceReader

type NamedSourceReader interface {
	Name() string
}

type ProcessFunc

type ProcessFunc func(src, dst store.Store) error

type Processor

type Processor interface {
	Init() error
	Close()
	Reset()
	Process(src, dst store.Store) error
}

type ProcessorOptions

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

type Sink

type Sink interface {
	Init() error
	Close()
	Reset()
	Sink(data store.Store) error
}

type SinkFunc

type SinkFunc func(data store.Store) error

type SinkOptions

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

type SourceOptions

type SourceOptions struct {
	Repeat bool
	// contains filtered or unexported fields
}

type SourceReader

type SourceReader interface {
	Read(o SourceOptions) (img interface{}, path string, index int, timestamp int64, err error)
	Reset()
	Open() error
	Close()
}

type SyncOptions

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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