sink

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sink

type Sink[K, V any] struct {
	// contains filtered or unexported fields
}

Sink is a Kafka sink.

func NewSink

func NewSink[K, V any]() *Sink[K, V]

NewSink is a Kafka sink constructor.

func WithContext

func WithContext[K, V any](ctx context.Context, w *kgo.Writer, key codec.Encoder[K], value codec.Encoder[V]) *Sink[K, V]

WithContext is a constructor for a Kafka sink with a cancellation context.

func (*Sink[K, V]) Write

func (s *Sink[K, V]) Write(messages ...msg.Message[K, V]) error

Write is a Kafka sink writer.

Jump to

Keyboard shortcuts

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