kafka

package
v0.2.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package kafka implements the Apache Kafka connector.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaSink

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

KafkaSink represents an Apache Kafka sink connector.

func NewKafkaSink

func NewKafkaSink(ctx context.Context, config kafka.WriterConfig) (*KafkaSink, error)

NewKafkaSink returns a new KafkaSink instance.

func (*KafkaSink) In

func (ks *KafkaSink) In() chan<- any

In returns an input channel for receiving data.

type KafkaSource

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

KafkaSource represents an Apache Kafka source connector.

func NewKafkaSource

func NewKafkaSource(ctx context.Context, config kafka.ReaderConfig) (*KafkaSource, error)

NewKafkaSource returns a new KafkaSource instance.

func (*KafkaSource) Out

func (ks *KafkaSource) Out() <-chan any

Out returns an output channel for sending data.

func (*KafkaSource) Via

func (ks *KafkaSource) Via(_flow streams.Flow) streams.Flow

Via streams data through the given flow.

Jump to

Keyboard shortcuts

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