go : minimum version 1.13
go get github.com/kamva/hexa-rpc
-
Change Hexa error status from http status to gRPC status, because:
Advantages
- If we using gRPC status, so will dont need to convert https status to gRPC status, we will just convert our gRPC status to http on the gateway responses.
Drawbacks
- If we use gRPC codes, so we will need to import gRPC library in all of libraries that need to define or use hexa error, while http statues exists in most languages as standard libraries.
- Use
recover
interceptor in the gRPC interceptors. - Implement status to Hexa error (and reverse) mapper.
- Set Hexa logger as gRPC Logger (implement gRPC logger adapter by hexa logger)
- Implement request logger (log start-time, end-time, method, error,...)
- We should implement all of our interceptors for the Stream request/responses also (for now we just support Unary Request/responses).
- Write Tests
- Add badges to README.
- CI