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

How do I communicate with GO #149

Open
lishichao1181 opened this issue Jan 22, 2022 · 2 comments
Open

How do I communicate with GO #149

lishichao1181 opened this issue Jan 22, 2022 · 2 comments

Comments

@lishichao1181
Copy link

How do I communicate with GO

@lishichao1181
Copy link
Author

class GreeterStub:

def __init__(self, channel: grpclib.client.Channel) -> None:
    self.SayHello = grpclib.client.UnaryUnaryMethod(
        channel,
        '/helloWorld.Greeter/SayHello',
        helloworld_pb2.HelloRequest,
        helloworld_pb2.HelloReply,
    )

自动生成的文件,路径变成小写了

helloworld修改为helloWorld,可以啦

@vmagamedov
Copy link
Owner

gh:vmagamedov/grpclib/.../helloworld.proto and gh:grpc/grpc-go/.../helloworld.proto are basically the same. You should be able to run examples from both projects in any combination.

Here is how to run grpclib examples: https://github.com/vmagamedov/grpclib/tree/master/examples.

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

2 participants