Skip to content
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

[Question]: exponsing gRPC services to remote clients #30

Open
mgenov opened this issue Sep 13, 2021 · 0 comments
Open

[Question]: exponsing gRPC services to remote clients #30

mgenov opened this issue Sep 13, 2021 · 0 comments

Comments

@mgenov
Copy link

mgenov commented Sep 13, 2021

What structure is proffered in case when some service needs to expose it's API calls to remote one (gRPC or HTTP) ?

Case 1)

client/grpc/client.go (returns listing.X and accepts adding.X)

Case 2)

client/grpc/client.go 
                   types.go (defines it's own types such as: GetX and AddX)

Maybe there is better option which is not mention?

Will be grateful if I get feedback on this topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant