-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: api-plugin #358
feat: api-plugin #358
Conversation
Codecov Report
@@ Coverage Diff @@
## main #358 +/- ##
==========================================
- Coverage 57.90% 56.53% -1.38%
==========================================
Files 48 47 -1
Lines 2226 2220 -6
==========================================
- Hits 1289 1255 -34
- Misses 791 827 +36
+ Partials 146 138 -8
Continue to review full report at Codecov.
|
apiForTest.AppCallbackConn = callbackClient | ||
apiForTest.json = jsoniter.ConfigFastest | ||
err = apiForTest.publishMessageGRPC(context.Background(), msg) | ||
assert.Nil(t, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems this test is too simple that it nearly tests nothing. We need to at least test clientV1.OnTopicEvent
is executed with the right input and output.
) | ||
// 4. assert | ||
assert.Nil(t, err) | ||
assert.NotNil(t, server) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
similar issues here.
What this PR does:
Add api-plugin feature.
Users can add their own private grpc API based on their need.
Quickstart: docs/en/start/api_plugin/helloworld.md
Design doc: docs/zh/design/api_plugin/design.md
Which issue(s) this PR fixes:
Fixes #200
Special notes for your reviewer:
Does this PR introduce a user-facing change?: