I don't fully understand the use case here, but I will point out that there is a GenericStub API (see usage example in https://github.com/grpc/grpc/blob/311648e532b55a924a334844a22993860a1b6323/test/cpp/util/cli_call.cc#L52), in which you can dynamically set the method. That might be useful here.
On Thursday, March 31, 2022 at 7:00:39 AM UTC-7 [email protected] wrote: > Hi Grpc Team > > Can any one help on this. I don't want to change the generated protoc > file. Is any other way to route the traffic through ingress or grpc support > any api to prefix the url? > > Regards > Revathi A > > > On Wed, 30 Mar 2022, 11:03 revathi anbumalar, <[email protected]> wrote: > >> Hi Grpc Team >> >> I am trying to redirect the traffic from grpc c++ client to server >> through ingress. I will create a dynamic service when it is requested. >> Multiple client will handle the service. To differenciate the client and >> route the traffic through ingress, I am trying to prefix the Path url and >> once it reach the ingress I will remove the path and redirect to the actual >> path url. To do this in c++ client, currently I am modifying the protoc >> generated file dynamically by changing the epath url. Is any other option >> is there, I feel it is not a correct change >> >> Regards >> Revathi >> > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/68446cd9-8544-47c6-9e70-c8bd773313efn%40googlegroups.com.
