tangled
alpha
login
or
join now
moth11.net
/
lrcproto
2
fork
atom
protobuf definitions for hyper-real-time chat
2
fork
atom
overview
issues
pulls
pipelines
lrcproto v1.0
moth11.net
10 months ago
a9158d80
+93
1 changed file
expand all
collapse all
unified
split
lrc.proto
+93
lrc.proto
···
1
1
+
syntax = "proto3";
2
2
+
3
3
+
message Event {
4
4
+
oneof msg {
5
5
+
Ping ping = 1;
6
6
+
Pong pong = 2;
7
7
+
Init init = 3;
8
8
+
Pub pub = 4;
9
9
+
Insert insert = 5;
10
10
+
Delete delete = 6;
11
11
+
Mute mute = 7;
12
12
+
Unmute unmute = 8;
13
13
+
Set set = 9;
14
14
+
Get get = 10;
15
15
+
Kick kick = 11;
16
16
+
Hug hug = 12;
17
17
+
Ban ban = 13;
18
18
+
Unban unban = 14;
19
19
+
}
20
20
+
}
21
21
+
22
22
+
message Ping {
23
23
+
}
24
24
+
25
25
+
message Pong {
26
26
+
}
27
27
+
28
28
+
message Init {
29
29
+
uint32 id = 1;
30
30
+
string nick = 2;
31
31
+
string externalID = 3;
32
32
+
uint32 color = 4;
33
33
+
bool echoed = 5;
34
34
+
}
35
35
+
36
36
+
message Pub {
37
37
+
uint32 id = 1;
38
38
+
}
39
39
+
40
40
+
message Insert {
41
41
+
uint32 id = 1;
42
42
+
string body = 2;
43
43
+
uint32 byteIndex = 3;
44
44
+
}
45
45
+
46
46
+
message Delete {
47
47
+
uint32 id = 1;
48
48
+
uint32 byteStart = 2;
49
49
+
uint32 byteEnd = 3;
50
50
+
}
51
51
+
52
52
+
message Mute {
53
53
+
uint32 id = 1;
54
54
+
}
55
55
+
56
56
+
message Unmute {
57
57
+
uint32 id = 1;
58
58
+
}
59
59
+
60
60
+
message Set {
61
61
+
string nick = 1;
62
62
+
string externalID = 2;
63
63
+
uint32 color = 3;
64
64
+
}
65
65
+
66
66
+
message Get {
67
67
+
string topic = 1;
68
68
+
uint32 connected = 2;
69
69
+
}
70
70
+
71
71
+
message Sudo {
72
72
+
string externalID = 1;
73
73
+
string secret = 2;
74
74
+
}
75
75
+
76
76
+
message Kick {
77
77
+
Sudo privileges = 1;
78
78
+
uint32 id = 2;
79
79
+
}
80
80
+
81
81
+
message Hug {
82
82
+
uint32 id = 1;
83
83
+
}
84
84
+
85
85
+
message Ban {
86
86
+
Sudo privileges = 1;
87
87
+
uint32 id = 2;
88
88
+
}
89
89
+
90
90
+
message Unban {
91
91
+
Sudo privileges = 1;
92
92
+
uint32 id = 2;
93
93
+
}