generated from VLADIMIR/template
49 lines
747 B
Protocol Buffer
49 lines
747 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package crabs.evening_detective_server;
|
|
|
|
import "google/api/annotations.proto";
|
|
|
|
option go_package = "pkg/proto";
|
|
|
|
service EveningDetectiveServer {
|
|
rpc Ping(PingReq) returns (PingRsp) {
|
|
option (google.api.http) = {
|
|
get: "/api/ping"
|
|
};
|
|
}
|
|
rpc Echo(EchoReq) returns (EchoRsp) {
|
|
option (google.api.http) = {
|
|
post: "/api/echo"
|
|
};
|
|
}
|
|
|
|
rpc Signup(SignupReq) returns (SignupRsp) {
|
|
option (google.api.http) = {
|
|
post: "/api/signup"
|
|
body: "*"
|
|
};
|
|
}
|
|
}
|
|
|
|
message PingReq {}
|
|
|
|
message PingRsp {}
|
|
|
|
message EchoReq {
|
|
string text = 1;
|
|
}
|
|
|
|
message EchoRsp {
|
|
string text = 1;
|
|
}
|
|
|
|
message SignupReq {
|
|
string username = 1;
|
|
string email = 2;
|
|
}
|
|
|
|
message SignupRsp {
|
|
string error = 1;
|
|
}
|