This should help ya out: https://github.com/mateothegreat/go-grpc-example
#Does anybody have experience with setting up gRPC communication between 2 GoLang microservices?
20 messages ยท Page 1 of 1 (latest)
the hardest part imho is generating the proto files and putting them in the right location ๐
jumping in as I've got a protobuf thing that I bang my head on from time to time.. ๐
@wary gulch your server code uses a module that either is private or doesn't exist, are you able to explain what https://github.com/mateothegreat/go-grpc-example/blob/main/pkg/server/server.go#L31 is doing?
Good catch! I'll update the imports.. I threw this up there just for you ๐
It's here: https://github.com/mateothegreat/go-grpc-example/blob/main/pkg/protos/server_grpc.pb.go#L74
oh, it should be in the generated file? hmm
thanks though, leading me down another avenue of issues ๐
Hey @wary gulch !
Thanks for the info man!
Quick question tho, in the attached screenshot of the server code from the repo that you gave... the "pb ....." imported thing references a git repo.,.. why so? Why can't it just reference the proto files from the local dir?
Do I have to push my code to github before making the imports work then?
Would any of you guys be willing to chat over dm?
Why can't it just reference the proto files from the local dir?
it can - that pb reference is a completely different URL that this one though ๐
My editor is throwing errors when I use the pb
Wait... so I do need to push it to github before using the 'pb' command to import? @wary gulch @mental garnet
Bro im acc so confused lmfao... can we run through this sometime please?
I want to show you what errors im getting, if thats cool
I don't think I have the packages and all set-up correctly either
if you want to use an external reference like that, yes - if your root package is that name/url, then no, it'll know it's inside itself
Sure, send a github link
