murmur-grpc 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a694ff3bb51af8ed70452480558c04c4dea6b2f845707f850c7dd0ea19483446
4
+ data.tar.gz: b7fda838aae91b105bd5abb85387301187aaa4f58bba967f89f28fc2ee0c9c69
5
+ SHA512:
6
+ metadata.gz: 12afe6ff9d470f6d80d6712002c8498873b405054376abc0625ed0b64dd3e98510eda51dcc7599df5fe9cfea13737de6b9f8d8db46884eaafb9ec96db081983f
7
+ data.tar.gz: 3cb5021cb66fa0aa43646d219e7cc035d400948e54faafaf137240e36e6e6a9b82ca220fac9e7fe20dee90a47db97b27805c3158fa5138cb248663ccf112da9e
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+ # Murmur RPC client for Ruby
3
+ # (C) 2020- Roman Hargrave <roman@hargrave.info>
4
+ # Licensed under the GPL-3.0 - see LICENSE for more details
5
+
6
+ require 'murmur_rpc/murmur_rpc_pb'
7
+ require 'murmur_rpc/murmur_rpc_services_pb'
8
+
9
+ # Murmur RPC client
10
+ module MurmurRPC
11
+ end
@@ -0,0 +1,414 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: murmur_rpc/murmur_rpc.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("murmur_rpc/murmur_rpc.proto", :syntax => :proto2) do
8
+ add_message "MurmurRPC.Void" do
9
+ end
10
+ add_message "MurmurRPC.Version" do
11
+ optional :version, :uint32, 1
12
+ optional :release, :string, 2
13
+ optional :os, :string, 3
14
+ optional :os_version, :string, 4
15
+ end
16
+ add_message "MurmurRPC.Uptime" do
17
+ optional :secs, :uint64, 1
18
+ end
19
+ add_message "MurmurRPC.Server" do
20
+ required :id, :uint32, 1
21
+ optional :running, :bool, 2
22
+ optional :uptime, :message, 3, "MurmurRPC.Uptime"
23
+ end
24
+ add_message "MurmurRPC.Server.Event" do
25
+ optional :server, :message, 1, "MurmurRPC.Server"
26
+ optional :type, :enum, 2, "MurmurRPC.Server.Event.Type"
27
+ optional :user, :message, 3, "MurmurRPC.User"
28
+ optional :message, :message, 4, "MurmurRPC.TextMessage"
29
+ optional :channel, :message, 5, "MurmurRPC.Channel"
30
+ end
31
+ add_enum "MurmurRPC.Server.Event.Type" do
32
+ value :UserConnected, 0
33
+ value :UserDisconnected, 1
34
+ value :UserStateChanged, 2
35
+ value :UserTextMessage, 3
36
+ value :ChannelCreated, 4
37
+ value :ChannelRemoved, 5
38
+ value :ChannelStateChanged, 6
39
+ end
40
+ add_message "MurmurRPC.Server.Query" do
41
+ end
42
+ add_message "MurmurRPC.Server.List" do
43
+ repeated :servers, :message, 1, "MurmurRPC.Server"
44
+ end
45
+ add_message "MurmurRPC.Event" do
46
+ optional :server, :message, 1, "MurmurRPC.Server"
47
+ optional :type, :enum, 2, "MurmurRPC.Event.Type"
48
+ end
49
+ add_enum "MurmurRPC.Event.Type" do
50
+ value :ServerStopped, 0
51
+ value :ServerStarted, 1
52
+ end
53
+ add_message "MurmurRPC.ContextAction" do
54
+ optional :server, :message, 1, "MurmurRPC.Server"
55
+ optional :context, :uint32, 2
56
+ optional :action, :string, 3
57
+ optional :text, :string, 4
58
+ optional :actor, :message, 5, "MurmurRPC.User"
59
+ optional :user, :message, 6, "MurmurRPC.User"
60
+ optional :channel, :message, 7, "MurmurRPC.Channel"
61
+ end
62
+ add_enum "MurmurRPC.ContextAction.Context" do
63
+ value :Server, 1
64
+ value :Channel, 2
65
+ value :User, 4
66
+ end
67
+ add_message "MurmurRPC.TextMessage" do
68
+ optional :server, :message, 1, "MurmurRPC.Server"
69
+ optional :actor, :message, 2, "MurmurRPC.User"
70
+ repeated :users, :message, 3, "MurmurRPC.User"
71
+ repeated :channels, :message, 4, "MurmurRPC.Channel"
72
+ repeated :trees, :message, 5, "MurmurRPC.Channel"
73
+ optional :text, :string, 6
74
+ end
75
+ add_message "MurmurRPC.TextMessage.Filter" do
76
+ optional :server, :message, 1, "MurmurRPC.Server"
77
+ optional :action, :enum, 2, "MurmurRPC.TextMessage.Filter.Action"
78
+ optional :message, :message, 3, "MurmurRPC.TextMessage"
79
+ end
80
+ add_enum "MurmurRPC.TextMessage.Filter.Action" do
81
+ value :Accept, 0
82
+ value :Reject, 1
83
+ value :Drop, 2
84
+ end
85
+ add_message "MurmurRPC.Log" do
86
+ optional :server, :message, 1, "MurmurRPC.Server"
87
+ optional :timestamp, :int64, 2
88
+ optional :text, :string, 3
89
+ end
90
+ add_message "MurmurRPC.Log.Query" do
91
+ optional :server, :message, 1, "MurmurRPC.Server"
92
+ optional :min, :uint32, 2
93
+ optional :max, :uint32, 3
94
+ end
95
+ add_message "MurmurRPC.Log.List" do
96
+ optional :server, :message, 1, "MurmurRPC.Server"
97
+ optional :total, :uint32, 2
98
+ optional :min, :uint32, 3
99
+ optional :max, :uint32, 4
100
+ repeated :entries, :message, 5, "MurmurRPC.Log"
101
+ end
102
+ add_message "MurmurRPC.Config" do
103
+ optional :server, :message, 1, "MurmurRPC.Server"
104
+ map :fields, :string, :string, 2
105
+ end
106
+ add_message "MurmurRPC.Config.Field" do
107
+ optional :server, :message, 1, "MurmurRPC.Server"
108
+ optional :key, :string, 2
109
+ optional :value, :string, 3
110
+ end
111
+ add_message "MurmurRPC.Channel" do
112
+ optional :server, :message, 1, "MurmurRPC.Server"
113
+ optional :id, :uint32, 2
114
+ optional :name, :string, 3
115
+ optional :parent, :message, 4, "MurmurRPC.Channel"
116
+ repeated :links, :message, 5, "MurmurRPC.Channel"
117
+ optional :description, :string, 6
118
+ optional :temporary, :bool, 7
119
+ optional :position, :int32, 8
120
+ end
121
+ add_message "MurmurRPC.Channel.Query" do
122
+ optional :server, :message, 1, "MurmurRPC.Server"
123
+ end
124
+ add_message "MurmurRPC.Channel.List" do
125
+ optional :server, :message, 1, "MurmurRPC.Server"
126
+ repeated :channels, :message, 2, "MurmurRPC.Channel"
127
+ end
128
+ add_message "MurmurRPC.User" do
129
+ optional :server, :message, 1, "MurmurRPC.Server"
130
+ optional :session, :uint32, 2
131
+ optional :id, :uint32, 3
132
+ optional :name, :string, 4
133
+ optional :mute, :bool, 5
134
+ optional :deaf, :bool, 6
135
+ optional :suppress, :bool, 7
136
+ optional :priority_speaker, :bool, 8
137
+ optional :self_mute, :bool, 9
138
+ optional :self_deaf, :bool, 10
139
+ optional :recording, :bool, 11
140
+ optional :channel, :message, 12, "MurmurRPC.Channel"
141
+ optional :online_secs, :uint32, 13
142
+ optional :idle_secs, :uint32, 14
143
+ optional :bytes_per_sec, :uint32, 15
144
+ optional :version, :message, 16, "MurmurRPC.Version"
145
+ optional :plugin_context, :bytes, 17
146
+ optional :plugin_identity, :string, 18
147
+ optional :comment, :string, 19
148
+ optional :texture, :bytes, 20
149
+ optional :address, :bytes, 21
150
+ optional :tcp_only, :bool, 22
151
+ optional :udp_ping_msecs, :float, 23
152
+ optional :tcp_ping_msecs, :float, 24
153
+ end
154
+ add_message "MurmurRPC.User.Query" do
155
+ optional :server, :message, 1, "MurmurRPC.Server"
156
+ end
157
+ add_message "MurmurRPC.User.List" do
158
+ optional :server, :message, 1, "MurmurRPC.Server"
159
+ repeated :users, :message, 2, "MurmurRPC.User"
160
+ end
161
+ add_message "MurmurRPC.User.Kick" do
162
+ optional :server, :message, 1, "MurmurRPC.Server"
163
+ optional :user, :message, 2, "MurmurRPC.User"
164
+ optional :actor, :message, 3, "MurmurRPC.User"
165
+ optional :reason, :string, 4
166
+ end
167
+ add_message "MurmurRPC.Tree" do
168
+ optional :server, :message, 1, "MurmurRPC.Server"
169
+ optional :channel, :message, 2, "MurmurRPC.Channel"
170
+ repeated :children, :message, 3, "MurmurRPC.Tree"
171
+ repeated :users, :message, 4, "MurmurRPC.User"
172
+ end
173
+ add_message "MurmurRPC.Tree.Query" do
174
+ optional :server, :message, 1, "MurmurRPC.Server"
175
+ end
176
+ add_message "MurmurRPC.Ban" do
177
+ optional :server, :message, 1, "MurmurRPC.Server"
178
+ optional :address, :bytes, 2
179
+ optional :bits, :uint32, 3
180
+ optional :name, :string, 4
181
+ optional :hash, :string, 5
182
+ optional :reason, :string, 6
183
+ optional :start, :int64, 7
184
+ optional :duration_secs, :int64, 8
185
+ end
186
+ add_message "MurmurRPC.Ban.Query" do
187
+ optional :server, :message, 1, "MurmurRPC.Server"
188
+ end
189
+ add_message "MurmurRPC.Ban.List" do
190
+ optional :server, :message, 1, "MurmurRPC.Server"
191
+ repeated :bans, :message, 2, "MurmurRPC.Ban"
192
+ end
193
+ add_message "MurmurRPC.ACL" do
194
+ optional :apply_here, :bool, 3
195
+ optional :apply_subs, :bool, 4
196
+ optional :inherited, :bool, 5
197
+ optional :user, :message, 6, "MurmurRPC.DatabaseUser"
198
+ optional :group, :message, 7, "MurmurRPC.ACL.Group"
199
+ optional :allow, :uint32, 8
200
+ optional :deny, :uint32, 9
201
+ end
202
+ add_message "MurmurRPC.ACL.Group" do
203
+ optional :name, :string, 1
204
+ optional :inherited, :bool, 2
205
+ optional :inherit, :bool, 3
206
+ optional :inheritable, :bool, 4
207
+ repeated :users_add, :message, 5, "MurmurRPC.DatabaseUser"
208
+ repeated :users_remove, :message, 6, "MurmurRPC.DatabaseUser"
209
+ repeated :users, :message, 7, "MurmurRPC.DatabaseUser"
210
+ end
211
+ add_message "MurmurRPC.ACL.Query" do
212
+ optional :server, :message, 1, "MurmurRPC.Server"
213
+ optional :user, :message, 2, "MurmurRPC.User"
214
+ optional :channel, :message, 3, "MurmurRPC.Channel"
215
+ end
216
+ add_message "MurmurRPC.ACL.List" do
217
+ optional :server, :message, 1, "MurmurRPC.Server"
218
+ optional :channel, :message, 2, "MurmurRPC.Channel"
219
+ repeated :acls, :message, 3, "MurmurRPC.ACL"
220
+ repeated :groups, :message, 4, "MurmurRPC.ACL.Group"
221
+ optional :inherit, :bool, 5
222
+ end
223
+ add_message "MurmurRPC.ACL.TemporaryGroup" do
224
+ optional :server, :message, 1, "MurmurRPC.Server"
225
+ optional :channel, :message, 2, "MurmurRPC.Channel"
226
+ optional :user, :message, 3, "MurmurRPC.User"
227
+ optional :name, :string, 4
228
+ end
229
+ add_enum "MurmurRPC.ACL.Permission" do
230
+ value :None, 0
231
+ value :Write, 1
232
+ value :Traverse, 2
233
+ value :Enter, 4
234
+ value :Speak, 8
235
+ value :Whisper, 256
236
+ value :MuteDeafen, 16
237
+ value :Move, 32
238
+ value :MakeChannel, 64
239
+ value :MakeTemporaryChannel, 1024
240
+ value :LinkChannel, 128
241
+ value :TextMessage, 512
242
+ value :Kick, 65536
243
+ value :Ban, 131072
244
+ value :Register, 262144
245
+ value :RegisterSelf, 524288
246
+ end
247
+ add_message "MurmurRPC.Authenticator" do
248
+ end
249
+ add_message "MurmurRPC.Authenticator.Request" do
250
+ optional :authenticate, :message, 1, "MurmurRPC.Authenticator.Request.Authenticate"
251
+ optional :find, :message, 2, "MurmurRPC.Authenticator.Request.Find"
252
+ optional :query, :message, 3, "MurmurRPC.Authenticator.Request.Query"
253
+ optional :register, :message, 4, "MurmurRPC.Authenticator.Request.Register"
254
+ optional :deregister, :message, 5, "MurmurRPC.Authenticator.Request.Deregister"
255
+ optional :update, :message, 6, "MurmurRPC.Authenticator.Request.Update"
256
+ end
257
+ add_message "MurmurRPC.Authenticator.Request.Authenticate" do
258
+ optional :name, :string, 1
259
+ optional :password, :string, 2
260
+ repeated :certificates, :bytes, 3
261
+ optional :certificate_hash, :string, 4
262
+ optional :strong_certificate, :bool, 5
263
+ end
264
+ add_message "MurmurRPC.Authenticator.Request.Find" do
265
+ optional :id, :uint32, 1
266
+ optional :name, :string, 2
267
+ end
268
+ add_message "MurmurRPC.Authenticator.Request.Query" do
269
+ optional :filter, :string, 1
270
+ end
271
+ add_message "MurmurRPC.Authenticator.Request.Register" do
272
+ optional :user, :message, 1, "MurmurRPC.DatabaseUser"
273
+ end
274
+ add_message "MurmurRPC.Authenticator.Request.Deregister" do
275
+ optional :user, :message, 1, "MurmurRPC.DatabaseUser"
276
+ end
277
+ add_message "MurmurRPC.Authenticator.Request.Update" do
278
+ optional :user, :message, 1, "MurmurRPC.DatabaseUser"
279
+ end
280
+ add_message "MurmurRPC.Authenticator.Response" do
281
+ optional :initialize, :message, 1, "MurmurRPC.Authenticator.Response.Initialize"
282
+ optional :authenticate, :message, 2, "MurmurRPC.Authenticator.Response.Authenticate"
283
+ optional :find, :message, 3, "MurmurRPC.Authenticator.Response.Find"
284
+ optional :query, :message, 4, "MurmurRPC.Authenticator.Response.Query"
285
+ optional :register, :message, 5, "MurmurRPC.Authenticator.Response.Register"
286
+ optional :deregister, :message, 6, "MurmurRPC.Authenticator.Response.Deregister"
287
+ optional :update, :message, 7, "MurmurRPC.Authenticator.Response.Update"
288
+ end
289
+ add_message "MurmurRPC.Authenticator.Response.Initialize" do
290
+ optional :server, :message, 1, "MurmurRPC.Server"
291
+ end
292
+ add_message "MurmurRPC.Authenticator.Response.Authenticate" do
293
+ optional :status, :enum, 1, "MurmurRPC.Authenticator.Response.Status"
294
+ optional :id, :uint32, 2
295
+ optional :name, :string, 3
296
+ repeated :groups, :message, 4, "MurmurRPC.ACL.Group"
297
+ end
298
+ add_message "MurmurRPC.Authenticator.Response.Find" do
299
+ optional :user, :message, 1, "MurmurRPC.DatabaseUser"
300
+ end
301
+ add_message "MurmurRPC.Authenticator.Response.Query" do
302
+ repeated :users, :message, 1, "MurmurRPC.DatabaseUser"
303
+ end
304
+ add_message "MurmurRPC.Authenticator.Response.Register" do
305
+ optional :status, :enum, 1, "MurmurRPC.Authenticator.Response.Status"
306
+ optional :user, :message, 2, "MurmurRPC.DatabaseUser"
307
+ end
308
+ add_message "MurmurRPC.Authenticator.Response.Deregister" do
309
+ optional :status, :enum, 1, "MurmurRPC.Authenticator.Response.Status"
310
+ end
311
+ add_message "MurmurRPC.Authenticator.Response.Update" do
312
+ optional :status, :enum, 1, "MurmurRPC.Authenticator.Response.Status"
313
+ end
314
+ add_enum "MurmurRPC.Authenticator.Response.Status" do
315
+ value :Fallthrough, 0
316
+ value :Success, 1
317
+ value :Failure, 2
318
+ value :TemporaryFailure, 3
319
+ end
320
+ add_message "MurmurRPC.DatabaseUser" do
321
+ optional :server, :message, 1, "MurmurRPC.Server"
322
+ optional :id, :uint32, 2
323
+ optional :name, :string, 3
324
+ optional :email, :string, 4
325
+ optional :comment, :string, 5
326
+ optional :hash, :string, 6
327
+ optional :password, :string, 7
328
+ optional :last_active, :string, 8
329
+ optional :texture, :bytes, 9
330
+ end
331
+ add_message "MurmurRPC.DatabaseUser.Query" do
332
+ optional :server, :message, 1, "MurmurRPC.Server"
333
+ optional :filter, :string, 2
334
+ end
335
+ add_message "MurmurRPC.DatabaseUser.List" do
336
+ optional :server, :message, 1, "MurmurRPC.Server"
337
+ repeated :users, :message, 2, "MurmurRPC.DatabaseUser"
338
+ end
339
+ add_message "MurmurRPC.DatabaseUser.Verify" do
340
+ optional :server, :message, 1, "MurmurRPC.Server"
341
+ optional :name, :string, 2
342
+ optional :password, :string, 3
343
+ end
344
+ add_message "MurmurRPC.RedirectWhisperGroup" do
345
+ optional :server, :message, 1, "MurmurRPC.Server"
346
+ optional :user, :message, 2, "MurmurRPC.User"
347
+ optional :source, :message, 3, "MurmurRPC.ACL.Group"
348
+ optional :target, :message, 4, "MurmurRPC.ACL.Group"
349
+ end
350
+ end
351
+ end
352
+
353
+ module MurmurRPC
354
+ Void = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Void").msgclass
355
+ Version = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Version").msgclass
356
+ Uptime = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Uptime").msgclass
357
+ Server = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Server").msgclass
358
+ Server::Event = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Server.Event").msgclass
359
+ Server::Event::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Server.Event.Type").enummodule
360
+ Server::Query = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Server.Query").msgclass
361
+ Server::List = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Server.List").msgclass
362
+ Event = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Event").msgclass
363
+ Event::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Event.Type").enummodule
364
+ ContextAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.ContextAction").msgclass
365
+ ContextAction::Context = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.ContextAction.Context").enummodule
366
+ TextMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.TextMessage").msgclass
367
+ TextMessage::Filter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.TextMessage.Filter").msgclass
368
+ TextMessage::Filter::Action = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.TextMessage.Filter.Action").enummodule
369
+ Log = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Log").msgclass
370
+ Log::Query = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Log.Query").msgclass
371
+ Log::List = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Log.List").msgclass
372
+ Config = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Config").msgclass
373
+ Config::Field = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Config.Field").msgclass
374
+ Channel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Channel").msgclass
375
+ Channel::Query = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Channel.Query").msgclass
376
+ Channel::List = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Channel.List").msgclass
377
+ User = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.User").msgclass
378
+ User::Query = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.User.Query").msgclass
379
+ User::List = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.User.List").msgclass
380
+ User::Kick = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.User.Kick").msgclass
381
+ Tree = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Tree").msgclass
382
+ Tree::Query = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Tree.Query").msgclass
383
+ Ban = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Ban").msgclass
384
+ Ban::Query = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Ban.Query").msgclass
385
+ Ban::List = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Ban.List").msgclass
386
+ ACL = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.ACL").msgclass
387
+ ACL::Group = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.ACL.Group").msgclass
388
+ ACL::Query = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.ACL.Query").msgclass
389
+ ACL::List = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.ACL.List").msgclass
390
+ ACL::TemporaryGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.ACL.TemporaryGroup").msgclass
391
+ ACL::Permission = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.ACL.Permission").enummodule
392
+ Authenticator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Authenticator").msgclass
393
+ Authenticator::Request = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Authenticator.Request").msgclass
394
+ Authenticator::Request::Authenticate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Authenticator.Request.Authenticate").msgclass
395
+ Authenticator::Request::Find = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Authenticator.Request.Find").msgclass
396
+ Authenticator::Request::Query = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Authenticator.Request.Query").msgclass
397
+ Authenticator::Request::Register = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Authenticator.Request.Register").msgclass
398
+ Authenticator::Request::Deregister = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Authenticator.Request.Deregister").msgclass
399
+ Authenticator::Request::Update = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Authenticator.Request.Update").msgclass
400
+ Authenticator::Response = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Authenticator.Response").msgclass
401
+ Authenticator::Response::Initialize = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Authenticator.Response.Initialize").msgclass
402
+ Authenticator::Response::Authenticate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Authenticator.Response.Authenticate").msgclass
403
+ Authenticator::Response::Find = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Authenticator.Response.Find").msgclass
404
+ Authenticator::Response::Query = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Authenticator.Response.Query").msgclass
405
+ Authenticator::Response::Register = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Authenticator.Response.Register").msgclass
406
+ Authenticator::Response::Deregister = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Authenticator.Response.Deregister").msgclass
407
+ Authenticator::Response::Update = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Authenticator.Response.Update").msgclass
408
+ Authenticator::Response::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.Authenticator.Response.Status").enummodule
409
+ DatabaseUser = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.DatabaseUser").msgclass
410
+ DatabaseUser::Query = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.DatabaseUser.Query").msgclass
411
+ DatabaseUser::List = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.DatabaseUser.List").msgclass
412
+ DatabaseUser::Verify = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.DatabaseUser.Verify").msgclass
413
+ RedirectWhisperGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("MurmurRPC.RedirectWhisperGroup").msgclass
414
+ end
@@ -0,0 +1,219 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: murmur_rpc/murmur_rpc.proto for package 'MurmurRPC'
3
+ # Original file comments:
4
+ # Copyright 2005-2020 The Mumble Developers. All rights reserved.
5
+ # Use of this source code is governed by a BSD-style license
6
+ # that can be found in the LICENSE file at the root of the
7
+ # Mumble source tree or at <https://www.mumble.info/LICENSE>.
8
+ #
9
+
10
+ require 'grpc'
11
+ require 'murmur_rpc/murmur_rpc_pb'
12
+
13
+ module MurmurRPC
14
+ module V1
15
+ class Service
16
+
17
+ include GRPC::GenericService
18
+
19
+ self.marshal_class_method = :encode
20
+ self.unmarshal_class_method = :decode
21
+ self.service_name = 'MurmurRPC.V1'
22
+
23
+ # GetUptime returns murmur's uptime.
24
+ rpc :GetUptime, ::MurmurRPC::Void, ::MurmurRPC::Uptime
25
+ # GetVersion returns murmur's version.
26
+ rpc :GetVersion, ::MurmurRPC::Void, ::MurmurRPC::Version
27
+ # Events returns a stream of murmur events.
28
+ rpc :Events, ::MurmurRPC::Void, stream(::MurmurRPC::Event)
29
+ #
30
+ # Servers
31
+ #
32
+ #
33
+ # ServerCreate creates a new virtual server. The returned server object
34
+ # contains the newly created server's ID.
35
+ rpc :ServerCreate, ::MurmurRPC::Void, ::MurmurRPC::Server
36
+ # ServerQuery returns a list of servers that match the given query.
37
+ rpc :ServerQuery, ::MurmurRPC::Server::Query, ::MurmurRPC::Server::List
38
+ # ServerGet returns information about the given server.
39
+ rpc :ServerGet, ::MurmurRPC::Server, ::MurmurRPC::Server
40
+ # ServerStart starts the given stopped server.
41
+ rpc :ServerStart, ::MurmurRPC::Server, ::MurmurRPC::Void
42
+ # ServerStop stops the given virtual server.
43
+ rpc :ServerStop, ::MurmurRPC::Server, ::MurmurRPC::Void
44
+ # ServerRemove removes the given virtual server and its configuration.
45
+ rpc :ServerRemove, ::MurmurRPC::Server, ::MurmurRPC::Void
46
+ # ServerEvents returns a stream of events that happen on the given server.
47
+ rpc :ServerEvents, ::MurmurRPC::Server, stream(::MurmurRPC::Server::Event)
48
+ #
49
+ # ContextActions
50
+ #
51
+ #
52
+ # ContextActionAdd adds a context action to the given user's client. The
53
+ # following ContextAction fields must be set:
54
+ # context, action, text, and user.
55
+ #
56
+ # Added context actions are valid until:
57
+ # - The context action is removed with ContextActionRemove, or
58
+ # - The user disconnects from the server, or
59
+ # - The server stops.
60
+ rpc :ContextActionAdd, ::MurmurRPC::ContextAction, ::MurmurRPC::Void
61
+ # ContextActionRemove removes a context action from the given user's client.
62
+ # The following ContextAction must be set:
63
+ # action
64
+ # If no user is given, the context action is removed from all users.
65
+ rpc :ContextActionRemove, ::MurmurRPC::ContextAction, ::MurmurRPC::Void
66
+ # ContextActionEvents returns a stream of context action events that are
67
+ # triggered by users.
68
+ rpc :ContextActionEvents, ::MurmurRPC::ContextAction, stream(::MurmurRPC::ContextAction)
69
+ #
70
+ # TextMessage
71
+ #
72
+ #
73
+ # TextMessageSend sends the given TextMessage to the server.
74
+ #
75
+ # If no users, channels, or trees are added to the TextMessage, the message
76
+ # will be broadcast the entire server. Otherwise, the message will be
77
+ # targeted to the specified users, channels, and trees.
78
+ rpc :TextMessageSend, ::MurmurRPC::TextMessage, ::MurmurRPC::Void
79
+ # TextMessageFilter filters text messages on a given server.
80
+ # TextMessageFilter filters text messages for a given server.
81
+ #
82
+ # When a filter stream is active, text messages sent from users to the
83
+ # server are sent over the stream. The RPC client then sends a message back
84
+ # on the same stream, containing an action: whether the message should be
85
+ # accepted, rejected, or dropped.
86
+ #
87
+ # To activate the filter stream, an initial TextMessage.Filter message must
88
+ # be sent that contains the server on which the filter will be active.
89
+ rpc :TextMessageFilter, stream(::MurmurRPC::TextMessage::Filter), stream(::MurmurRPC::TextMessage::Filter)
90
+ #
91
+ # Logs
92
+ #
93
+ #
94
+ # LogQuery returns a list of log entries from the given server.
95
+ #
96
+ # To get the total number of log entries, omit min and/or max from the
97
+ # query.
98
+ rpc :LogQuery, ::MurmurRPC::Log::Query, ::MurmurRPC::Log::List
99
+ #
100
+ # Config
101
+ #
102
+ #
103
+ # ConfigGet returns the explicitly set configuration for the given server.
104
+ rpc :ConfigGet, ::MurmurRPC::Server, ::MurmurRPC::Config
105
+ # ConfigGetField returns the configuration value for the given key.
106
+ rpc :ConfigGetField, ::MurmurRPC::Config::Field, ::MurmurRPC::Config::Field
107
+ # ConfigSetField sets the configuration value to the given value.
108
+ rpc :ConfigSetField, ::MurmurRPC::Config::Field, ::MurmurRPC::Void
109
+ # ConfigGetDefault returns the default server configuration.
110
+ rpc :ConfigGetDefault, ::MurmurRPC::Void, ::MurmurRPC::Config
111
+ #
112
+ # Channels
113
+ #
114
+ #
115
+ # ChannelQuery returns a list of channels that match the given query.
116
+ rpc :ChannelQuery, ::MurmurRPC::Channel::Query, ::MurmurRPC::Channel::List
117
+ # ChannelGet returns the channel with the given ID.
118
+ rpc :ChannelGet, ::MurmurRPC::Channel, ::MurmurRPC::Channel
119
+ # ChannelAdd adds the channel to the given server. The parent and name of
120
+ # the channel must be set.
121
+ rpc :ChannelAdd, ::MurmurRPC::Channel, ::MurmurRPC::Channel
122
+ # ChannelRemove removes the given channel from the server.
123
+ rpc :ChannelRemove, ::MurmurRPC::Channel, ::MurmurRPC::Void
124
+ # ChannelUpdate updates the given channel's attributes. Only the fields that
125
+ # are set will be updated.
126
+ rpc :ChannelUpdate, ::MurmurRPC::Channel, ::MurmurRPC::Channel
127
+ #
128
+ # Users
129
+ #
130
+ #
131
+ # UserQuery returns a list of connected users who match the given query.
132
+ rpc :UserQuery, ::MurmurRPC::User::Query, ::MurmurRPC::User::List
133
+ # UserGet returns information on the connected user, given by the user's
134
+ # session or name.
135
+ rpc :UserGet, ::MurmurRPC::User, ::MurmurRPC::User
136
+ # UserUpdate changes the given user's state. Only the following fields can
137
+ # be changed:
138
+ # name, mute, deaf, suppress, priority_speaker, channel, comment.
139
+ rpc :UserUpdate, ::MurmurRPC::User, ::MurmurRPC::User
140
+ # UserKick kicks the user from the server.
141
+ rpc :UserKick, ::MurmurRPC::User::Kick, ::MurmurRPC::Void
142
+ #
143
+ # Tree
144
+ #
145
+ #
146
+ # TreeQuery returns a representation of the given server's channel/user
147
+ # tree.
148
+ rpc :TreeQuery, ::MurmurRPC::Tree::Query, ::MurmurRPC::Tree
149
+ #
150
+ # Bans
151
+ #
152
+ #
153
+ # BansGet returns a list of bans for the given server.
154
+ rpc :BansGet, ::MurmurRPC::Ban::Query, ::MurmurRPC::Ban::List
155
+ # BansSet replaces the server's ban list with the given list.
156
+ rpc :BansSet, ::MurmurRPC::Ban::List, ::MurmurRPC::Void
157
+ #
158
+ # ACL
159
+ #
160
+ #
161
+ # ACLGet returns the ACL for the given channel.
162
+ rpc :ACLGet, ::MurmurRPC::Channel, ::MurmurRPC::ACL::List
163
+ # ACLSet overrides the ACL of the given channel to what is provided.
164
+ rpc :ACLSet, ::MurmurRPC::ACL::List, ::MurmurRPC::Void
165
+ # ACLGetEffectivePermissions returns the effective permissions for the given
166
+ # user in the given channel.
167
+ rpc :ACLGetEffectivePermissions, ::MurmurRPC::ACL::Query, ::MurmurRPC::ACL
168
+ # ACLAddTemporaryGroup adds a user to a temporary group.
169
+ rpc :ACLAddTemporaryGroup, ::MurmurRPC::ACL::TemporaryGroup, ::MurmurRPC::Void
170
+ # ACLRemoveTemporaryGroup removes a user from a temporary group.
171
+ rpc :ACLRemoveTemporaryGroup, ::MurmurRPC::ACL::TemporaryGroup, ::MurmurRPC::Void
172
+ #
173
+ # Authenticator
174
+ #
175
+ #
176
+ # AuthenticatorStream opens an authentication stream to the server.
177
+ #
178
+ # There can only be one RPC client with an open Stream. If a new
179
+ # authenticator connects, the open connected will be closed.
180
+ rpc :AuthenticatorStream, stream(::MurmurRPC::Authenticator::Response), stream(::MurmurRPC::Authenticator::Request)
181
+ #
182
+ # Database
183
+ #
184
+ #
185
+ # DatabaseUserQuery returns a list of registered users who match given
186
+ # query.
187
+ rpc :DatabaseUserQuery, ::MurmurRPC::DatabaseUser::Query, ::MurmurRPC::DatabaseUser::List
188
+ # DatabaseUserGet returns the database user with the given ID.
189
+ rpc :DatabaseUserGet, ::MurmurRPC::DatabaseUser, ::MurmurRPC::DatabaseUser
190
+ # DatabaseUserUpdate updates the given database user.
191
+ rpc :DatabaseUserUpdate, ::MurmurRPC::DatabaseUser, ::MurmurRPC::Void
192
+ # DatabaseUserRegister registers a user with the given information on the
193
+ # server. The returned DatabaseUser will contain the newly registered user's
194
+ # ID.
195
+ rpc :DatabaseUserRegister, ::MurmurRPC::DatabaseUser, ::MurmurRPC::DatabaseUser
196
+ # DatabaseUserDeregister deregisters the given user.
197
+ rpc :DatabaseUserDeregister, ::MurmurRPC::DatabaseUser, ::MurmurRPC::Void
198
+ # DatabaseUserVerify verifies the that the given user-password pair is
199
+ # correct.
200
+ rpc :DatabaseUserVerify, ::MurmurRPC::DatabaseUser::Verify, ::MurmurRPC::DatabaseUser
201
+ #
202
+ # Audio
203
+ #
204
+ #
205
+ # AddRedirectWhisperGroup add a whisper targets redirection for the given
206
+ # user. Whenever a user whispers to group "source", the whisper will be
207
+ # redirected to group "target".
208
+ rpc :RedirectWhisperGroupAdd, ::MurmurRPC::RedirectWhisperGroup, ::MurmurRPC::Void
209
+ # RemoveRedirectWhisperGroup removes a whisper target redirection for
210
+ # the the given user.
211
+ rpc :RedirectWhisperGroupRemove, ::MurmurRPC::RedirectWhisperGroup, ::MurmurRPC::Void
212
+ end
213
+
214
+ Stub = Service.rpc_stub_class
215
+ end
216
+ #
217
+ # Meta
218
+ #
219
+ end
metadata ADDED
@@ -0,0 +1,47 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: murmur-grpc
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Roman Hargrave
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-11-25 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Provides Murmur gRPC bindings for Ruby
14
+ email: roman@hargrave.info
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/murmur_rpc.rb
20
+ - lib/murmur_rpc/murmur_rpc_pb.rb
21
+ - lib/murmur_rpc/murmur_rpc_services_pb.rb
22
+ homepage: https://github.com/RomanHargrave/murmur-grpc-ruby
23
+ licenses:
24
+ - GPL-3.0
25
+ metadata:
26
+ source_code_uri: https://github.com/RomanHargrave/murmur-grpc-ruby.git
27
+ bug_tracker_uri: https://github.com/RomanHargrave/murmur-grpc-ruby/issues
28
+ post_install_message:
29
+ rdoc_options: []
30
+ require_paths:
31
+ - lib
32
+ required_ruby_version: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ required_rubygems_version: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ requirements: []
43
+ rubygems_version: 3.1.2
44
+ signing_key:
45
+ specification_version: 4
46
+ summary: Murmur gRPC bindings for Ruby
47
+ test_files: []