pipeline

package
v0.3.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWriterNotDefined = errors.New("writer not defined")
)

Functions

This section is empty.

Types

type Group

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

func NewGroup

func NewGroup(logger *logrus.Logger, pipelines ...IPipeline) *Group

func (*Group) AddMessage

func (pg *Group) AddMessage(event entities.PipelineEvent)

func (*Group) Start

func (pg *Group) Start(ctx context.Context)

type IPipeline

type IPipeline interface {
	AddMessage(data entities.PipelineEvent)
	Start(ctx context.Context) error
}

type Pipeline

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

func (Pipeline) AddMessage

func (p Pipeline) AddMessage(data entities.PipelineEvent)

func (Pipeline) Start

func (p Pipeline) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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