Documentation
¶
Overview ¶
Kafka package used by Pachamama Group, uses Segmentio Kafka.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KafkaConsumer ¶
func NewConsumer ¶
func NewConsumer(broker, port, topic, groupID string, maxB int, logger *logger.AggregatedLogger, timeout time.Duration) *KafkaConsumer
func (*KafkaConsumer) Close ¶
func (k *KafkaConsumer) Close() error
type KafkaProducer ¶
func NewProducer ¶
func NewProducer(broker, port, topic string, logger *logger.AggregatedLogger, timeout time.Duration) *KafkaProducer
Context should have a timeout which will signal the time to read or write a message
Click to show internal directories.
Click to hide internal directories.