pygate / pygate-gRPC

A Python gRPC Powergate client
http://pygate.tech
MIT License
22 stars 5 forks source link

Support SSL servers, update protos #42

Closed asutula closed 4 years ago

asutula commented 4 years ago

The clients were written to only deal with non-SSL servers (like localnet setup). This updates the client constructor to take an is_secure parameter that specifies if the server is using SSL or not, then creates the correct gRPC channel internally.

I also updated the .proto files and generated proto code with the latest from Powergate. Not all of the previously existing proto services were exposed before, so I didn't bother creating any new client code to expose them, but there was one service removed (deals) and a new one added (buildinfo), so I removed the deals client code and added buildinfo client code. buildinfo retrieves information about what version of Powergate the client is connected to.