This commit is contained in:
finlab
2021-01-10 15:31:37 +08:00
committed by huan li
commit c13c1cb37b
34 changed files with 4763 additions and 0 deletions

22
api/echo.proto Normal file
View File

@@ -0,0 +1,22 @@
syntax = "proto3";
package geco.echo.v1;
option go_package = "github.com/esinio/geco/echo/v1";
import "google/protobuf/timestamp.proto";
import "google/api/annotations.proto";
message StringMessage {
string value = 1;
google.protobuf.Timestamp timestamp = 2;
}
service EchoService {
rpc Echo(StringMessage) returns (StringMessage) {
option(google.api.http) = {
post: "/v1/echo/message"
body: "*"
};
}
}