@latticexyz/services 2.0.0-snapshot-test-32d38619 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -241
- package/dist/faucet.d.ts +369 -0
- package/dist/faucet.js.map +1 -1
- package/package.json +5 -25
- package/protobuf/ts/faucet/faucet.ts +19 -19
- package/protobuf/ts/index.ts +0 -3
- package/ts/faucet/createFaucetService.ts +1 -1
- package/README.v1.md +0 -119
- package/bin/faucet +0 -0
- package/bin/mode +0 -0
- package/dist/ecs-relay.js +0 -683
- package/dist/ecs-relay.js.map +0 -1
- package/dist/ecs-snapshot.js +0 -810
- package/dist/ecs-snapshot.js.map +0 -1
- package/dist/ecs-stream.js +0 -391
- package/dist/ecs-stream.js.map +0 -1
- package/dist/mode.js +0 -1481
- package/dist/mode.js.map +0 -1
- package/protobuf/go/ecs-relay/ecs-relay.pb.go +0 -971
- package/protobuf/go/ecs-relay/ecs-relay_grpc.pb.go +0 -545
- package/protobuf/go/ecs-snapshot/ecs-snapshot.pb.go +0 -1124
- package/protobuf/go/ecs-snapshot/ecs-snapshot_grpc.pb.go +0 -502
- package/protobuf/go/ecs-stream/ecs-stream.pb.go +0 -525
- package/protobuf/go/ecs-stream/ecs-stream_grpc.pb.go +0 -138
- package/protobuf/go/faucet/faucet.pb.go +0 -1133
- package/protobuf/go/faucet/faucet_grpc.pb.go +0 -370
- package/protobuf/go/mode/mode.pb.go +0 -1772
- package/protobuf/go/mode/mode_grpc.pb.go +0 -283
- package/protobuf/ts/ecs-relay/ecs-relay.ts +0 -889
- package/protobuf/ts/ecs-snapshot/ecs-snapshot.ts +0 -1078
- package/protobuf/ts/ecs-stream/ecs-stream.ts +0 -508
- package/protobuf/ts/mode/google/protobuf/any.ts +0 -191
- package/protobuf/ts/mode/mode.ts +0 -1875
@@ -1,971 +0,0 @@
|
|
1
|
-
// Code generated by protoc-gen-go. DO NOT EDIT.
|
2
|
-
// versions:
|
3
|
-
// protoc-gen-go v1.30.0
|
4
|
-
// protoc v3.21.3
|
5
|
-
// source: proto/ecs-relay.proto
|
6
|
-
|
7
|
-
package ecs_relay
|
8
|
-
|
9
|
-
import (
|
10
|
-
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
11
|
-
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
12
|
-
reflect "reflect"
|
13
|
-
sync "sync"
|
14
|
-
)
|
15
|
-
|
16
|
-
const (
|
17
|
-
// Verify that this generated code is sufficiently up-to-date.
|
18
|
-
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
19
|
-
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
20
|
-
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
21
|
-
)
|
22
|
-
|
23
|
-
// Identifies a client connecting to Relay Service.
|
24
|
-
type Identity struct {
|
25
|
-
state protoimpl.MessageState
|
26
|
-
sizeCache protoimpl.SizeCache
|
27
|
-
unknownFields protoimpl.UnknownFields
|
28
|
-
|
29
|
-
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
30
|
-
}
|
31
|
-
|
32
|
-
func (x *Identity) Reset() {
|
33
|
-
*x = Identity{}
|
34
|
-
if protoimpl.UnsafeEnabled {
|
35
|
-
mi := &file_proto_ecs_relay_proto_msgTypes[0]
|
36
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
37
|
-
ms.StoreMessageInfo(mi)
|
38
|
-
}
|
39
|
-
}
|
40
|
-
|
41
|
-
func (x *Identity) String() string {
|
42
|
-
return protoimpl.X.MessageStringOf(x)
|
43
|
-
}
|
44
|
-
|
45
|
-
func (*Identity) ProtoMessage() {}
|
46
|
-
|
47
|
-
func (x *Identity) ProtoReflect() protoreflect.Message {
|
48
|
-
mi := &file_proto_ecs_relay_proto_msgTypes[0]
|
49
|
-
if protoimpl.UnsafeEnabled && x != nil {
|
50
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
51
|
-
if ms.LoadMessageInfo() == nil {
|
52
|
-
ms.StoreMessageInfo(mi)
|
53
|
-
}
|
54
|
-
return ms
|
55
|
-
}
|
56
|
-
return mi.MessageOf(x)
|
57
|
-
}
|
58
|
-
|
59
|
-
// Deprecated: Use Identity.ProtoReflect.Descriptor instead.
|
60
|
-
func (*Identity) Descriptor() ([]byte, []int) {
|
61
|
-
return file_proto_ecs_relay_proto_rawDescGZIP(), []int{0}
|
62
|
-
}
|
63
|
-
|
64
|
-
func (x *Identity) GetName() string {
|
65
|
-
if x != nil {
|
66
|
-
return x.Name
|
67
|
-
}
|
68
|
-
return ""
|
69
|
-
}
|
70
|
-
|
71
|
-
// Signature that a client must provide to prove ownership of identity.
|
72
|
-
type Signature struct {
|
73
|
-
state protoimpl.MessageState
|
74
|
-
sizeCache protoimpl.SizeCache
|
75
|
-
unknownFields protoimpl.UnknownFields
|
76
|
-
|
77
|
-
Signature string `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
|
78
|
-
}
|
79
|
-
|
80
|
-
func (x *Signature) Reset() {
|
81
|
-
*x = Signature{}
|
82
|
-
if protoimpl.UnsafeEnabled {
|
83
|
-
mi := &file_proto_ecs_relay_proto_msgTypes[1]
|
84
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
85
|
-
ms.StoreMessageInfo(mi)
|
86
|
-
}
|
87
|
-
}
|
88
|
-
|
89
|
-
func (x *Signature) String() string {
|
90
|
-
return protoimpl.X.MessageStringOf(x)
|
91
|
-
}
|
92
|
-
|
93
|
-
func (*Signature) ProtoMessage() {}
|
94
|
-
|
95
|
-
func (x *Signature) ProtoReflect() protoreflect.Message {
|
96
|
-
mi := &file_proto_ecs_relay_proto_msgTypes[1]
|
97
|
-
if protoimpl.UnsafeEnabled && x != nil {
|
98
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
99
|
-
if ms.LoadMessageInfo() == nil {
|
100
|
-
ms.StoreMessageInfo(mi)
|
101
|
-
}
|
102
|
-
return ms
|
103
|
-
}
|
104
|
-
return mi.MessageOf(x)
|
105
|
-
}
|
106
|
-
|
107
|
-
// Deprecated: Use Signature.ProtoReflect.Descriptor instead.
|
108
|
-
func (*Signature) Descriptor() ([]byte, []int) {
|
109
|
-
return file_proto_ecs_relay_proto_rawDescGZIP(), []int{1}
|
110
|
-
}
|
111
|
-
|
112
|
-
func (x *Signature) GetSignature() string {
|
113
|
-
if x != nil {
|
114
|
-
return x.Signature
|
115
|
-
}
|
116
|
-
return ""
|
117
|
-
}
|
118
|
-
|
119
|
-
type Message struct {
|
120
|
-
state protoimpl.MessageState
|
121
|
-
sizeCache protoimpl.SizeCache
|
122
|
-
unknownFields protoimpl.UnknownFields
|
123
|
-
|
124
|
-
Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
|
125
|
-
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
|
126
|
-
Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
|
127
|
-
Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
128
|
-
Signature string `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
|
129
|
-
}
|
130
|
-
|
131
|
-
func (x *Message) Reset() {
|
132
|
-
*x = Message{}
|
133
|
-
if protoimpl.UnsafeEnabled {
|
134
|
-
mi := &file_proto_ecs_relay_proto_msgTypes[2]
|
135
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
136
|
-
ms.StoreMessageInfo(mi)
|
137
|
-
}
|
138
|
-
}
|
139
|
-
|
140
|
-
func (x *Message) String() string {
|
141
|
-
return protoimpl.X.MessageStringOf(x)
|
142
|
-
}
|
143
|
-
|
144
|
-
func (*Message) ProtoMessage() {}
|
145
|
-
|
146
|
-
func (x *Message) ProtoReflect() protoreflect.Message {
|
147
|
-
mi := &file_proto_ecs_relay_proto_msgTypes[2]
|
148
|
-
if protoimpl.UnsafeEnabled && x != nil {
|
149
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
150
|
-
if ms.LoadMessageInfo() == nil {
|
151
|
-
ms.StoreMessageInfo(mi)
|
152
|
-
}
|
153
|
-
return ms
|
154
|
-
}
|
155
|
-
return mi.MessageOf(x)
|
156
|
-
}
|
157
|
-
|
158
|
-
// Deprecated: Use Message.ProtoReflect.Descriptor instead.
|
159
|
-
func (*Message) Descriptor() ([]byte, []int) {
|
160
|
-
return file_proto_ecs_relay_proto_rawDescGZIP(), []int{2}
|
161
|
-
}
|
162
|
-
|
163
|
-
func (x *Message) GetVersion() uint32 {
|
164
|
-
if x != nil {
|
165
|
-
return x.Version
|
166
|
-
}
|
167
|
-
return 0
|
168
|
-
}
|
169
|
-
|
170
|
-
func (x *Message) GetId() string {
|
171
|
-
if x != nil {
|
172
|
-
return x.Id
|
173
|
-
}
|
174
|
-
return ""
|
175
|
-
}
|
176
|
-
|
177
|
-
func (x *Message) GetData() []byte {
|
178
|
-
if x != nil {
|
179
|
-
return x.Data
|
180
|
-
}
|
181
|
-
return nil
|
182
|
-
}
|
183
|
-
|
184
|
-
func (x *Message) GetTimestamp() int64 {
|
185
|
-
if x != nil {
|
186
|
-
return x.Timestamp
|
187
|
-
}
|
188
|
-
return 0
|
189
|
-
}
|
190
|
-
|
191
|
-
func (x *Message) GetSignature() string {
|
192
|
-
if x != nil {
|
193
|
-
return x.Signature
|
194
|
-
}
|
195
|
-
return ""
|
196
|
-
}
|
197
|
-
|
198
|
-
type SubscriptionRequest struct {
|
199
|
-
state protoimpl.MessageState
|
200
|
-
sizeCache protoimpl.SizeCache
|
201
|
-
unknownFields protoimpl.UnknownFields
|
202
|
-
|
203
|
-
Signature *Signature `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
|
204
|
-
Subscription *Subscription `protobuf:"bytes,2,opt,name=subscription,proto3" json:"subscription,omitempty"`
|
205
|
-
}
|
206
|
-
|
207
|
-
func (x *SubscriptionRequest) Reset() {
|
208
|
-
*x = SubscriptionRequest{}
|
209
|
-
if protoimpl.UnsafeEnabled {
|
210
|
-
mi := &file_proto_ecs_relay_proto_msgTypes[3]
|
211
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
212
|
-
ms.StoreMessageInfo(mi)
|
213
|
-
}
|
214
|
-
}
|
215
|
-
|
216
|
-
func (x *SubscriptionRequest) String() string {
|
217
|
-
return protoimpl.X.MessageStringOf(x)
|
218
|
-
}
|
219
|
-
|
220
|
-
func (*SubscriptionRequest) ProtoMessage() {}
|
221
|
-
|
222
|
-
func (x *SubscriptionRequest) ProtoReflect() protoreflect.Message {
|
223
|
-
mi := &file_proto_ecs_relay_proto_msgTypes[3]
|
224
|
-
if protoimpl.UnsafeEnabled && x != nil {
|
225
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
226
|
-
if ms.LoadMessageInfo() == nil {
|
227
|
-
ms.StoreMessageInfo(mi)
|
228
|
-
}
|
229
|
-
return ms
|
230
|
-
}
|
231
|
-
return mi.MessageOf(x)
|
232
|
-
}
|
233
|
-
|
234
|
-
// Deprecated: Use SubscriptionRequest.ProtoReflect.Descriptor instead.
|
235
|
-
func (*SubscriptionRequest) Descriptor() ([]byte, []int) {
|
236
|
-
return file_proto_ecs_relay_proto_rawDescGZIP(), []int{3}
|
237
|
-
}
|
238
|
-
|
239
|
-
func (x *SubscriptionRequest) GetSignature() *Signature {
|
240
|
-
if x != nil {
|
241
|
-
return x.Signature
|
242
|
-
}
|
243
|
-
return nil
|
244
|
-
}
|
245
|
-
|
246
|
-
func (x *SubscriptionRequest) GetSubscription() *Subscription {
|
247
|
-
if x != nil {
|
248
|
-
return x.Subscription
|
249
|
-
}
|
250
|
-
return nil
|
251
|
-
}
|
252
|
-
|
253
|
-
type Subscription struct {
|
254
|
-
state protoimpl.MessageState
|
255
|
-
sizeCache protoimpl.SizeCache
|
256
|
-
unknownFields protoimpl.UnknownFields
|
257
|
-
|
258
|
-
Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
|
259
|
-
}
|
260
|
-
|
261
|
-
func (x *Subscription) Reset() {
|
262
|
-
*x = Subscription{}
|
263
|
-
if protoimpl.UnsafeEnabled {
|
264
|
-
mi := &file_proto_ecs_relay_proto_msgTypes[4]
|
265
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
266
|
-
ms.StoreMessageInfo(mi)
|
267
|
-
}
|
268
|
-
}
|
269
|
-
|
270
|
-
func (x *Subscription) String() string {
|
271
|
-
return protoimpl.X.MessageStringOf(x)
|
272
|
-
}
|
273
|
-
|
274
|
-
func (*Subscription) ProtoMessage() {}
|
275
|
-
|
276
|
-
func (x *Subscription) ProtoReflect() protoreflect.Message {
|
277
|
-
mi := &file_proto_ecs_relay_proto_msgTypes[4]
|
278
|
-
if protoimpl.UnsafeEnabled && x != nil {
|
279
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
280
|
-
if ms.LoadMessageInfo() == nil {
|
281
|
-
ms.StoreMessageInfo(mi)
|
282
|
-
}
|
283
|
-
return ms
|
284
|
-
}
|
285
|
-
return mi.MessageOf(x)
|
286
|
-
}
|
287
|
-
|
288
|
-
// Deprecated: Use Subscription.ProtoReflect.Descriptor instead.
|
289
|
-
func (*Subscription) Descriptor() ([]byte, []int) {
|
290
|
-
return file_proto_ecs_relay_proto_rawDescGZIP(), []int{4}
|
291
|
-
}
|
292
|
-
|
293
|
-
func (x *Subscription) GetLabel() string {
|
294
|
-
if x != nil {
|
295
|
-
return x.Label
|
296
|
-
}
|
297
|
-
return ""
|
298
|
-
}
|
299
|
-
|
300
|
-
type PushRequest struct {
|
301
|
-
state protoimpl.MessageState
|
302
|
-
sizeCache protoimpl.SizeCache
|
303
|
-
unknownFields protoimpl.UnknownFields
|
304
|
-
|
305
|
-
Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
|
306
|
-
Message *Message `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
307
|
-
}
|
308
|
-
|
309
|
-
func (x *PushRequest) Reset() {
|
310
|
-
*x = PushRequest{}
|
311
|
-
if protoimpl.UnsafeEnabled {
|
312
|
-
mi := &file_proto_ecs_relay_proto_msgTypes[5]
|
313
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
314
|
-
ms.StoreMessageInfo(mi)
|
315
|
-
}
|
316
|
-
}
|
317
|
-
|
318
|
-
func (x *PushRequest) String() string {
|
319
|
-
return protoimpl.X.MessageStringOf(x)
|
320
|
-
}
|
321
|
-
|
322
|
-
func (*PushRequest) ProtoMessage() {}
|
323
|
-
|
324
|
-
func (x *PushRequest) ProtoReflect() protoreflect.Message {
|
325
|
-
mi := &file_proto_ecs_relay_proto_msgTypes[5]
|
326
|
-
if protoimpl.UnsafeEnabled && x != nil {
|
327
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
328
|
-
if ms.LoadMessageInfo() == nil {
|
329
|
-
ms.StoreMessageInfo(mi)
|
330
|
-
}
|
331
|
-
return ms
|
332
|
-
}
|
333
|
-
return mi.MessageOf(x)
|
334
|
-
}
|
335
|
-
|
336
|
-
// Deprecated: Use PushRequest.ProtoReflect.Descriptor instead.
|
337
|
-
func (*PushRequest) Descriptor() ([]byte, []int) {
|
338
|
-
return file_proto_ecs_relay_proto_rawDescGZIP(), []int{5}
|
339
|
-
}
|
340
|
-
|
341
|
-
func (x *PushRequest) GetLabel() string {
|
342
|
-
if x != nil {
|
343
|
-
return x.Label
|
344
|
-
}
|
345
|
-
return ""
|
346
|
-
}
|
347
|
-
|
348
|
-
func (x *PushRequest) GetMessage() *Message {
|
349
|
-
if x != nil {
|
350
|
-
return x.Message
|
351
|
-
}
|
352
|
-
return nil
|
353
|
-
}
|
354
|
-
|
355
|
-
type PushManyRequest struct {
|
356
|
-
state protoimpl.MessageState
|
357
|
-
sizeCache protoimpl.SizeCache
|
358
|
-
unknownFields protoimpl.UnknownFields
|
359
|
-
|
360
|
-
Signature *Signature `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
|
361
|
-
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
|
362
|
-
Messages []*Message `protobuf:"bytes,3,rep,name=messages,proto3" json:"messages,omitempty"`
|
363
|
-
}
|
364
|
-
|
365
|
-
func (x *PushManyRequest) Reset() {
|
366
|
-
*x = PushManyRequest{}
|
367
|
-
if protoimpl.UnsafeEnabled {
|
368
|
-
mi := &file_proto_ecs_relay_proto_msgTypes[6]
|
369
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
370
|
-
ms.StoreMessageInfo(mi)
|
371
|
-
}
|
372
|
-
}
|
373
|
-
|
374
|
-
func (x *PushManyRequest) String() string {
|
375
|
-
return protoimpl.X.MessageStringOf(x)
|
376
|
-
}
|
377
|
-
|
378
|
-
func (*PushManyRequest) ProtoMessage() {}
|
379
|
-
|
380
|
-
func (x *PushManyRequest) ProtoReflect() protoreflect.Message {
|
381
|
-
mi := &file_proto_ecs_relay_proto_msgTypes[6]
|
382
|
-
if protoimpl.UnsafeEnabled && x != nil {
|
383
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
384
|
-
if ms.LoadMessageInfo() == nil {
|
385
|
-
ms.StoreMessageInfo(mi)
|
386
|
-
}
|
387
|
-
return ms
|
388
|
-
}
|
389
|
-
return mi.MessageOf(x)
|
390
|
-
}
|
391
|
-
|
392
|
-
// Deprecated: Use PushManyRequest.ProtoReflect.Descriptor instead.
|
393
|
-
func (*PushManyRequest) Descriptor() ([]byte, []int) {
|
394
|
-
return file_proto_ecs_relay_proto_rawDescGZIP(), []int{6}
|
395
|
-
}
|
396
|
-
|
397
|
-
func (x *PushManyRequest) GetSignature() *Signature {
|
398
|
-
if x != nil {
|
399
|
-
return x.Signature
|
400
|
-
}
|
401
|
-
return nil
|
402
|
-
}
|
403
|
-
|
404
|
-
func (x *PushManyRequest) GetLabel() string {
|
405
|
-
if x != nil {
|
406
|
-
return x.Label
|
407
|
-
}
|
408
|
-
return ""
|
409
|
-
}
|
410
|
-
|
411
|
-
func (x *PushManyRequest) GetMessages() []*Message {
|
412
|
-
if x != nil {
|
413
|
-
return x.Messages
|
414
|
-
}
|
415
|
-
return nil
|
416
|
-
}
|
417
|
-
|
418
|
-
type PushResponse struct {
|
419
|
-
state protoimpl.MessageState
|
420
|
-
sizeCache protoimpl.SizeCache
|
421
|
-
unknownFields protoimpl.UnknownFields
|
422
|
-
}
|
423
|
-
|
424
|
-
func (x *PushResponse) Reset() {
|
425
|
-
*x = PushResponse{}
|
426
|
-
if protoimpl.UnsafeEnabled {
|
427
|
-
mi := &file_proto_ecs_relay_proto_msgTypes[7]
|
428
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
429
|
-
ms.StoreMessageInfo(mi)
|
430
|
-
}
|
431
|
-
}
|
432
|
-
|
433
|
-
func (x *PushResponse) String() string {
|
434
|
-
return protoimpl.X.MessageStringOf(x)
|
435
|
-
}
|
436
|
-
|
437
|
-
func (*PushResponse) ProtoMessage() {}
|
438
|
-
|
439
|
-
func (x *PushResponse) ProtoReflect() protoreflect.Message {
|
440
|
-
mi := &file_proto_ecs_relay_proto_msgTypes[7]
|
441
|
-
if protoimpl.UnsafeEnabled && x != nil {
|
442
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
443
|
-
if ms.LoadMessageInfo() == nil {
|
444
|
-
ms.StoreMessageInfo(mi)
|
445
|
-
}
|
446
|
-
return ms
|
447
|
-
}
|
448
|
-
return mi.MessageOf(x)
|
449
|
-
}
|
450
|
-
|
451
|
-
// Deprecated: Use PushResponse.ProtoReflect.Descriptor instead.
|
452
|
-
func (*PushResponse) Descriptor() ([]byte, []int) {
|
453
|
-
return file_proto_ecs_relay_proto_rawDescGZIP(), []int{7}
|
454
|
-
}
|
455
|
-
|
456
|
-
type CountIdentitiesRequest struct {
|
457
|
-
state protoimpl.MessageState
|
458
|
-
sizeCache protoimpl.SizeCache
|
459
|
-
unknownFields protoimpl.UnknownFields
|
460
|
-
}
|
461
|
-
|
462
|
-
func (x *CountIdentitiesRequest) Reset() {
|
463
|
-
*x = CountIdentitiesRequest{}
|
464
|
-
if protoimpl.UnsafeEnabled {
|
465
|
-
mi := &file_proto_ecs_relay_proto_msgTypes[8]
|
466
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
467
|
-
ms.StoreMessageInfo(mi)
|
468
|
-
}
|
469
|
-
}
|
470
|
-
|
471
|
-
func (x *CountIdentitiesRequest) String() string {
|
472
|
-
return protoimpl.X.MessageStringOf(x)
|
473
|
-
}
|
474
|
-
|
475
|
-
func (*CountIdentitiesRequest) ProtoMessage() {}
|
476
|
-
|
477
|
-
func (x *CountIdentitiesRequest) ProtoReflect() protoreflect.Message {
|
478
|
-
mi := &file_proto_ecs_relay_proto_msgTypes[8]
|
479
|
-
if protoimpl.UnsafeEnabled && x != nil {
|
480
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
481
|
-
if ms.LoadMessageInfo() == nil {
|
482
|
-
ms.StoreMessageInfo(mi)
|
483
|
-
}
|
484
|
-
return ms
|
485
|
-
}
|
486
|
-
return mi.MessageOf(x)
|
487
|
-
}
|
488
|
-
|
489
|
-
// Deprecated: Use CountIdentitiesRequest.ProtoReflect.Descriptor instead.
|
490
|
-
func (*CountIdentitiesRequest) Descriptor() ([]byte, []int) {
|
491
|
-
return file_proto_ecs_relay_proto_rawDescGZIP(), []int{8}
|
492
|
-
}
|
493
|
-
|
494
|
-
type CountIdentitiesResponse struct {
|
495
|
-
state protoimpl.MessageState
|
496
|
-
sizeCache protoimpl.SizeCache
|
497
|
-
unknownFields protoimpl.UnknownFields
|
498
|
-
|
499
|
-
Count uint32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
|
500
|
-
}
|
501
|
-
|
502
|
-
func (x *CountIdentitiesResponse) Reset() {
|
503
|
-
*x = CountIdentitiesResponse{}
|
504
|
-
if protoimpl.UnsafeEnabled {
|
505
|
-
mi := &file_proto_ecs_relay_proto_msgTypes[9]
|
506
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
507
|
-
ms.StoreMessageInfo(mi)
|
508
|
-
}
|
509
|
-
}
|
510
|
-
|
511
|
-
func (x *CountIdentitiesResponse) String() string {
|
512
|
-
return protoimpl.X.MessageStringOf(x)
|
513
|
-
}
|
514
|
-
|
515
|
-
func (*CountIdentitiesResponse) ProtoMessage() {}
|
516
|
-
|
517
|
-
func (x *CountIdentitiesResponse) ProtoReflect() protoreflect.Message {
|
518
|
-
mi := &file_proto_ecs_relay_proto_msgTypes[9]
|
519
|
-
if protoimpl.UnsafeEnabled && x != nil {
|
520
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
521
|
-
if ms.LoadMessageInfo() == nil {
|
522
|
-
ms.StoreMessageInfo(mi)
|
523
|
-
}
|
524
|
-
return ms
|
525
|
-
}
|
526
|
-
return mi.MessageOf(x)
|
527
|
-
}
|
528
|
-
|
529
|
-
// Deprecated: Use CountIdentitiesResponse.ProtoReflect.Descriptor instead.
|
530
|
-
func (*CountIdentitiesResponse) Descriptor() ([]byte, []int) {
|
531
|
-
return file_proto_ecs_relay_proto_rawDescGZIP(), []int{9}
|
532
|
-
}
|
533
|
-
|
534
|
-
func (x *CountIdentitiesResponse) GetCount() uint32 {
|
535
|
-
if x != nil {
|
536
|
-
return x.Count
|
537
|
-
}
|
538
|
-
return 0
|
539
|
-
}
|
540
|
-
|
541
|
-
type BalanceRequest struct {
|
542
|
-
state protoimpl.MessageState
|
543
|
-
sizeCache protoimpl.SizeCache
|
544
|
-
unknownFields protoimpl.UnknownFields
|
545
|
-
}
|
546
|
-
|
547
|
-
func (x *BalanceRequest) Reset() {
|
548
|
-
*x = BalanceRequest{}
|
549
|
-
if protoimpl.UnsafeEnabled {
|
550
|
-
mi := &file_proto_ecs_relay_proto_msgTypes[10]
|
551
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
552
|
-
ms.StoreMessageInfo(mi)
|
553
|
-
}
|
554
|
-
}
|
555
|
-
|
556
|
-
func (x *BalanceRequest) String() string {
|
557
|
-
return protoimpl.X.MessageStringOf(x)
|
558
|
-
}
|
559
|
-
|
560
|
-
func (*BalanceRequest) ProtoMessage() {}
|
561
|
-
|
562
|
-
func (x *BalanceRequest) ProtoReflect() protoreflect.Message {
|
563
|
-
mi := &file_proto_ecs_relay_proto_msgTypes[10]
|
564
|
-
if protoimpl.UnsafeEnabled && x != nil {
|
565
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
566
|
-
if ms.LoadMessageInfo() == nil {
|
567
|
-
ms.StoreMessageInfo(mi)
|
568
|
-
}
|
569
|
-
return ms
|
570
|
-
}
|
571
|
-
return mi.MessageOf(x)
|
572
|
-
}
|
573
|
-
|
574
|
-
// Deprecated: Use BalanceRequest.ProtoReflect.Descriptor instead.
|
575
|
-
func (*BalanceRequest) Descriptor() ([]byte, []int) {
|
576
|
-
return file_proto_ecs_relay_proto_rawDescGZIP(), []int{10}
|
577
|
-
}
|
578
|
-
|
579
|
-
type BalanceResponse struct {
|
580
|
-
state protoimpl.MessageState
|
581
|
-
sizeCache protoimpl.SizeCache
|
582
|
-
unknownFields protoimpl.UnknownFields
|
583
|
-
|
584
|
-
Wei uint64 `protobuf:"varint,1,opt,name=wei,proto3" json:"wei,omitempty"`
|
585
|
-
Ether float64 `protobuf:"fixed64,2,opt,name=ether,proto3" json:"ether,omitempty"`
|
586
|
-
}
|
587
|
-
|
588
|
-
func (x *BalanceResponse) Reset() {
|
589
|
-
*x = BalanceResponse{}
|
590
|
-
if protoimpl.UnsafeEnabled {
|
591
|
-
mi := &file_proto_ecs_relay_proto_msgTypes[11]
|
592
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
593
|
-
ms.StoreMessageInfo(mi)
|
594
|
-
}
|
595
|
-
}
|
596
|
-
|
597
|
-
func (x *BalanceResponse) String() string {
|
598
|
-
return protoimpl.X.MessageStringOf(x)
|
599
|
-
}
|
600
|
-
|
601
|
-
func (*BalanceResponse) ProtoMessage() {}
|
602
|
-
|
603
|
-
func (x *BalanceResponse) ProtoReflect() protoreflect.Message {
|
604
|
-
mi := &file_proto_ecs_relay_proto_msgTypes[11]
|
605
|
-
if protoimpl.UnsafeEnabled && x != nil {
|
606
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
607
|
-
if ms.LoadMessageInfo() == nil {
|
608
|
-
ms.StoreMessageInfo(mi)
|
609
|
-
}
|
610
|
-
return ms
|
611
|
-
}
|
612
|
-
return mi.MessageOf(x)
|
613
|
-
}
|
614
|
-
|
615
|
-
// Deprecated: Use BalanceResponse.ProtoReflect.Descriptor instead.
|
616
|
-
func (*BalanceResponse) Descriptor() ([]byte, []int) {
|
617
|
-
return file_proto_ecs_relay_proto_rawDescGZIP(), []int{11}
|
618
|
-
}
|
619
|
-
|
620
|
-
func (x *BalanceResponse) GetWei() uint64 {
|
621
|
-
if x != nil {
|
622
|
-
return x.Wei
|
623
|
-
}
|
624
|
-
return 0
|
625
|
-
}
|
626
|
-
|
627
|
-
func (x *BalanceResponse) GetEther() float64 {
|
628
|
-
if x != nil {
|
629
|
-
return x.Ether
|
630
|
-
}
|
631
|
-
return 0
|
632
|
-
}
|
633
|
-
|
634
|
-
var File_proto_ecs_relay_proto protoreflect.FileDescriptor
|
635
|
-
|
636
|
-
var file_proto_ecs_relay_proto_rawDesc = []byte{
|
637
|
-
0x0a, 0x15, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x63, 0x73, 0x2d, 0x72, 0x65, 0x6c, 0x61,
|
638
|
-
0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x65, 0x63, 0x73, 0x72, 0x65, 0x6c, 0x61,
|
639
|
-
0x79, 0x22, 0x1e, 0x0a, 0x08, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x12, 0x0a,
|
640
|
-
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
|
641
|
-
0x65, 0x22, 0x29, 0x0a, 0x09, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x1c,
|
642
|
-
0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
643
|
-
0x09, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x83, 0x01, 0x0a,
|
644
|
-
0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73,
|
645
|
-
0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69,
|
646
|
-
0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
|
647
|
-
0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c,
|
648
|
-
0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
|
649
|
-
0x61, 0x6d, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73,
|
650
|
-
0x74, 0x61, 0x6d, 0x70, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72,
|
651
|
-
0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75,
|
652
|
-
0x72, 0x65, 0x22, 0x84, 0x01, 0x0a, 0x13, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
|
653
|
-
0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x09, 0x73, 0x69,
|
654
|
-
0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e,
|
655
|
-
0x65, 0x63, 0x73, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75,
|
656
|
-
0x72, 0x65, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x3a, 0x0a,
|
657
|
-
0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20,
|
658
|
-
0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x65, 0x63, 0x73, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x53,
|
659
|
-
0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x75, 0x62,
|
660
|
-
0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x24, 0x0a, 0x0c, 0x53, 0x75, 0x62,
|
661
|
-
0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x62,
|
662
|
-
0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x22,
|
663
|
-
0x50, 0x0a, 0x0b, 0x50, 0x75, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14,
|
664
|
-
0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c,
|
665
|
-
0x61, 0x62, 0x65, 0x6c, 0x12, 0x2b, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18,
|
666
|
-
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x65, 0x63, 0x73, 0x72, 0x65, 0x6c, 0x61, 0x79,
|
667
|
-
0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
668
|
-
0x65, 0x22, 0x89, 0x01, 0x0a, 0x0f, 0x50, 0x75, 0x73, 0x68, 0x4d, 0x61, 0x6e, 0x79, 0x52, 0x65,
|
669
|
-
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75,
|
670
|
-
0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x65, 0x63, 0x73, 0x72, 0x65,
|
671
|
-
0x6c, 0x61, 0x79, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x09, 0x73,
|
672
|
-
0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65,
|
673
|
-
0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x2d,
|
674
|
-
0x0a, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b,
|
675
|
-
0x32, 0x11, 0x2e, 0x65, 0x63, 0x73, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x4d, 0x65, 0x73, 0x73,
|
676
|
-
0x61, 0x67, 0x65, 0x52, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x22, 0x0e, 0x0a,
|
677
|
-
0x0c, 0x50, 0x75, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x18, 0x0a,
|
678
|
-
0x16, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73,
|
679
|
-
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x2f, 0x0a, 0x17, 0x43, 0x6f, 0x75, 0x6e, 0x74,
|
680
|
-
0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
681
|
-
0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
|
682
|
-
0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x10, 0x0a, 0x0e, 0x42, 0x61, 0x6c, 0x61,
|
683
|
-
0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x39, 0x0a, 0x0f, 0x42, 0x61,
|
684
|
-
0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a,
|
685
|
-
0x03, 0x77, 0x65, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x77, 0x65, 0x69, 0x12,
|
686
|
-
0x14, 0x0a, 0x05, 0x65, 0x74, 0x68, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05,
|
687
|
-
0x65, 0x74, 0x68, 0x65, 0x72, 0x32, 0xfa, 0x05, 0x0a, 0x0f, 0x45, 0x43, 0x53, 0x52, 0x65, 0x6c,
|
688
|
-
0x61, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x39, 0x0a, 0x0c, 0x41, 0x75, 0x74,
|
689
|
-
0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x13, 0x2e, 0x65, 0x63, 0x73, 0x72,
|
690
|
-
0x65, 0x6c, 0x61, 0x79, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x1a, 0x12,
|
691
|
-
0x2e, 0x65, 0x63, 0x73, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,
|
692
|
-
0x74, 0x79, 0x22, 0x00, 0x12, 0x33, 0x0a, 0x06, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x12, 0x13,
|
693
|
-
0x2e, 0x65, 0x63, 0x73, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74,
|
694
|
-
0x75, 0x72, 0x65, 0x1a, 0x12, 0x2e, 0x65, 0x63, 0x73, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x49,
|
695
|
-
0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x00, 0x12, 0x31, 0x0a, 0x04, 0x50, 0x69, 0x6e,
|
696
|
-
0x67, 0x12, 0x13, 0x2e, 0x65, 0x63, 0x73, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x53, 0x69, 0x67,
|
697
|
-
0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x1a, 0x12, 0x2e, 0x65, 0x63, 0x73, 0x72, 0x65, 0x6c, 0x61,
|
698
|
-
0x79, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x00, 0x12, 0x5b, 0x0a, 0x12,
|
699
|
-
0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74,
|
700
|
-
0x65, 0x64, 0x12, 0x20, 0x2e, 0x65, 0x63, 0x73, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x43, 0x6f,
|
701
|
-
0x75, 0x6e, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71,
|
702
|
-
0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x65, 0x63, 0x73, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x2e,
|
703
|
-
0x43, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52,
|
704
|
-
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x0e, 0x43, 0x6f, 0x75,
|
705
|
-
0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x12, 0x20, 0x2e, 0x65, 0x63,
|
706
|
-
0x73, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x65, 0x6e,
|
707
|
-
0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e,
|
708
|
-
0x65, 0x63, 0x73, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64,
|
709
|
-
0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
710
|
-
0x22, 0x00, 0x12, 0x44, 0x0a, 0x09, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x12,
|
711
|
-
0x1d, 0x2e, 0x65, 0x63, 0x73, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63,
|
712
|
-
0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16,
|
713
|
-
0x2e, 0x65, 0x63, 0x73, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72,
|
714
|
-
0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x00, 0x12, 0x46, 0x0a, 0x0b, 0x55, 0x6e, 0x73, 0x75,
|
715
|
-
0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x12, 0x1d, 0x2e, 0x65, 0x63, 0x73, 0x72, 0x65, 0x6c,
|
716
|
-
0x61, 0x79, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52,
|
717
|
-
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x65, 0x63, 0x73, 0x72, 0x65, 0x6c, 0x61,
|
718
|
-
0x79, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x00,
|
719
|
-
0x12, 0x38, 0x0a, 0x0a, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x13,
|
720
|
-
0x2e, 0x65, 0x63, 0x73, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74,
|
721
|
-
0x75, 0x72, 0x65, 0x1a, 0x11, 0x2e, 0x65, 0x63, 0x73, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x4d,
|
722
|
-
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x41, 0x0a, 0x0a, 0x50, 0x75,
|
723
|
-
0x73, 0x68, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x15, 0x2e, 0x65, 0x63, 0x73, 0x72, 0x65,
|
724
|
-
0x6c, 0x61, 0x79, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
725
|
-
0x16, 0x2e, 0x65, 0x63, 0x73, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x52,
|
726
|
-
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x12, 0x37, 0x0a,
|
727
|
-
0x04, 0x50, 0x75, 0x73, 0x68, 0x12, 0x15, 0x2e, 0x65, 0x63, 0x73, 0x72, 0x65, 0x6c, 0x61, 0x79,
|
728
|
-
0x2e, 0x50, 0x75, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x65,
|
729
|
-
0x63, 0x73, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70,
|
730
|
-
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4a, 0x0a, 0x11, 0x4d, 0x69, 0x6e, 0x42, 0x61, 0x6c,
|
731
|
-
0x61, 0x6e, 0x63, 0x65, 0x46, 0x6f, 0x72, 0x50, 0x75, 0x73, 0x68, 0x12, 0x18, 0x2e, 0x65, 0x63,
|
732
|
-
0x73, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65,
|
733
|
-
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x65, 0x63, 0x73, 0x72, 0x65, 0x6c, 0x61, 0x79,
|
734
|
-
0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
735
|
-
0x22, 0x00, 0x42, 0x17, 0x5a, 0x15, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x67,
|
736
|
-
0x6f, 0x2f, 0x65, 0x63, 0x73, 0x2d, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
737
|
-
0x74, 0x6f, 0x33,
|
738
|
-
}
|
739
|
-
|
740
|
-
var (
|
741
|
-
file_proto_ecs_relay_proto_rawDescOnce sync.Once
|
742
|
-
file_proto_ecs_relay_proto_rawDescData = file_proto_ecs_relay_proto_rawDesc
|
743
|
-
)
|
744
|
-
|
745
|
-
func file_proto_ecs_relay_proto_rawDescGZIP() []byte {
|
746
|
-
file_proto_ecs_relay_proto_rawDescOnce.Do(func() {
|
747
|
-
file_proto_ecs_relay_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_ecs_relay_proto_rawDescData)
|
748
|
-
})
|
749
|
-
return file_proto_ecs_relay_proto_rawDescData
|
750
|
-
}
|
751
|
-
|
752
|
-
var file_proto_ecs_relay_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
|
753
|
-
var file_proto_ecs_relay_proto_goTypes = []interface{}{
|
754
|
-
(*Identity)(nil), // 0: ecsrelay.Identity
|
755
|
-
(*Signature)(nil), // 1: ecsrelay.Signature
|
756
|
-
(*Message)(nil), // 2: ecsrelay.Message
|
757
|
-
(*SubscriptionRequest)(nil), // 3: ecsrelay.SubscriptionRequest
|
758
|
-
(*Subscription)(nil), // 4: ecsrelay.Subscription
|
759
|
-
(*PushRequest)(nil), // 5: ecsrelay.PushRequest
|
760
|
-
(*PushManyRequest)(nil), // 6: ecsrelay.PushManyRequest
|
761
|
-
(*PushResponse)(nil), // 7: ecsrelay.PushResponse
|
762
|
-
(*CountIdentitiesRequest)(nil), // 8: ecsrelay.CountIdentitiesRequest
|
763
|
-
(*CountIdentitiesResponse)(nil), // 9: ecsrelay.CountIdentitiesResponse
|
764
|
-
(*BalanceRequest)(nil), // 10: ecsrelay.BalanceRequest
|
765
|
-
(*BalanceResponse)(nil), // 11: ecsrelay.BalanceResponse
|
766
|
-
}
|
767
|
-
var file_proto_ecs_relay_proto_depIdxs = []int32{
|
768
|
-
1, // 0: ecsrelay.SubscriptionRequest.signature:type_name -> ecsrelay.Signature
|
769
|
-
4, // 1: ecsrelay.SubscriptionRequest.subscription:type_name -> ecsrelay.Subscription
|
770
|
-
2, // 2: ecsrelay.PushRequest.message:type_name -> ecsrelay.Message
|
771
|
-
1, // 3: ecsrelay.PushManyRequest.signature:type_name -> ecsrelay.Signature
|
772
|
-
2, // 4: ecsrelay.PushManyRequest.messages:type_name -> ecsrelay.Message
|
773
|
-
1, // 5: ecsrelay.ECSRelayService.Authenticate:input_type -> ecsrelay.Signature
|
774
|
-
1, // 6: ecsrelay.ECSRelayService.Revoke:input_type -> ecsrelay.Signature
|
775
|
-
1, // 7: ecsrelay.ECSRelayService.Ping:input_type -> ecsrelay.Signature
|
776
|
-
8, // 8: ecsrelay.ECSRelayService.CountAuthenticated:input_type -> ecsrelay.CountIdentitiesRequest
|
777
|
-
8, // 9: ecsrelay.ECSRelayService.CountConnected:input_type -> ecsrelay.CountIdentitiesRequest
|
778
|
-
3, // 10: ecsrelay.ECSRelayService.Subscribe:input_type -> ecsrelay.SubscriptionRequest
|
779
|
-
3, // 11: ecsrelay.ECSRelayService.Unsubscribe:input_type -> ecsrelay.SubscriptionRequest
|
780
|
-
1, // 12: ecsrelay.ECSRelayService.OpenStream:input_type -> ecsrelay.Signature
|
781
|
-
5, // 13: ecsrelay.ECSRelayService.PushStream:input_type -> ecsrelay.PushRequest
|
782
|
-
5, // 14: ecsrelay.ECSRelayService.Push:input_type -> ecsrelay.PushRequest
|
783
|
-
10, // 15: ecsrelay.ECSRelayService.MinBalanceForPush:input_type -> ecsrelay.BalanceRequest
|
784
|
-
0, // 16: ecsrelay.ECSRelayService.Authenticate:output_type -> ecsrelay.Identity
|
785
|
-
0, // 17: ecsrelay.ECSRelayService.Revoke:output_type -> ecsrelay.Identity
|
786
|
-
0, // 18: ecsrelay.ECSRelayService.Ping:output_type -> ecsrelay.Identity
|
787
|
-
9, // 19: ecsrelay.ECSRelayService.CountAuthenticated:output_type -> ecsrelay.CountIdentitiesResponse
|
788
|
-
9, // 20: ecsrelay.ECSRelayService.CountConnected:output_type -> ecsrelay.CountIdentitiesResponse
|
789
|
-
4, // 21: ecsrelay.ECSRelayService.Subscribe:output_type -> ecsrelay.Subscription
|
790
|
-
4, // 22: ecsrelay.ECSRelayService.Unsubscribe:output_type -> ecsrelay.Subscription
|
791
|
-
2, // 23: ecsrelay.ECSRelayService.OpenStream:output_type -> ecsrelay.Message
|
792
|
-
7, // 24: ecsrelay.ECSRelayService.PushStream:output_type -> ecsrelay.PushResponse
|
793
|
-
7, // 25: ecsrelay.ECSRelayService.Push:output_type -> ecsrelay.PushResponse
|
794
|
-
11, // 26: ecsrelay.ECSRelayService.MinBalanceForPush:output_type -> ecsrelay.BalanceResponse
|
795
|
-
16, // [16:27] is the sub-list for method output_type
|
796
|
-
5, // [5:16] is the sub-list for method input_type
|
797
|
-
5, // [5:5] is the sub-list for extension type_name
|
798
|
-
5, // [5:5] is the sub-list for extension extendee
|
799
|
-
0, // [0:5] is the sub-list for field type_name
|
800
|
-
}
|
801
|
-
|
802
|
-
func init() { file_proto_ecs_relay_proto_init() }
|
803
|
-
func file_proto_ecs_relay_proto_init() {
|
804
|
-
if File_proto_ecs_relay_proto != nil {
|
805
|
-
return
|
806
|
-
}
|
807
|
-
if !protoimpl.UnsafeEnabled {
|
808
|
-
file_proto_ecs_relay_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
809
|
-
switch v := v.(*Identity); i {
|
810
|
-
case 0:
|
811
|
-
return &v.state
|
812
|
-
case 1:
|
813
|
-
return &v.sizeCache
|
814
|
-
case 2:
|
815
|
-
return &v.unknownFields
|
816
|
-
default:
|
817
|
-
return nil
|
818
|
-
}
|
819
|
-
}
|
820
|
-
file_proto_ecs_relay_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
821
|
-
switch v := v.(*Signature); i {
|
822
|
-
case 0:
|
823
|
-
return &v.state
|
824
|
-
case 1:
|
825
|
-
return &v.sizeCache
|
826
|
-
case 2:
|
827
|
-
return &v.unknownFields
|
828
|
-
default:
|
829
|
-
return nil
|
830
|
-
}
|
831
|
-
}
|
832
|
-
file_proto_ecs_relay_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
833
|
-
switch v := v.(*Message); i {
|
834
|
-
case 0:
|
835
|
-
return &v.state
|
836
|
-
case 1:
|
837
|
-
return &v.sizeCache
|
838
|
-
case 2:
|
839
|
-
return &v.unknownFields
|
840
|
-
default:
|
841
|
-
return nil
|
842
|
-
}
|
843
|
-
}
|
844
|
-
file_proto_ecs_relay_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
845
|
-
switch v := v.(*SubscriptionRequest); i {
|
846
|
-
case 0:
|
847
|
-
return &v.state
|
848
|
-
case 1:
|
849
|
-
return &v.sizeCache
|
850
|
-
case 2:
|
851
|
-
return &v.unknownFields
|
852
|
-
default:
|
853
|
-
return nil
|
854
|
-
}
|
855
|
-
}
|
856
|
-
file_proto_ecs_relay_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
857
|
-
switch v := v.(*Subscription); i {
|
858
|
-
case 0:
|
859
|
-
return &v.state
|
860
|
-
case 1:
|
861
|
-
return &v.sizeCache
|
862
|
-
case 2:
|
863
|
-
return &v.unknownFields
|
864
|
-
default:
|
865
|
-
return nil
|
866
|
-
}
|
867
|
-
}
|
868
|
-
file_proto_ecs_relay_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
869
|
-
switch v := v.(*PushRequest); i {
|
870
|
-
case 0:
|
871
|
-
return &v.state
|
872
|
-
case 1:
|
873
|
-
return &v.sizeCache
|
874
|
-
case 2:
|
875
|
-
return &v.unknownFields
|
876
|
-
default:
|
877
|
-
return nil
|
878
|
-
}
|
879
|
-
}
|
880
|
-
file_proto_ecs_relay_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
881
|
-
switch v := v.(*PushManyRequest); i {
|
882
|
-
case 0:
|
883
|
-
return &v.state
|
884
|
-
case 1:
|
885
|
-
return &v.sizeCache
|
886
|
-
case 2:
|
887
|
-
return &v.unknownFields
|
888
|
-
default:
|
889
|
-
return nil
|
890
|
-
}
|
891
|
-
}
|
892
|
-
file_proto_ecs_relay_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
893
|
-
switch v := v.(*PushResponse); i {
|
894
|
-
case 0:
|
895
|
-
return &v.state
|
896
|
-
case 1:
|
897
|
-
return &v.sizeCache
|
898
|
-
case 2:
|
899
|
-
return &v.unknownFields
|
900
|
-
default:
|
901
|
-
return nil
|
902
|
-
}
|
903
|
-
}
|
904
|
-
file_proto_ecs_relay_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
905
|
-
switch v := v.(*CountIdentitiesRequest); i {
|
906
|
-
case 0:
|
907
|
-
return &v.state
|
908
|
-
case 1:
|
909
|
-
return &v.sizeCache
|
910
|
-
case 2:
|
911
|
-
return &v.unknownFields
|
912
|
-
default:
|
913
|
-
return nil
|
914
|
-
}
|
915
|
-
}
|
916
|
-
file_proto_ecs_relay_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
917
|
-
switch v := v.(*CountIdentitiesResponse); i {
|
918
|
-
case 0:
|
919
|
-
return &v.state
|
920
|
-
case 1:
|
921
|
-
return &v.sizeCache
|
922
|
-
case 2:
|
923
|
-
return &v.unknownFields
|
924
|
-
default:
|
925
|
-
return nil
|
926
|
-
}
|
927
|
-
}
|
928
|
-
file_proto_ecs_relay_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
929
|
-
switch v := v.(*BalanceRequest); i {
|
930
|
-
case 0:
|
931
|
-
return &v.state
|
932
|
-
case 1:
|
933
|
-
return &v.sizeCache
|
934
|
-
case 2:
|
935
|
-
return &v.unknownFields
|
936
|
-
default:
|
937
|
-
return nil
|
938
|
-
}
|
939
|
-
}
|
940
|
-
file_proto_ecs_relay_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
941
|
-
switch v := v.(*BalanceResponse); i {
|
942
|
-
case 0:
|
943
|
-
return &v.state
|
944
|
-
case 1:
|
945
|
-
return &v.sizeCache
|
946
|
-
case 2:
|
947
|
-
return &v.unknownFields
|
948
|
-
default:
|
949
|
-
return nil
|
950
|
-
}
|
951
|
-
}
|
952
|
-
}
|
953
|
-
type x struct{}
|
954
|
-
out := protoimpl.TypeBuilder{
|
955
|
-
File: protoimpl.DescBuilder{
|
956
|
-
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
957
|
-
RawDescriptor: file_proto_ecs_relay_proto_rawDesc,
|
958
|
-
NumEnums: 0,
|
959
|
-
NumMessages: 12,
|
960
|
-
NumExtensions: 0,
|
961
|
-
NumServices: 1,
|
962
|
-
},
|
963
|
-
GoTypes: file_proto_ecs_relay_proto_goTypes,
|
964
|
-
DependencyIndexes: file_proto_ecs_relay_proto_depIdxs,
|
965
|
-
MessageInfos: file_proto_ecs_relay_proto_msgTypes,
|
966
|
-
}.Build()
|
967
|
-
File_proto_ecs_relay_proto = out.File
|
968
|
-
file_proto_ecs_relay_proto_rawDesc = nil
|
969
|
-
file_proto_ecs_relay_proto_goTypes = nil
|
970
|
-
file_proto_ecs_relay_proto_depIdxs = nil
|
971
|
-
}
|