wenfengwang opened a new issue #738:
URL: https://github.com/apache/rocketmq-client-go/issues/738


   **FEATURE REQUEST**
   
   1. Please describe the feature you are requesting.
   add implementation of HighLevel PullConsumer
   2. Provide any additional detail on your proposed use case for this feature.
   ```go
   type PullConsumer interface {
        // start consumer to consuming
       Start() error
       // stop consumer to stopping consuming
       Shutdown() error
   
       // subscribe topic before start, the groupName should be set in 
ConsumerOption, if not set, default group will be used
       Subscribe(topic string, selector consumer.MessageSelector) error
   
       // unsubscribe a topic
       Unsubscribe(topic string) error
       
       // get numbers message from topic
       Pull(ctx context.Context, topic string, numbers int) 
(*primitive.PullResult, error)
   
       // commit consuming position to broker, all messages that pulled will be 
committed, whatever success or not
       Commit(ctx context.Context, topic) (int64, error)
   }
   ```
   3. Indicate the importance of this issue to you (blocker, must-have, 
should-have, nice-to-have). Are you currently using any workarounds to address 
this issue?
    must-have
   4. If there are some sub-tasks using -[] for each subtask and create a 
corresponding issue to map to the sub task:
   none


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to