-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consume ServiceInfo
data building ServiceInfoData
structure
#299
Comments
You have a good point. Do you intend to use I think the problem is that currently the same We probably should have defined a different struct for the client side in resolving a service, that contains the attributes as in
In both options, how about naming the new struct What do you think? |
Yep, exactly, only on the client side.
I agree with differentiating server and client side because they deal with separate things. I really like the first option because it's simpler and |
I think it's probably better to go with the first option. I opened a draft PR to follow up. Feel free to comment in the PR, or here. |
Yep, I agree |
PR merged! |
Thanks a lot! |
Currently, I'm facing a specific workflow which needs to consume
ServiceInfo
. In my opinion, it would be helpful to add aServiceInfoData
structure containing all information that can be retrieved throughget_*
functions.Something like:
The example above is not exhaustive, therefore some public fields are missing. This approach would reduce the amount of allocations to be performed when
ServiceInfo
must not be saved.The text was updated successfully, but these errors were encountered: