sink

package
v0.0.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoAsyncSinkErr = xerrors.NewSentinel("no applicable AsyncSink for this transfer")

NoAsyncSinkErr error which indicate that we should try to create sinker from SyncSink

Functions

func ConstructBaseSink

func ConstructBaseSink(transfer *model.Transfer, lgr log.Logger, mtrcs metrics.Registry, cp coordinator.Coordinator, config middlewares.Config) (abstract.Sinker, error)

ConstructBaseSink creates a sink of proper type

func MakeAsyncSink

func MakeAsyncSink(transfer *model.Transfer, lgr log.Logger, mtrcs metrics.Registry, cp coordinator.Coordinator, config middlewares.Config, opts ...abstract.SinkOption) (abstract.AsyncSink, error)

MakeAsyncSink creates a ready-to-use complete sink pipeline, topped with an asynchronous sink wrapper. The pipeline may include multiple middlewares and transformations. Their concrete set depends on transfer settings, its source and destination.

Types

This section is empty.

Jump to

Keyboard shortcuts

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