Where to unpack ptypes/any.Any in gRPC server?

53 views
Skip to first unread message

Greg Levine

unread,
Oct 9, 2018, 2:01:50 PM10/9/18
to Go kit
I have a gRPC server where one endpoint receives a message with a field of type Any. I need to unpack this field and create a concrete object from it. Is it better to unpack an Any field in transport.go, when decoding the request, or in service.go, before executing the logic?


Reply all
Reply to author
Forward
0 new messages