processors

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewComposeProcessor added in v0.2.0

func NewComposeProcessor[T any](processors ...pipeline.DataProcessor[T]) pipeline.DataProcessor[T]

NewComposeProcessor creates a new ComposeProcessor with the given processors.

func NewTPSLimiter

func NewTPSLimiter[T any](ctx context.Context, n int) pipeline.DataProcessor[T]

NewTPSLimiter Create a new TPS limiter. n — allowed number of tokens per second, n = 0 means no limit.

Types

type TokenProcessor added in v0.1.0

type TokenProcessor = pipeline.DataProcessor[*models.Token]

func NewChangeNamespace

func NewChangeNamespace(source, destination *string) TokenProcessor

NewChangeNamespace creates new changeNamespace

func NewExpirationSetter

func NewExpirationSetter(expired *atomic.Uint64, extraTTL int64, logger *slog.Logger) TokenProcessor

NewExpirationSetter creates a new expirationSetter processor

func NewFilterByBin

func NewFilterByBin(binList []string, skipped *atomic.Uint64) TokenProcessor

NewFilterByBin creates new filterByBin processor with given binList.

func NewFilterBySet

func NewFilterBySet(setList []string, skipped *atomic.Uint64) TokenProcessor

NewFilterBySet creates new filterBySet processor with given setList.

func NewFilterByType

func NewFilterByType(noRecords, noIndexes, noUdf bool) TokenProcessor

NewFilterByType creates new filterByType processor

func NewRecordCounter

func NewRecordCounter(counter *atomic.Uint64) TokenProcessor

func NewSizeCounter

func NewSizeCounter(counter *atomic.Uint64) TokenProcessor

func NewVoidTimeSetter

func NewVoidTimeSetter(logger *slog.Logger) TokenProcessor

NewVoidTimeSetter creates a new VoidTimeProcessor

Jump to

Keyboard shortcuts

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