MCPcopy Create free account
hub / github.com/apache/pulsar-client-go / GetLastMessageIDs

Method GetLastMessageIDs

pulsar/consumer_zero_queue.go:115–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113}
114
115func (z *zeroQueueConsumer) GetLastMessageIDs() ([]TopicMessageID, error) {
116 id, err := z.pc.getLastMessageID()
117 if err != nil {
118 return nil, err
119 }
120 tm := &topicMessageID{topic: z.pc.topic, track: id}
121 return []TopicMessageID{tm}, nil
122}
123
124func (z *zeroQueueConsumer) Receive(ctx context.Context) (Message, error) {
125 if state := z.pc.getConsumerState(); state == consumerClosed || state == consumerClosing {

Callers

nothing calls this directly

Calls 1

getLastMessageIDMethod · 0.80

Tested by

no test coverage detected