Created proto file.
This commit is contained in:
20
log.proto
Normal file
20
log.proto
Normal file
@@ -0,0 +1,20 @@
|
||||
syntax = "proto3";
|
||||
|
||||
message Log {
|
||||
int32 row_number = 1;
|
||||
string user_id = 2;
|
||||
string text = 3;
|
||||
}
|
||||
|
||||
message Logs {
|
||||
repeated Log logs = 1;
|
||||
}
|
||||
|
||||
message Empty {}
|
||||
|
||||
service LogService {
|
||||
rpc AddLog(stream Log) returns (Empty);
|
||||
rpc GetLog(Empty) returns (Logs);
|
||||
rpc ListenLog(Empty) returns (stream Log);
|
||||
rpc UnlistenLog(Empty) returns (Empty);
|
||||
}
|
||||
Reference in New Issue
Block a user