We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ac9c54 commit 45c9935Copy full SHA for 45c9935
proto/backend.proto
@@ -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
26
+ string title = 2;
27
28
+ string username = 4;
29
+ string first_name = 5;
30
+ string last_name = 6;
31
32
0 commit comments