Documentation ¶
Index ¶
- type Consumer
- func (c *Consumer) Assignment() (partitions []tmq.TopicPartition, err error)
- func (c *Consumer) Close() error
- func (c *Consumer) Commit() ([]tmq.TopicPartition, error)
- func (c *Consumer) Poll(timeoutMs int) tmq.Event
- func (c *Consumer) Seek(partition tmq.TopicPartition, ignoredTimeoutMs int) error
- func (c *Consumer) Subscribe(topic string, rebalanceCb RebalanceCb) error
- func (c *Consumer) SubscribeTopics(topics []string, rebalanceCb RebalanceCb) error
- func (c *Consumer) Unsubscribe() error
- type RebalanceCb
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
func NewConsumer ¶
NewConsumer Create new TMQ consumer with TMQ config
func (*Consumer) Assignment ¶ added in v3.5.2
func (c *Consumer) Assignment() (partitions []tmq.TopicPartition, err error)
func (*Consumer) Seek ¶ added in v3.5.2
func (c *Consumer) Seek(partition tmq.TopicPartition, ignoredTimeoutMs int) error
func (*Consumer) Subscribe ¶
func (c *Consumer) Subscribe(topic string, rebalanceCb RebalanceCb) error
func (*Consumer) SubscribeTopics ¶
func (c *Consumer) SubscribeTopics(topics []string, rebalanceCb RebalanceCb) error
Click to show internal directories.
Click to hide internal directories.