Skip to content

Instantly share code, notes, and snippets.

@junereycasuga
Created November 21, 2020 08:51
Show Gist options
  • Save junereycasuga/2ce3de7b31d30a99624b0e25a0564e01 to your computer and use it in GitHub Desktop.
Save junereycasuga/2ce3de7b31d30a99624b0e25a0564e01 to your computer and use it in GitHub Desktop.
gokit-grpc-demo protobuf
syntax = "proto3";
option go_package = "github.com/junereycasuga/gokit-grpc-demo/pb";
service MathService {
rpc Add(MathRequest) returns (MathResponse) {}
}
message MathRequest {
float numA = 1;
float numB = 2;
}
message MathResponse {
float result = 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment