kafkasink

package
v0.0.0-...-77edef9 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

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 ...

func NewKafkaSink

func NewKafkaSink(kconf *KafkaSinkConf) *KafkaSink

NewKafkaSink creates a new sink object given the conf

func (*KafkaSink) Publish

func (s *KafkaSink) Publish(msg *sink.Message) error

Publish send a message through the sink

type KafkaSinkConf

type KafkaSinkConf struct {
	sink.SinkConfCommon `json:",inline" yaml:",inline"`

	Brokers     []string `json:"brokers" yaml:"brokers"`
	Topic       string   `json:"topic" yaml:"topic"`
	Partitioner string   `json:"partitioner" yaml:"partitioner"` // hash, random, manual
	Partition   string   `json:"partition" yaml:"partition"`     // -1
}

KafkaSinkConf ...

Jump to

Keyboard shortcuts

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