kafka

package
v1.2.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ToKafka

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

ToKafka produce the output to a kafka sinks.

func NewToKafka

func NewToKafka(ctx context.Context, vertexInstance *dfv1.VertexInstance) (*ToKafka, error)

NewToKafka returns ToKafka type.

func (*ToKafka) Close

func (tk *ToKafka) Close() error

func (*ToKafka) GetName

func (tk *ToKafka) GetName() string

GetName returns the name.

func (*ToKafka) GetPartitionIdx added in v0.9.0

func (tk *ToKafka) GetPartitionIdx() int32

GetPartitionIdx returns the partition index. for sink it is always 0.

func (*ToKafka) Write

func (tk *ToKafka) Write(_ context.Context, messages []isb.Message) ([]isb.Offset, []error)

Write writes to the kafka topic.

Jump to

Keyboard shortcuts

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