zed/zed-rpc/proto/zed.proto
Max Brunsfeld a10f4bb4ff Introduce zed_rpc::proto module containing protobuf stream logic
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-06-09 13:19:12 -07:00

27 lines
No EOL
393 B
Protocol Buffer

syntax = "proto3";
package zed.messages;
message FromClient {
int32 id = 1;
oneof variant {
Auth auth = 2;
}
message Auth {
int32 user_id = 1;
string access_token = 2;
}
}
message FromServer {
optional int32 request_id = 1;
oneof variant {
Ack ack = 2;
}
message Ack {
optional string error_message = 1;
}
}