-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add core api #235
Add core api #235
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #235 +/- ##
==========================================
+ Coverage 63.85% 64.01% +0.15%
==========================================
Files 74 76 +2
Lines 1627 1637 +10
==========================================
+ Hits 1039 1048 +9
+ Misses 508 507 -1
- Partials 80 82 +2
Continue to review full report at Codecov.
|
api/core/api.proto
Outdated
@@ -13,6 +13,8 @@ service Core { | |||
rpc StopService (StopServiceRequest) returns (StopServiceReply) {} | |||
rpc DeployService (DeployServiceRequest) returns (DeployServiceReply) {} | |||
rpc DeleteService (DeleteServiceRequest) returns (DeleteServiceReply) {} | |||
rpc ListServices (ListServicesRequest) returns (ListServicesReply) {} | |||
rpc Service (ServiceRequest) returns (ServiceReply) {} |
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.
I suggest to rename Service
by GetService
. It will be better for the uniformization and explicitly of the API
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.
done
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.
Don't forget to rename the files api/core/service.go
and api/core/service_test.go
.
Add the following APIs
rpc ListServices (ListServicesRequest) returns (ListServicesReply) {}
rpc GetService (ServiceRequest) returns (ServiceReply) {}