pipeline

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2025 License: Apache-2.0 Imports: 9 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(ctx context.Context) 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(ctx context.Context) error
}

type IPipelineGroup added in v0.3.0

type IPipelineGroup interface {
	AddMessage(data entities.PipelineEvent)
	Start(ctx context.Context)
	Close(ctx context.Context) 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(ctx context.Context) error

func (Pipeline) Start

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

type PipelineGroupMock added in v0.3.0

type PipelineGroupMock struct {
	AddMessageInvoked bool
	StartInvoked      bool
	CloseInvoked      bool

	AssertAddMessage func(data entities.PipelineEvent)
	CloseErr         error

	Messages []entities.PipelineEvent
}

func (*PipelineGroupMock) AddMessage added in v0.3.0

func (p *PipelineGroupMock) AddMessage(data entities.PipelineEvent)

func (*PipelineGroupMock) Close added in v0.3.0

func (p *PipelineGroupMock) Close(_ context.Context) error

func (*PipelineGroupMock) Start added in v0.3.0

func (p *PipelineGroupMock) Start(_ context.Context)

Jump to

Keyboard shortcuts

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