pipeline

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pipeline

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

func New

func New(transformers ...Transformer) *Pipeline

func (*Pipeline) Transform

func (p *Pipeline) Transform(ctx context.Context, input []byte) ([]byte, error)

Transform implements Transformer.

type TransformFunc

type TransformFunc func(ctx context.Context, input []byte) ([]byte, error)

type Transformer

type Transformer interface {
	Transform(ctx context.Context, input []byte) ([]byte, error)
}

func NewTransformer

func NewTransformer(transform TransformFunc) Transformer

Jump to

Keyboard shortcuts

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