protobuf definitions for hyper-real-time chat

lrcproto v1.0

moth11.net a9158d80

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