@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.
@@ -1,525 +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-stream.proto
6
-
7
- package ecs_stream
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
- type TxMetadata struct {
24
- state protoimpl.MessageState
25
- sizeCache protoimpl.SizeCache
26
- unknownFields protoimpl.UnknownFields
27
-
28
- To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
29
- Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
30
- Value uint64 `protobuf:"varint,4,opt,name=value,proto3" json:"value,omitempty"`
31
- }
32
-
33
- func (x *TxMetadata) Reset() {
34
- *x = TxMetadata{}
35
- if protoimpl.UnsafeEnabled {
36
- mi := &file_proto_ecs_stream_proto_msgTypes[0]
37
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
38
- ms.StoreMessageInfo(mi)
39
- }
40
- }
41
-
42
- func (x *TxMetadata) String() string {
43
- return protoimpl.X.MessageStringOf(x)
44
- }
45
-
46
- func (*TxMetadata) ProtoMessage() {}
47
-
48
- func (x *TxMetadata) ProtoReflect() protoreflect.Message {
49
- mi := &file_proto_ecs_stream_proto_msgTypes[0]
50
- if protoimpl.UnsafeEnabled && x != nil {
51
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
52
- if ms.LoadMessageInfo() == nil {
53
- ms.StoreMessageInfo(mi)
54
- }
55
- return ms
56
- }
57
- return mi.MessageOf(x)
58
- }
59
-
60
- // Deprecated: Use TxMetadata.ProtoReflect.Descriptor instead.
61
- func (*TxMetadata) Descriptor() ([]byte, []int) {
62
- return file_proto_ecs_stream_proto_rawDescGZIP(), []int{0}
63
- }
64
-
65
- func (x *TxMetadata) GetTo() string {
66
- if x != nil {
67
- return x.To
68
- }
69
- return ""
70
- }
71
-
72
- func (x *TxMetadata) GetData() []byte {
73
- if x != nil {
74
- return x.Data
75
- }
76
- return nil
77
- }
78
-
79
- func (x *TxMetadata) GetValue() uint64 {
80
- if x != nil {
81
- return x.Value
82
- }
83
- return 0
84
- }
85
-
86
- type ECSEvent struct {
87
- state protoimpl.MessageState
88
- sizeCache protoimpl.SizeCache
89
- unknownFields protoimpl.UnknownFields
90
-
91
- EventType string `protobuf:"bytes,1,opt,name=eventType,proto3" json:"eventType,omitempty"`
92
- ComponentId string `protobuf:"bytes,2,opt,name=componentId,proto3" json:"componentId,omitempty"`
93
- EntityId string `protobuf:"bytes,3,opt,name=entityId,proto3" json:"entityId,omitempty"`
94
- Value []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
95
- TxHash string `protobuf:"bytes,5,opt,name=txHash,proto3" json:"txHash,omitempty"`
96
- TxMetadata *TxMetadata `protobuf:"bytes,6,opt,name=txMetadata,proto3" json:"txMetadata,omitempty"`
97
- }
98
-
99
- func (x *ECSEvent) Reset() {
100
- *x = ECSEvent{}
101
- if protoimpl.UnsafeEnabled {
102
- mi := &file_proto_ecs_stream_proto_msgTypes[1]
103
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
104
- ms.StoreMessageInfo(mi)
105
- }
106
- }
107
-
108
- func (x *ECSEvent) String() string {
109
- return protoimpl.X.MessageStringOf(x)
110
- }
111
-
112
- func (*ECSEvent) ProtoMessage() {}
113
-
114
- func (x *ECSEvent) ProtoReflect() protoreflect.Message {
115
- mi := &file_proto_ecs_stream_proto_msgTypes[1]
116
- if protoimpl.UnsafeEnabled && x != nil {
117
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
118
- if ms.LoadMessageInfo() == nil {
119
- ms.StoreMessageInfo(mi)
120
- }
121
- return ms
122
- }
123
- return mi.MessageOf(x)
124
- }
125
-
126
- // Deprecated: Use ECSEvent.ProtoReflect.Descriptor instead.
127
- func (*ECSEvent) Descriptor() ([]byte, []int) {
128
- return file_proto_ecs_stream_proto_rawDescGZIP(), []int{1}
129
- }
130
-
131
- func (x *ECSEvent) GetEventType() string {
132
- if x != nil {
133
- return x.EventType
134
- }
135
- return ""
136
- }
137
-
138
- func (x *ECSEvent) GetComponentId() string {
139
- if x != nil {
140
- return x.ComponentId
141
- }
142
- return ""
143
- }
144
-
145
- func (x *ECSEvent) GetEntityId() string {
146
- if x != nil {
147
- return x.EntityId
148
- }
149
- return ""
150
- }
151
-
152
- func (x *ECSEvent) GetValue() []byte {
153
- if x != nil {
154
- return x.Value
155
- }
156
- return nil
157
- }
158
-
159
- func (x *ECSEvent) GetTxHash() string {
160
- if x != nil {
161
- return x.TxHash
162
- }
163
- return ""
164
- }
165
-
166
- func (x *ECSEvent) GetTxMetadata() *TxMetadata {
167
- if x != nil {
168
- return x.TxMetadata
169
- }
170
- return nil
171
- }
172
-
173
- // Request to subscribe to an ECSStream. The required parameter is 'worldAddress', while others
174
- // are opt-in based on which data the client is interested in receiving.
175
- type ECSStreamBlockBundleRequest struct {
176
- state protoimpl.MessageState
177
- sizeCache protoimpl.SizeCache
178
- unknownFields protoimpl.UnknownFields
179
-
180
- WorldAddress string `protobuf:"bytes,1,opt,name=worldAddress,proto3" json:"worldAddress,omitempty"`
181
- BlockNumber bool `protobuf:"varint,2,opt,name=blockNumber,proto3" json:"blockNumber,omitempty"`
182
- BlockHash bool `protobuf:"varint,3,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
183
- BlockTimestamp bool `protobuf:"varint,4,opt,name=blockTimestamp,proto3" json:"blockTimestamp,omitempty"`
184
- TransactionsConfirmed bool `protobuf:"varint,5,opt,name=transactionsConfirmed,proto3" json:"transactionsConfirmed,omitempty"`
185
- EcsEvents bool `protobuf:"varint,6,opt,name=ecsEvents,proto3" json:"ecsEvents,omitempty"`
186
- EcsEventsIncludeTxMetadata bool `protobuf:"varint,7,opt,name=ecsEventsIncludeTxMetadata,proto3" json:"ecsEventsIncludeTxMetadata,omitempty"`
187
- }
188
-
189
- func (x *ECSStreamBlockBundleRequest) Reset() {
190
- *x = ECSStreamBlockBundleRequest{}
191
- if protoimpl.UnsafeEnabled {
192
- mi := &file_proto_ecs_stream_proto_msgTypes[2]
193
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
194
- ms.StoreMessageInfo(mi)
195
- }
196
- }
197
-
198
- func (x *ECSStreamBlockBundleRequest) String() string {
199
- return protoimpl.X.MessageStringOf(x)
200
- }
201
-
202
- func (*ECSStreamBlockBundleRequest) ProtoMessage() {}
203
-
204
- func (x *ECSStreamBlockBundleRequest) ProtoReflect() protoreflect.Message {
205
- mi := &file_proto_ecs_stream_proto_msgTypes[2]
206
- if protoimpl.UnsafeEnabled && x != nil {
207
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
208
- if ms.LoadMessageInfo() == nil {
209
- ms.StoreMessageInfo(mi)
210
- }
211
- return ms
212
- }
213
- return mi.MessageOf(x)
214
- }
215
-
216
- // Deprecated: Use ECSStreamBlockBundleRequest.ProtoReflect.Descriptor instead.
217
- func (*ECSStreamBlockBundleRequest) Descriptor() ([]byte, []int) {
218
- return file_proto_ecs_stream_proto_rawDescGZIP(), []int{2}
219
- }
220
-
221
- func (x *ECSStreamBlockBundleRequest) GetWorldAddress() string {
222
- if x != nil {
223
- return x.WorldAddress
224
- }
225
- return ""
226
- }
227
-
228
- func (x *ECSStreamBlockBundleRequest) GetBlockNumber() bool {
229
- if x != nil {
230
- return x.BlockNumber
231
- }
232
- return false
233
- }
234
-
235
- func (x *ECSStreamBlockBundleRequest) GetBlockHash() bool {
236
- if x != nil {
237
- return x.BlockHash
238
- }
239
- return false
240
- }
241
-
242
- func (x *ECSStreamBlockBundleRequest) GetBlockTimestamp() bool {
243
- if x != nil {
244
- return x.BlockTimestamp
245
- }
246
- return false
247
- }
248
-
249
- func (x *ECSStreamBlockBundleRequest) GetTransactionsConfirmed() bool {
250
- if x != nil {
251
- return x.TransactionsConfirmed
252
- }
253
- return false
254
- }
255
-
256
- func (x *ECSStreamBlockBundleRequest) GetEcsEvents() bool {
257
- if x != nil {
258
- return x.EcsEvents
259
- }
260
- return false
261
- }
262
-
263
- func (x *ECSStreamBlockBundleRequest) GetEcsEventsIncludeTxMetadata() bool {
264
- if x != nil {
265
- return x.EcsEventsIncludeTxMetadata
266
- }
267
- return false
268
- }
269
-
270
- // ECSStream response. The fields are populated based on the request which must have been sent when
271
- // starting the subscription.
272
- type ECSStreamBlockBundleReply struct {
273
- state protoimpl.MessageState
274
- sizeCache protoimpl.SizeCache
275
- unknownFields protoimpl.UnknownFields
276
-
277
- BlockNumber uint32 `protobuf:"varint,1,opt,name=blockNumber,proto3" json:"blockNumber,omitempty"`
278
- BlockHash string `protobuf:"bytes,2,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
279
- BlockTimestamp uint32 `protobuf:"varint,3,opt,name=blockTimestamp,proto3" json:"blockTimestamp,omitempty"`
280
- TransactionsConfirmed []string `protobuf:"bytes,4,rep,name=transactionsConfirmed,proto3" json:"transactionsConfirmed,omitempty"`
281
- EcsEvents []*ECSEvent `protobuf:"bytes,5,rep,name=ecsEvents,proto3" json:"ecsEvents,omitempty"`
282
- }
283
-
284
- func (x *ECSStreamBlockBundleReply) Reset() {
285
- *x = ECSStreamBlockBundleReply{}
286
- if protoimpl.UnsafeEnabled {
287
- mi := &file_proto_ecs_stream_proto_msgTypes[3]
288
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
289
- ms.StoreMessageInfo(mi)
290
- }
291
- }
292
-
293
- func (x *ECSStreamBlockBundleReply) String() string {
294
- return protoimpl.X.MessageStringOf(x)
295
- }
296
-
297
- func (*ECSStreamBlockBundleReply) ProtoMessage() {}
298
-
299
- func (x *ECSStreamBlockBundleReply) ProtoReflect() protoreflect.Message {
300
- mi := &file_proto_ecs_stream_proto_msgTypes[3]
301
- if protoimpl.UnsafeEnabled && x != nil {
302
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
303
- if ms.LoadMessageInfo() == nil {
304
- ms.StoreMessageInfo(mi)
305
- }
306
- return ms
307
- }
308
- return mi.MessageOf(x)
309
- }
310
-
311
- // Deprecated: Use ECSStreamBlockBundleReply.ProtoReflect.Descriptor instead.
312
- func (*ECSStreamBlockBundleReply) Descriptor() ([]byte, []int) {
313
- return file_proto_ecs_stream_proto_rawDescGZIP(), []int{3}
314
- }
315
-
316
- func (x *ECSStreamBlockBundleReply) GetBlockNumber() uint32 {
317
- if x != nil {
318
- return x.BlockNumber
319
- }
320
- return 0
321
- }
322
-
323
- func (x *ECSStreamBlockBundleReply) GetBlockHash() string {
324
- if x != nil {
325
- return x.BlockHash
326
- }
327
- return ""
328
- }
329
-
330
- func (x *ECSStreamBlockBundleReply) GetBlockTimestamp() uint32 {
331
- if x != nil {
332
- return x.BlockTimestamp
333
- }
334
- return 0
335
- }
336
-
337
- func (x *ECSStreamBlockBundleReply) GetTransactionsConfirmed() []string {
338
- if x != nil {
339
- return x.TransactionsConfirmed
340
- }
341
- return nil
342
- }
343
-
344
- func (x *ECSStreamBlockBundleReply) GetEcsEvents() []*ECSEvent {
345
- if x != nil {
346
- return x.EcsEvents
347
- }
348
- return nil
349
- }
350
-
351
- var File_proto_ecs_stream_proto protoreflect.FileDescriptor
352
-
353
- var file_proto_ecs_stream_proto_rawDesc = []byte{
354
- 0x0a, 0x16, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x63, 0x73, 0x2d, 0x73, 0x74, 0x72, 0x65,
355
- 0x61, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x65, 0x63, 0x73, 0x73, 0x74, 0x72,
356
- 0x65, 0x61, 0x6d, 0x22, 0x46, 0x0a, 0x0a, 0x54, 0x78, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
357
- 0x61, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74,
358
- 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52,
359
- 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04,
360
- 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xcb, 0x01, 0x0a, 0x08,
361
- 0x45, 0x43, 0x53, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x76, 0x65, 0x6e,
362
- 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x76, 0x65,
363
- 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e,
364
- 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6d,
365
- 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x74, 0x69,
366
- 0x74, 0x79, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x74, 0x69,
367
- 0x74, 0x79, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20,
368
- 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x78,
369
- 0x48, 0x61, 0x73, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x78, 0x48, 0x61,
370
- 0x73, 0x68, 0x12, 0x35, 0x0a, 0x0a, 0x74, 0x78, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
371
- 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x74, 0x72, 0x65,
372
- 0x61, 0x6d, 0x2e, 0x54, 0x78, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0a, 0x74,
373
- 0x78, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0xbd, 0x02, 0x0a, 0x1b, 0x45, 0x43,
374
- 0x53, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x75, 0x6e, 0x64,
375
- 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x77, 0x6f, 0x72,
376
- 0x6c, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
377
- 0x0c, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x20, 0x0a,
378
- 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01,
379
- 0x28, 0x08, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12,
380
- 0x1c, 0x0a, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01,
381
- 0x28, 0x08, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x12, 0x26, 0x0a,
382
- 0x0e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18,
383
- 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65,
384
- 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x34, 0x0a, 0x15, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63,
385
- 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x18, 0x05,
386
- 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f,
387
- 0x6e, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x65,
388
- 0x63, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09,
389
- 0x65, 0x63, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x3e, 0x0a, 0x1a, 0x65, 0x63, 0x73,
390
- 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x54, 0x78, 0x4d,
391
- 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1a, 0x65,
392
- 0x63, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x54,
393
- 0x78, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0xec, 0x01, 0x0a, 0x19, 0x45, 0x43,
394
- 0x53, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x75, 0x6e, 0x64,
395
- 0x6c, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
396
- 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x62, 0x6c,
397
- 0x6f, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x62, 0x6c, 0x6f,
398
- 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x6c,
399
- 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x12, 0x26, 0x0a, 0x0e, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
400
- 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52,
401
- 0x0e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12,
402
- 0x34, 0x0a, 0x15, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x43,
403
- 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x15,
404
- 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x43, 0x6f, 0x6e, 0x66,
405
- 0x69, 0x72, 0x6d, 0x65, 0x64, 0x12, 0x31, 0x0a, 0x09, 0x65, 0x63, 0x73, 0x45, 0x76, 0x65, 0x6e,
406
- 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x74,
407
- 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x45, 0x43, 0x53, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x09, 0x65,
408
- 0x63, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x32, 0x7f, 0x0a, 0x10, 0x45, 0x43, 0x53, 0x53,
409
- 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6b, 0x0a, 0x17,
410
- 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x65, 0x61,
411
- 0x6d, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x12, 0x26, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x74, 0x72,
412
- 0x65, 0x61, 0x6d, 0x2e, 0x45, 0x43, 0x53, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x42, 0x6c, 0x6f,
413
- 0x63, 0x6b, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
414
- 0x24, 0x2e, 0x65, 0x63, 0x73, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x45, 0x43, 0x53, 0x53,
415
- 0x74, 0x72, 0x65, 0x61, 0x6d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65,
416
- 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x30, 0x01, 0x42, 0x18, 0x5a, 0x16, 0x70, 0x72, 0x6f,
417
- 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x63, 0x73, 0x2d, 0x73, 0x74, 0x72,
418
- 0x65, 0x61, 0x6d, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
419
- }
420
-
421
- var (
422
- file_proto_ecs_stream_proto_rawDescOnce sync.Once
423
- file_proto_ecs_stream_proto_rawDescData = file_proto_ecs_stream_proto_rawDesc
424
- )
425
-
426
- func file_proto_ecs_stream_proto_rawDescGZIP() []byte {
427
- file_proto_ecs_stream_proto_rawDescOnce.Do(func() {
428
- file_proto_ecs_stream_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_ecs_stream_proto_rawDescData)
429
- })
430
- return file_proto_ecs_stream_proto_rawDescData
431
- }
432
-
433
- var file_proto_ecs_stream_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
434
- var file_proto_ecs_stream_proto_goTypes = []interface{}{
435
- (*TxMetadata)(nil), // 0: ecsstream.TxMetadata
436
- (*ECSEvent)(nil), // 1: ecsstream.ECSEvent
437
- (*ECSStreamBlockBundleRequest)(nil), // 2: ecsstream.ECSStreamBlockBundleRequest
438
- (*ECSStreamBlockBundleReply)(nil), // 3: ecsstream.ECSStreamBlockBundleReply
439
- }
440
- var file_proto_ecs_stream_proto_depIdxs = []int32{
441
- 0, // 0: ecsstream.ECSEvent.txMetadata:type_name -> ecsstream.TxMetadata
442
- 1, // 1: ecsstream.ECSStreamBlockBundleReply.ecsEvents:type_name -> ecsstream.ECSEvent
443
- 2, // 2: ecsstream.ECSStreamService.SubscribeToStreamLatest:input_type -> ecsstream.ECSStreamBlockBundleRequest
444
- 3, // 3: ecsstream.ECSStreamService.SubscribeToStreamLatest:output_type -> ecsstream.ECSStreamBlockBundleReply
445
- 3, // [3:4] is the sub-list for method output_type
446
- 2, // [2:3] is the sub-list for method input_type
447
- 2, // [2:2] is the sub-list for extension type_name
448
- 2, // [2:2] is the sub-list for extension extendee
449
- 0, // [0:2] is the sub-list for field type_name
450
- }
451
-
452
- func init() { file_proto_ecs_stream_proto_init() }
453
- func file_proto_ecs_stream_proto_init() {
454
- if File_proto_ecs_stream_proto != nil {
455
- return
456
- }
457
- if !protoimpl.UnsafeEnabled {
458
- file_proto_ecs_stream_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
459
- switch v := v.(*TxMetadata); i {
460
- case 0:
461
- return &v.state
462
- case 1:
463
- return &v.sizeCache
464
- case 2:
465
- return &v.unknownFields
466
- default:
467
- return nil
468
- }
469
- }
470
- file_proto_ecs_stream_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
471
- switch v := v.(*ECSEvent); i {
472
- case 0:
473
- return &v.state
474
- case 1:
475
- return &v.sizeCache
476
- case 2:
477
- return &v.unknownFields
478
- default:
479
- return nil
480
- }
481
- }
482
- file_proto_ecs_stream_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
483
- switch v := v.(*ECSStreamBlockBundleRequest); i {
484
- case 0:
485
- return &v.state
486
- case 1:
487
- return &v.sizeCache
488
- case 2:
489
- return &v.unknownFields
490
- default:
491
- return nil
492
- }
493
- }
494
- file_proto_ecs_stream_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
495
- switch v := v.(*ECSStreamBlockBundleReply); i {
496
- case 0:
497
- return &v.state
498
- case 1:
499
- return &v.sizeCache
500
- case 2:
501
- return &v.unknownFields
502
- default:
503
- return nil
504
- }
505
- }
506
- }
507
- type x struct{}
508
- out := protoimpl.TypeBuilder{
509
- File: protoimpl.DescBuilder{
510
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
511
- RawDescriptor: file_proto_ecs_stream_proto_rawDesc,
512
- NumEnums: 0,
513
- NumMessages: 4,
514
- NumExtensions: 0,
515
- NumServices: 1,
516
- },
517
- GoTypes: file_proto_ecs_stream_proto_goTypes,
518
- DependencyIndexes: file_proto_ecs_stream_proto_depIdxs,
519
- MessageInfos: file_proto_ecs_stream_proto_msgTypes,
520
- }.Build()
521
- File_proto_ecs_stream_proto = out.File
522
- file_proto_ecs_stream_proto_rawDesc = nil
523
- file_proto_ecs_stream_proto_goTypes = nil
524
- file_proto_ecs_stream_proto_depIdxs = nil
525
- }
@@ -1,138 +0,0 @@
1
- // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
2
- // versions:
3
- // - protoc-gen-go-grpc v1.3.0
4
- // - protoc v3.21.3
5
- // source: proto/ecs-stream.proto
6
-
7
- package ecs_stream
8
-
9
- import (
10
- context "context"
11
- grpc "google.golang.org/grpc"
12
- codes "google.golang.org/grpc/codes"
13
- status "google.golang.org/grpc/status"
14
- )
15
-
16
- // This is a compile-time assertion to ensure that this generated file
17
- // is compatible with the grpc package it is being compiled against.
18
- // Requires gRPC-Go v1.32.0 or later.
19
- const _ = grpc.SupportPackageIsVersion7
20
-
21
- const (
22
- ECSStreamService_SubscribeToStreamLatest_FullMethodName = "/ecsstream.ECSStreamService/SubscribeToStreamLatest"
23
- )
24
-
25
- // ECSStreamServiceClient is the client API for ECSStreamService service.
26
- //
27
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
28
- type ECSStreamServiceClient interface {
29
- // Opens a cursor to receive the latest ECS events and additional data specified via request.
30
- SubscribeToStreamLatest(ctx context.Context, in *ECSStreamBlockBundleRequest, opts ...grpc.CallOption) (ECSStreamService_SubscribeToStreamLatestClient, error)
31
- }
32
-
33
- type eCSStreamServiceClient struct {
34
- cc grpc.ClientConnInterface
35
- }
36
-
37
- func NewECSStreamServiceClient(cc grpc.ClientConnInterface) ECSStreamServiceClient {
38
- return &eCSStreamServiceClient{cc}
39
- }
40
-
41
- func (c *eCSStreamServiceClient) SubscribeToStreamLatest(ctx context.Context, in *ECSStreamBlockBundleRequest, opts ...grpc.CallOption) (ECSStreamService_SubscribeToStreamLatestClient, error) {
42
- stream, err := c.cc.NewStream(ctx, &ECSStreamService_ServiceDesc.Streams[0], ECSStreamService_SubscribeToStreamLatest_FullMethodName, opts...)
43
- if err != nil {
44
- return nil, err
45
- }
46
- x := &eCSStreamServiceSubscribeToStreamLatestClient{stream}
47
- if err := x.ClientStream.SendMsg(in); err != nil {
48
- return nil, err
49
- }
50
- if err := x.ClientStream.CloseSend(); err != nil {
51
- return nil, err
52
- }
53
- return x, nil
54
- }
55
-
56
- type ECSStreamService_SubscribeToStreamLatestClient interface {
57
- Recv() (*ECSStreamBlockBundleReply, error)
58
- grpc.ClientStream
59
- }
60
-
61
- type eCSStreamServiceSubscribeToStreamLatestClient struct {
62
- grpc.ClientStream
63
- }
64
-
65
- func (x *eCSStreamServiceSubscribeToStreamLatestClient) Recv() (*ECSStreamBlockBundleReply, error) {
66
- m := new(ECSStreamBlockBundleReply)
67
- if err := x.ClientStream.RecvMsg(m); err != nil {
68
- return nil, err
69
- }
70
- return m, nil
71
- }
72
-
73
- // ECSStreamServiceServer is the server API for ECSStreamService service.
74
- // All implementations must embed UnimplementedECSStreamServiceServer
75
- // for forward compatibility
76
- type ECSStreamServiceServer interface {
77
- // Opens a cursor to receive the latest ECS events and additional data specified via request.
78
- SubscribeToStreamLatest(*ECSStreamBlockBundleRequest, ECSStreamService_SubscribeToStreamLatestServer) error
79
- mustEmbedUnimplementedECSStreamServiceServer()
80
- }
81
-
82
- // UnimplementedECSStreamServiceServer must be embedded to have forward compatible implementations.
83
- type UnimplementedECSStreamServiceServer struct {
84
- }
85
-
86
- func (UnimplementedECSStreamServiceServer) SubscribeToStreamLatest(*ECSStreamBlockBundleRequest, ECSStreamService_SubscribeToStreamLatestServer) error {
87
- return status.Errorf(codes.Unimplemented, "method SubscribeToStreamLatest not implemented")
88
- }
89
- func (UnimplementedECSStreamServiceServer) mustEmbedUnimplementedECSStreamServiceServer() {}
90
-
91
- // UnsafeECSStreamServiceServer may be embedded to opt out of forward compatibility for this service.
92
- // Use of this interface is not recommended, as added methods to ECSStreamServiceServer will
93
- // result in compilation errors.
94
- type UnsafeECSStreamServiceServer interface {
95
- mustEmbedUnimplementedECSStreamServiceServer()
96
- }
97
-
98
- func RegisterECSStreamServiceServer(s grpc.ServiceRegistrar, srv ECSStreamServiceServer) {
99
- s.RegisterService(&ECSStreamService_ServiceDesc, srv)
100
- }
101
-
102
- func _ECSStreamService_SubscribeToStreamLatest_Handler(srv interface{}, stream grpc.ServerStream) error {
103
- m := new(ECSStreamBlockBundleRequest)
104
- if err := stream.RecvMsg(m); err != nil {
105
- return err
106
- }
107
- return srv.(ECSStreamServiceServer).SubscribeToStreamLatest(m, &eCSStreamServiceSubscribeToStreamLatestServer{stream})
108
- }
109
-
110
- type ECSStreamService_SubscribeToStreamLatestServer interface {
111
- Send(*ECSStreamBlockBundleReply) error
112
- grpc.ServerStream
113
- }
114
-
115
- type eCSStreamServiceSubscribeToStreamLatestServer struct {
116
- grpc.ServerStream
117
- }
118
-
119
- func (x *eCSStreamServiceSubscribeToStreamLatestServer) Send(m *ECSStreamBlockBundleReply) error {
120
- return x.ServerStream.SendMsg(m)
121
- }
122
-
123
- // ECSStreamService_ServiceDesc is the grpc.ServiceDesc for ECSStreamService service.
124
- // It's only intended for direct use with grpc.RegisterService,
125
- // and not to be introspected or modified (even as a copy)
126
- var ECSStreamService_ServiceDesc = grpc.ServiceDesc{
127
- ServiceName: "ecsstream.ECSStreamService",
128
- HandlerType: (*ECSStreamServiceServer)(nil),
129
- Methods: []grpc.MethodDesc{},
130
- Streams: []grpc.StreamDesc{
131
- {
132
- StreamName: "SubscribeToStreamLatest",
133
- Handler: _ECSStreamService_SubscribeToStreamLatest_Handler,
134
- ServerStreams: true,
135
- },
136
- },
137
- Metadata: "proto/ecs-stream.proto",
138
- }