Skip to content

Commit 45c9935

Browse files
committed
Create backend proto file
Signed-off-by: Elis Lulja <[email protected]>
1 parent 4ac9c54 commit 45c9935

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

proto/backend.proto

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
syntax = "proto3";
2+
3+
option go_package = "github.com/SunSince90/kube-scraper-backend/pkg/pb";
4+
5+
package pb;
6+
7+
service ChatsBackend {
8+
rpc GetChat(ChatRequest) returns (ChatResponse);
9+
rpc GetChatsList(ChatRequest) returns (ChatResponse);
10+
}
11+
12+
message ChatRequest {
13+
int64 id = 1;
14+
string username = 2;
15+
string type = 3;
16+
}
17+
18+
message ChatResponse {
19+
int64 code = 1;
20+
string message = 2;
21+
repeated Chat chats = 3;
22+
}
23+
24+
message Chat {
25+
int64 id = 1;
26+
string title = 2;
27+
string type = 3;
28+
string username = 4;
29+
string first_name = 5;
30+
string last_name = 6;
31+
}
32+

0 commit comments

Comments
 (0)