Created proto file.

This commit is contained in:
WickedJack99
2024-04-29 11:11:08 +02:00
parent 894bba0486
commit e9481996a9

20
log.proto Normal file
View 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);
}