You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to keep my grpc client on the server side but use the response structs on the client-side-rendered web application. Has anyone found a method for doing so? I really don't like to manually duplicate the response structs.
only entities are created. So what I actually need is to config to define another file in which these entities are put. Then I could annotate them with a feature flag etc.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The default setup as seen here https://github.com/hyperium/tonic/blob/master/tonic-build/README.md creates one large file for the actual grpc Client which includes structs for the request and response types.
I would like to keep my grpc client on the server side but use the response structs on the client-side-rendered web application. Has anyone found a method for doing so? I really don't like to manually duplicate the response structs.
I found that when using
only entities are created. So what I actually need is to config to define another file in which these entities are put. Then I could annotate them with a feature flag etc.
Beta Was this translation helpful? Give feedback.
All reactions