To be able to generate the needed client files, you must use 'protoc' compiler.
http://google.github.io/proto-lens/installing-protoc.html
You may find ready to use .proto files in the 'proto' directory. You may run the server to serve those services by running the project:
https://github.com/guildenstern70/SmartgRpc
Be sure to locally install the latest version of Go files generator for protoc, here:
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
This code must be installed in a directory inside
$GOPATH/src
with the following path
github.com/guildenstern70/grpcclient
so that you find the LICENSE file here:
$GOPATH/src/github.com/guildenstern70/grpcclient/LICENSE
The gRpc server for this client can be found at:
https://github.com/guildenstern70/SmartgRpc
Md5 Service
protoc --go_out=./out --go_opt=paths=source_relative --go-grpc_out=./out --go-grpc_opt=paths=source_relative ./proto/md5.proto
Hypotenuse
protoc --go_out=./out --go_opt=paths=source_relative --go-grpc_out=./out --go-grpc_opt=paths=source_relative ./proto/hypotenuse.proto
You build the executable file by running
go install github.com/guildenstern70/grpcclient/gprccl
You update dependencies in go.mod with
go mod tidy
Run the built gRpc client with
$GOPATH/bin/gprccl.exe (Windows)
$GOPATH/bin/gprccl (Mac + Linux)
Be sure to have the server SmartGrpc running on port 9000