Created
September 26, 2020 16:20
-
-
Save kostyay/0d1c20f0f0639adb411bfabb217f1bd1 to your computer and use it in GitHub Desktop.
Time Service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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