client and server stub not generated grpc-go

12 views
Skip to first unread message

Amandeep Gautam

unread,
Jan 4, 2018, 2:52:27 PM1/4/18
to grpc.io
I am trying to write a grpc server in go but am unable get the generated client and server stub in the file generated by plugin.
Here is the paste of the file generated: https://pastebin.com/kfi99MxK

From what I have researched, it is because of faulty protobuf installation but I am not sure what is exactly wrong and how to debug the root cause.

Any help is appreciated.

Josh Humphries

unread,
Jan 4, 2018, 3:13:35 PM1/4/18
to Amandeep Gautam, grpc.io
For go, you must enable the grpc plugin. This is done via prefix to the --go_out parameter:

protoc --go_out=plugins=grpc:. grpc_tester.proto

----
Josh Humphries
jh...@bluegosling.com

--
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 grpc-io+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/7af9bed0-85f9-400e-bd4e-ce65655ed465%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages