pipe

package
v0.0.0-...-3909df4 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

type Worker struct {
	Name string
	// contains filtered or unexported fields
}

func NewWorker

func NewWorker(name string, sources []*v1.Source, handler handlers.Handler, opts ...WorkerOption) *Worker

func (*Worker) HealthStatus

func (w *Worker) HealthStatus() v1.HealthStatus

func (*Worker) Start

func (w *Worker) Start(ctx context.Context) error

type WorkerOption

type WorkerOption func(w *Worker)

func WithDynamicRate

func WithDynamicRate(start, min int, windowSize time.Duration) WorkerOption

func WithErrorSource

func WithErrorSource(source *v1.Source) WorkerOption

func WithFixedRate

func WithFixedRate(rate int) WorkerOption

func WithOutput

func WithOutput(source *v1.Source) WorkerOption

Jump to

Keyboard shortcuts

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