@agoric/cosmos 0.34.2-dev-a29afed.0.a29afed → 0.34.2-dev-cb1866d.0.cb1866d

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.
@@ -159,6 +159,60 @@ func local_request_Query_Mailbox_0(ctx context.Context, marshaler runtime.Marsha
159
159
 
160
160
  }
161
161
 
162
+ func request_Query_ChunkedArtifactStatus_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
163
+ var protoReq QueryChunkedArtifactStatusRequest
164
+ var metadata runtime.ServerMetadata
165
+
166
+ var (
167
+ val string
168
+ ok bool
169
+ err error
170
+ _ = err
171
+ )
172
+
173
+ val, ok = pathParams["chunked_artifact_id"]
174
+ if !ok {
175
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chunked_artifact_id")
176
+ }
177
+
178
+ protoReq.ChunkedArtifactId, err = runtime.Uint64(val)
179
+
180
+ if err != nil {
181
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chunked_artifact_id", err)
182
+ }
183
+
184
+ msg, err := client.ChunkedArtifactStatus(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
185
+ return msg, metadata, err
186
+
187
+ }
188
+
189
+ func local_request_Query_ChunkedArtifactStatus_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
190
+ var protoReq QueryChunkedArtifactStatusRequest
191
+ var metadata runtime.ServerMetadata
192
+
193
+ var (
194
+ val string
195
+ ok bool
196
+ err error
197
+ _ = err
198
+ )
199
+
200
+ val, ok = pathParams["chunked_artifact_id"]
201
+ if !ok {
202
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chunked_artifact_id")
203
+ }
204
+
205
+ protoReq.ChunkedArtifactId, err = runtime.Uint64(val)
206
+
207
+ if err != nil {
208
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chunked_artifact_id", err)
209
+ }
210
+
211
+ msg, err := server.ChunkedArtifactStatus(ctx, &protoReq)
212
+ return msg, metadata, err
213
+
214
+ }
215
+
162
216
  // RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
163
217
  // UnaryRPC :call QueryServer directly.
164
218
  // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
@@ -234,6 +288,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
234
288
 
235
289
  })
236
290
 
291
+ mux.Handle("GET", pattern_Query_ChunkedArtifactStatus_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
292
+ ctx, cancel := context.WithCancel(req.Context())
293
+ defer cancel()
294
+ var stream runtime.ServerTransportStream
295
+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
296
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
297
+ rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
298
+ if err != nil {
299
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
300
+ return
301
+ }
302
+ resp, md, err := local_request_Query_ChunkedArtifactStatus_0(rctx, inboundMarshaler, server, req, pathParams)
303
+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
304
+ ctx = runtime.NewServerMetadataContext(ctx, md)
305
+ if err != nil {
306
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
307
+ return
308
+ }
309
+
310
+ forward_Query_ChunkedArtifactStatus_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
311
+
312
+ })
313
+
237
314
  return nil
238
315
  }
239
316
 
@@ -335,6 +412,26 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie
335
412
 
336
413
  })
337
414
 
415
+ mux.Handle("GET", pattern_Query_ChunkedArtifactStatus_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
416
+ ctx, cancel := context.WithCancel(req.Context())
417
+ defer cancel()
418
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
419
+ rctx, err := runtime.AnnotateContext(ctx, mux, req)
420
+ if err != nil {
421
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
422
+ return
423
+ }
424
+ resp, md, err := request_Query_ChunkedArtifactStatus_0(rctx, inboundMarshaler, client, req, pathParams)
425
+ ctx = runtime.NewServerMetadataContext(ctx, md)
426
+ if err != nil {
427
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
428
+ return
429
+ }
430
+
431
+ forward_Query_ChunkedArtifactStatus_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
432
+
433
+ })
434
+
338
435
  return nil
339
436
  }
340
437
 
@@ -344,6 +441,8 @@ var (
344
441
  pattern_Query_Egress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"agoric", "swingset", "egress", "peer"}, "", runtime.AssumeColonVerbOpt(false)))
345
442
 
346
443
  pattern_Query_Mailbox_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"agoric", "swingset", "mailbox", "peer"}, "", runtime.AssumeColonVerbOpt(false)))
444
+
445
+ pattern_Query_ChunkedArtifactStatus_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"agoric", "swingset", "chunked-artifact-status", "chunked_artifact_id"}, "", runtime.AssumeColonVerbOpt(false)))
347
446
  )
348
447
 
349
448
  var (
@@ -352,4 +451,6 @@ var (
352
451
  forward_Query_Egress_0 = runtime.ForwardResponseMessage
353
452
 
354
453
  forward_Query_Mailbox_0 = runtime.ForwardResponseMessage
454
+
455
+ forward_Query_ChunkedArtifactStatus_0 = runtime.ForwardResponseMessage
355
456
  )