apache / apache/rocketmq-client-go

Modify producer api to increase flexibility

Open
#916 1 comment 0 reactions 0 assignees View on GitHub
discuss
Dominant language
Go
Stars
1.4k
Forks
445
PR merge metrics
No merged PRs in 30d

Description

**FEATURE REQUEST**

image

```RequestAsync``` has an argument ```callback``` which is an internal function type.

Maybes it's better to define an API function without importing an internal definition.

For example:
1. When I tried to implement a mock producer to do unit testing of my business logic, it was almost impossible.
2. When I tried to implement a wrapper producer which integrated some custom logic, it was also very hard to do.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.