Skip to content

Instantly share code, notes, and snippets.

@tuannguyenssu
Created August 10, 2019 08:45
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 tuannguyenssu/cb585ccad7e8a808ec61ce0a2f010d5c to your computer and use it in GitHub Desktop.
Save tuannguyenssu/cb585ccad7e8a808ec61ce0a2f010d5c to your computer and use it in GitHub Desktop.
syntax = "proto3";
package GrpcUserEndpoint;
// Định nghĩa các services
service GrpcUser {
// Lấy user theo Id
rpc GetUser (GetUserRequest) returns (GetUserResponse) {}
}
// Message request cho service GetUser
message GetUserRequest {
string id = 1;
}
// Message response cho service GetUser
message GetUserResponse {
string id = 1;
string name = 2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment