Skip to content
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

Merged
merged 5 commits into from
Jun 17, 2018
Merged

Add core api #235

merged 5 commits into from
Jun 17, 2018

Conversation

antho1404
Copy link
Member

@antho1404 antho1404 commented Jun 17, 2018

Add the following APIs

  • rpc ListServices (ListServicesRequest) returns (ListServicesReply) {}
  • rpc GetService (ServiceRequest) returns (ServiceReply) {}

@antho1404 antho1404 self-assigned this Jun 17, 2018
@codecov
Copy link

codecov bot commented Jun 17, 2018

Codecov Report

Merging #235 into dev will increase coverage by 0.15%.
The diff coverage is 71.42%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
api/core/get_service.go 71.42% <71.42%> (ø)
api/core/list_services.go 71.42% <71.42%> (ø)
api/core/stop.go 66.66% <0%> (-4.77%) ⬇️
api/service/listen_task.go 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8464797...a82057b. Read the comment docs.

@@ -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) {}
Copy link
Member

@NicolasMahe NicolasMahe Jun 17, 2018

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Member

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.

@NicolasMahe NicolasMahe merged commit 8899e80 into dev Jun 17, 2018
@NicolasMahe NicolasMahe deleted the add-missing-apis branch June 17, 2018 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants