/geprec

geprec is not no grpc: learning buf and grpc

Primary LanguageGo

geprec

setup buf

buf config init

setup module proto

buf lint
buf build

generate

buf generate # add plugin

deps

buf dep update

in action

http

curl -X POST http://localhost:3008/v1/greeter/hello -d '{"name": "Eji"}'

grpc

grpcurl -plaintext -d '{"name": "Eji"}' localhost:3009 greeter.v1.GreeterService/SayHello