(client *kgo.Client, topic string)
| 27 | } |
| 28 | |
| 29 | func NewPartitionOffsetClient(client *kgo.Client, topic string) *PartitionOffsetClient { |
| 30 | return &PartitionOffsetClient{ |
| 31 | client: client, |
| 32 | topic: topic, |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | // FetchPartitionsLastProducedOffsets fetches and returns the last produced offsets for all input partitions. The returned offsets for each partition |
| 37 | // are guaranteed to be always updated (no stale or cached offsets returned). |
no outgoing calls