Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConsumerGroupHandler ¶
func NewConsumerGroupHandler(kafkaListener KafkaListener) sarama.ConsumerGroupHandler
func ParseBalanceStrategy ¶
func ParseBalanceStrategy(partitionAssignor string) (sarama.BalanceStrategy, error)
func ParseInitialOffset ¶
Types ¶
type Config ¶
type KafkaContainer ¶
func NewKafkaContainer ¶
func NewKafkaContainer(kafkaListeners []KafkaListener, listenerConfig *Config) (KafkaContainer, error)
type KafkaListener ¶
type KafkaListener interface { Id() string GroupId() string // Supported value: manual. AckMode() string Topics() []string OnEventFunc() func(record *sarama.ConsumerMessage) error // Required if AckMode equals to "manual". OnEventAckFunc() func(record *sarama.ConsumerMessage, session sarama.ConsumerGroupSession) }
Click to show internal directories.
Click to hide internal directories.