sink

package
v0.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 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 *server.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 *server.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