kafka

package
v1.19.9 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKafkaSinkPlugin

func NewKafkaSinkPlugin(config Config, schema []schema.StreamSchema) sinks.DataSink

Types

type Config

type Config struct {
	Brokers           []string `json:"brokers" yaml:"brokers"`
	Sasl              bool     `json:"sasl" yaml:"sasl"`
	SaslPassword      string   `json:"sasl_password" yaml:"sasl_password"`
	SaslUser          string   `json:"sasl_user" yaml:"sasl_user"`
	SaslMechanism     string   `json:"sasl_mechanism" yaml:"sasl_mechanism"`
	BindTopicToStream bool     `json:"bind_topic_to_stream" yaml:"bind_topic_to_stream"`
	TopicName         string   `json:"topic_name" yaml:"topic_name"`
}

type SinkPlugin

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

func (*SinkPlugin) Connect

func (s *SinkPlugin) Connect(ctx context.Context) error

func (*SinkPlugin) GetConfig

func (s *SinkPlugin) GetConfig() []kgo.Opt

func (*SinkPlugin) GetType

func (s *SinkPlugin) GetType() sinks.SinkDriver

func (*SinkPlugin) SetExpectedSchema

func (s *SinkPlugin) SetExpectedSchema(schema []schema.StreamSchema)

func (*SinkPlugin) Stop

func (s *SinkPlugin) Stop()

func (*SinkPlugin) Write

func (s *SinkPlugin) Write(mess *message.Message) error

Jump to

Keyboard shortcuts

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