kafka

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SASL_NONE  = "none"
	SASL_PLAIN = "plain"
	SASL_SCRAM = "scram"
)

Variables

This section is empty.

Functions

func GetSink

func GetSink() api.Sink

func GetSource

func GetSource() api.Source

Types

type KafkaSink

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

func (*KafkaSink) Close

func (k *KafkaSink) Close(ctx api.StreamContext) error

func (*KafkaSink) Collect

func (k *KafkaSink) Collect(ctx api.StreamContext, item api.MessageTuple) error

func (*KafkaSink) CollectList

func (k *KafkaSink) CollectList(ctx api.StreamContext, items api.MessageTupleList) error

func (*KafkaSink) Connect

func (k *KafkaSink) Connect(ctx api.StreamContext, sch api.StatusChangeHandler) error

func (*KafkaSink) Ping

func (k *KafkaSink) Ping(ctx api.StreamContext, props map[string]any) error

func (*KafkaSink) Provision

func (k *KafkaSink) Provision(ctx api.StreamContext, configs map[string]any) error

type KafkaSource

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

func (*KafkaSource) Close

func (k *KafkaSource) Close(ctx api.StreamContext) error

func (*KafkaSource) Connect

func (*KafkaSource) GetOffset

func (k *KafkaSource) GetOffset() (interface{}, error)

func (*KafkaSource) Ping

func (k *KafkaSource) Ping(ctx api.StreamContext, props map[string]any) error

func (*KafkaSource) Provision

func (k *KafkaSource) Provision(ctx api.StreamContext, configs map[string]any) error

func (*KafkaSource) ResetOffset

func (k *KafkaSource) ResetOffset(input map[string]interface{}) error

func (*KafkaSource) Rewind

func (k *KafkaSource) Rewind(offset interface{}) error

func (*KafkaSource) Subscribe

func (k *KafkaSource) Subscribe(ctx api.StreamContext, ingest api.BytesIngest, ingestError api.ErrorIngest) error

Jump to

Keyboard shortcuts

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