Skip to content

Instantly share code, notes, and snippets.

@iamsurajgharat
Created October 15, 2020 02:49
Show Gist options
  • Save iamsurajgharat/1d43d8181f286a58617adebce1714c6f to your computer and use it in GitHub Desktop.
Save iamsurajgharat/1d43d8181f286a58617adebce1714c6f to your computer and use it in GitHub Desktop.
gRPC basics with example - proto file
syntax = "proto3";
package com.surajgharat.practice.grpc.service;
service SumService {
rpc Sum(SumInput) returns (SumOutput) {}
}
message SumInput {
int32 n1 = 1;
int32 n2 = 2;
}
message SumOutput { int32 result = 1; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment