Skip to content

Instantly share code, notes, and snippets.

@kostyay
Created September 26, 2020 16:20
Show Gist options
  • Save kostyay/0d1c20f0f0639adb411bfabb217f1bd1 to your computer and use it in GitHub Desktop.
Save kostyay/0d1c20f0f0639adb411bfabb217f1bd1 to your computer and use it in GitHub Desktop.
Time Service
syntax = "proto3";
package smpl.time.api.v1;
option go_package = "github.com/kostyay/grpc-web-example/api/time/v1";
message GetCurrentTimeRequest {
}
message GetCurrentTimeResponse {
string current_time = 1;
}
service TimeService {
rpc GetCurrentTime(GetCurrentTimeRequest) returns (GetCurrentTimeResponse);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment