Skip to content

Instantly share code, notes, and snippets.

@cheoalfredo
Created November 10, 2020 22:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cheoalfredo/2dad04d20228bd472246a09157c20030 to your computer and use it in GitHub Desktop.
Save cheoalfredo/2dad04d20228bd472246a09157c20030 to your computer and use it in GitHub Desktop.
archivo .proto para gRPC
syntax = "proto3";
option csharp_namespace = "MyServer";
package greet;
service OperacionMatematica {
rpc Divide (DivisionRequest) returns (DivisionResponse);
}
message DivisionRequest {
int32 dividendo = 1;
int32 divisor = 2;
}
message DivisionResponse {
int32 cociente = 1;
int32 residuo = 2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment