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 KafkaWriterFactory ¶
type KafkaWriterFactory interface {
CreateWriterForTopic(topicName string) KafkaWriter
}
type MessageProducer ¶
type MessageProducer interface {
Produce(message *data.MessagePack) error
}
Click to show internal directories.
Click to hide internal directories.