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) 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()
Click to show internal directories.
Click to hide internal directories.