pipeline

package
v0.3.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: Apache-2.0 Imports: 10 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 (*Group) AddMessage

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

func (*Group) Close added in v0.3.0

func (pg *Group) Close() error

func (*Group) Start

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

type IPipeline

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

type IPipelineGroup added in v0.3.0

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

func NewGroup

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

type Pipeline

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

func (Pipeline) AddMessage

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

func (Pipeline) Close added in v0.3.0

func (p Pipeline) Close() error

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