gogo / grpc-example

An example of using Go gRPC and tools from the greater gRPC ecosystem together with the GoGo Protobuf Project.
Other
454 stars 88 forks source link

Show use of error details #8

Closed johanbrandhorst closed 6 years ago

johanbrandhorst commented 6 years ago

The purpose of this error is to show how the user can attach arbitrary error metadata to a gRPC status error, and how to make that work with the gRPC-Gateway translation layer.

johanbrandhorst commented 6 years ago

Unfortunately, as this PR shows, it is only possible to use status.WithDetails with proto messages that are registered with golang/protobuf. In this case that means we're not able to use gogo/googleapis.