kafka

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KafkaTopic            = flag.String("kafka_topic", "", "kafka topic to produce on")
	KafkaBootstrapServers = flag.String("bootstrap.servers", "", "bootstrap.servers")
)

Functions

This section is empty.

Types

type KafkaMetric

type KafkaMetric struct {
	DeliveryErr go_metrics.Meter
	DeliveryWin go_metrics.Meter
}

type KafkaSink

type KafkaSink struct {
	logger.ContextL
	Topic string
	// contains filtered or unexported fields
}

func NewSink

func NewSink(log logger.Underlying, registry go_metrics.Registry) (*KafkaSink, error)

func (*KafkaSink) Close

func (s *KafkaSink) Close()

func (*KafkaSink) HttpInfo

func (s *KafkaSink) HttpInfo() map[string]float64

func (*KafkaSink) Init

func (s *KafkaSink) Init(ctx context.Context, format formats.Format, compression kt.Compression, fmtr formats.Formatter) error

func (*KafkaSink) Send

func (s *KafkaSink) Send(ctx context.Context, payload *kt.Output)

Jump to

Keyboard shortcuts

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