producing

package
v0.0.0-...-04c5f57 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKafkaMessageProducer

func NewKafkaMessageProducer(writerFactory KafkaWriterFactory) *kafkaMessageProducer

func NewKafkaWriterFlyweightFactory

func NewKafkaWriterFlyweightFactory(config kafka.WriterConfig) *kafkaWriterFlyweightFactory

Types

type KafkaWriter

type KafkaWriter interface {
	WriteMessages(ctx context.Context, msgs ...kafka.Message) error
}

type KafkaWriterFactory

type KafkaWriterFactory interface {
	CreateWriterForTopic(topicName string) KafkaWriter
}

type MessageProducer

type MessageProducer interface {
	Produce(message *data.MessagePack) error
}

Jump to

Keyboard shortcuts

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