ECF / grpc-RemoteServicesProvider

ECF Remote Services Provider based upon Google RPC (grpc). see http://www.grpc.io/
Apache License 2.0
3 stars 5 forks source link

Added health.consumer.goapp #13

Closed eum2o closed 3 years ago

eum2o commented 3 years ago

This pull request is related to https://github.com/ECF/grpc-RemoteServicesProvider/issues/10.

It adds the new folder examples/health.consumer.goapp/ which implements a Go client consuming the HealthCheck example remote service.

I implemented this example following https://grpc.io/docs/languages/go/quickstart/. However, this was the first time I was writing code with Go, so some conventions might not be followed.

As stated in the examples/health.consumer.goapp/readme.md file, I had to add the go_package option to the health.proto file.

@scottslewis feel free to edit the pull request as required or to tell me what should be edited before it's merged (e.g. update the root's readme.md?). If you don't want this example at all for any reason (i.e. reject the pull request), it's fine to me too!


// Edit: Btw. I used Visual Studio Code for development (I started by watching https://www.youtube.com/watch?v=1MXIGYrMk80). It would have been nice to be able to develop everything in Eclipse (i.e. to have a .project file in the health.consumer.goapp folder) so that developers can import all HealthCheck related code (API, examples, ...) into the Eclipse Workspace. But all I found was Goclipse which is no longer maintained.