github.com/decred/dcrlnd@v0.7.6/lnrpc/invoicesrpc/invoices.pb.gw.go (about) 1 // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. 2 // source: invoicesrpc/invoices.proto 3 4 /* 5 Package invoicesrpc is a reverse proxy. 6 7 It translates gRPC into RESTful JSON APIs. 8 */ 9 package invoicesrpc 10 11 import ( 12 "context" 13 "io" 14 "net/http" 15 16 "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" 17 "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" 18 "google.golang.org/grpc" 19 "google.golang.org/grpc/codes" 20 "google.golang.org/grpc/grpclog" 21 "google.golang.org/grpc/metadata" 22 "google.golang.org/grpc/status" 23 "google.golang.org/protobuf/proto" 24 ) 25 26 // Suppress "imported and not used" errors 27 var _ codes.Code 28 var _ io.Reader 29 var _ status.Status 30 var _ = runtime.String 31 var _ = utilities.NewDoubleArray 32 var _ = metadata.Join 33 34 func request_Invoices_SubscribeSingleInvoice_0(ctx context.Context, marshaler runtime.Marshaler, client InvoicesClient, req *http.Request, pathParams map[string]string) (Invoices_SubscribeSingleInvoiceClient, runtime.ServerMetadata, error) { 35 var protoReq SubscribeSingleInvoiceRequest 36 var metadata runtime.ServerMetadata 37 38 var ( 39 val string 40 ok bool 41 err error 42 _ = err 43 ) 44 45 val, ok = pathParams["r_hash"] 46 if !ok { 47 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "r_hash") 48 } 49 50 protoReq.RHash, err = runtime.Bytes(val) 51 if err != nil { 52 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "r_hash", err) 53 } 54 55 stream, err := client.SubscribeSingleInvoice(ctx, &protoReq) 56 if err != nil { 57 return nil, metadata, err 58 } 59 header, err := stream.Header() 60 if err != nil { 61 return nil, metadata, err 62 } 63 metadata.HeaderMD = header 64 return stream, metadata, nil 65 66 } 67 68 func request_Invoices_CancelInvoice_0(ctx context.Context, marshaler runtime.Marshaler, client InvoicesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 69 var protoReq CancelInvoiceMsg 70 var metadata runtime.ServerMetadata 71 72 newReader, berr := utilities.IOReaderFactory(req.Body) 73 if berr != nil { 74 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 75 } 76 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { 77 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 78 } 79 80 msg, err := client.CancelInvoice(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 81 return msg, metadata, err 82 83 } 84 85 func local_request_Invoices_CancelInvoice_0(ctx context.Context, marshaler runtime.Marshaler, server InvoicesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 86 var protoReq CancelInvoiceMsg 87 var metadata runtime.ServerMetadata 88 89 newReader, berr := utilities.IOReaderFactory(req.Body) 90 if berr != nil { 91 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 92 } 93 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { 94 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 95 } 96 97 msg, err := server.CancelInvoice(ctx, &protoReq) 98 return msg, metadata, err 99 100 } 101 102 func request_Invoices_AddHoldInvoice_0(ctx context.Context, marshaler runtime.Marshaler, client InvoicesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 103 var protoReq AddHoldInvoiceRequest 104 var metadata runtime.ServerMetadata 105 106 newReader, berr := utilities.IOReaderFactory(req.Body) 107 if berr != nil { 108 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 109 } 110 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { 111 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 112 } 113 114 msg, err := client.AddHoldInvoice(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 115 return msg, metadata, err 116 117 } 118 119 func local_request_Invoices_AddHoldInvoice_0(ctx context.Context, marshaler runtime.Marshaler, server InvoicesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 120 var protoReq AddHoldInvoiceRequest 121 var metadata runtime.ServerMetadata 122 123 newReader, berr := utilities.IOReaderFactory(req.Body) 124 if berr != nil { 125 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 126 } 127 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { 128 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 129 } 130 131 msg, err := server.AddHoldInvoice(ctx, &protoReq) 132 return msg, metadata, err 133 134 } 135 136 func request_Invoices_SettleInvoice_0(ctx context.Context, marshaler runtime.Marshaler, client InvoicesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 137 var protoReq SettleInvoiceMsg 138 var metadata runtime.ServerMetadata 139 140 newReader, berr := utilities.IOReaderFactory(req.Body) 141 if berr != nil { 142 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 143 } 144 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { 145 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 146 } 147 148 msg, err := client.SettleInvoice(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 149 return msg, metadata, err 150 151 } 152 153 func local_request_Invoices_SettleInvoice_0(ctx context.Context, marshaler runtime.Marshaler, server InvoicesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 154 var protoReq SettleInvoiceMsg 155 var metadata runtime.ServerMetadata 156 157 newReader, berr := utilities.IOReaderFactory(req.Body) 158 if berr != nil { 159 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 160 } 161 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { 162 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 163 } 164 165 msg, err := server.SettleInvoice(ctx, &protoReq) 166 return msg, metadata, err 167 168 } 169 170 var ( 171 filter_Invoices_LookupInvoiceV2_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} 172 ) 173 174 func request_Invoices_LookupInvoiceV2_0(ctx context.Context, marshaler runtime.Marshaler, client InvoicesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 175 var protoReq LookupInvoiceMsg 176 var metadata runtime.ServerMetadata 177 178 if err := req.ParseForm(); err != nil { 179 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 180 } 181 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Invoices_LookupInvoiceV2_0); err != nil { 182 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 183 } 184 185 msg, err := client.LookupInvoiceV2(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 186 return msg, metadata, err 187 188 } 189 190 func local_request_Invoices_LookupInvoiceV2_0(ctx context.Context, marshaler runtime.Marshaler, server InvoicesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 191 var protoReq LookupInvoiceMsg 192 var metadata runtime.ServerMetadata 193 194 if err := req.ParseForm(); err != nil { 195 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 196 } 197 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Invoices_LookupInvoiceV2_0); err != nil { 198 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 199 } 200 201 msg, err := server.LookupInvoiceV2(ctx, &protoReq) 202 return msg, metadata, err 203 204 } 205 206 // RegisterInvoicesHandlerServer registers the http handlers for service Invoices to "mux". 207 // UnaryRPC :call InvoicesServer directly. 208 // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. 209 // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterInvoicesHandlerFromEndpoint instead. 210 func RegisterInvoicesHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InvoicesServer) error { 211 212 mux.Handle("GET", pattern_Invoices_SubscribeSingleInvoice_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 213 err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") 214 _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 215 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 216 return 217 }) 218 219 mux.Handle("POST", pattern_Invoices_CancelInvoice_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 220 ctx, cancel := context.WithCancel(req.Context()) 221 defer cancel() 222 var stream runtime.ServerTransportStream 223 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 224 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 225 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/invoicesrpc.Invoices/CancelInvoice", runtime.WithHTTPPathPattern("/v2/invoices/cancel")) 226 if err != nil { 227 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 228 return 229 } 230 resp, md, err := local_request_Invoices_CancelInvoice_0(rctx, inboundMarshaler, server, req, pathParams) 231 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 232 ctx = runtime.NewServerMetadataContext(ctx, md) 233 if err != nil { 234 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 235 return 236 } 237 238 forward_Invoices_CancelInvoice_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 239 240 }) 241 242 mux.Handle("POST", pattern_Invoices_AddHoldInvoice_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 243 ctx, cancel := context.WithCancel(req.Context()) 244 defer cancel() 245 var stream runtime.ServerTransportStream 246 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 247 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 248 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/invoicesrpc.Invoices/AddHoldInvoice", runtime.WithHTTPPathPattern("/v2/invoices/hodl")) 249 if err != nil { 250 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 251 return 252 } 253 resp, md, err := local_request_Invoices_AddHoldInvoice_0(rctx, inboundMarshaler, server, req, pathParams) 254 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 255 ctx = runtime.NewServerMetadataContext(ctx, md) 256 if err != nil { 257 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 258 return 259 } 260 261 forward_Invoices_AddHoldInvoice_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 262 263 }) 264 265 mux.Handle("POST", pattern_Invoices_SettleInvoice_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 266 ctx, cancel := context.WithCancel(req.Context()) 267 defer cancel() 268 var stream runtime.ServerTransportStream 269 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 270 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 271 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/invoicesrpc.Invoices/SettleInvoice", runtime.WithHTTPPathPattern("/v2/invoices/settle")) 272 if err != nil { 273 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 274 return 275 } 276 resp, md, err := local_request_Invoices_SettleInvoice_0(rctx, inboundMarshaler, server, req, pathParams) 277 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 278 ctx = runtime.NewServerMetadataContext(ctx, md) 279 if err != nil { 280 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 281 return 282 } 283 284 forward_Invoices_SettleInvoice_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 285 286 }) 287 288 mux.Handle("GET", pattern_Invoices_LookupInvoiceV2_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 289 ctx, cancel := context.WithCancel(req.Context()) 290 defer cancel() 291 var stream runtime.ServerTransportStream 292 ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) 293 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 294 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/invoicesrpc.Invoices/LookupInvoiceV2", runtime.WithHTTPPathPattern("/v2/invoices/lookup")) 295 if err != nil { 296 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 297 return 298 } 299 resp, md, err := local_request_Invoices_LookupInvoiceV2_0(rctx, inboundMarshaler, server, req, pathParams) 300 md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) 301 ctx = runtime.NewServerMetadataContext(ctx, md) 302 if err != nil { 303 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 304 return 305 } 306 307 forward_Invoices_LookupInvoiceV2_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 308 309 }) 310 311 return nil 312 } 313 314 // RegisterInvoicesHandlerFromEndpoint is same as RegisterInvoicesHandler but 315 // automatically dials to "endpoint" and closes the connection when "ctx" gets done. 316 func RegisterInvoicesHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { 317 conn, err := grpc.Dial(endpoint, opts...) 318 if err != nil { 319 return err 320 } 321 defer func() { 322 if err != nil { 323 if cerr := conn.Close(); cerr != nil { 324 grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) 325 } 326 return 327 } 328 go func() { 329 <-ctx.Done() 330 if cerr := conn.Close(); cerr != nil { 331 grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) 332 } 333 }() 334 }() 335 336 return RegisterInvoicesHandler(ctx, mux, conn) 337 } 338 339 // RegisterInvoicesHandler registers the http handlers for service Invoices to "mux". 340 // The handlers forward requests to the grpc endpoint over "conn". 341 func RegisterInvoicesHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { 342 return RegisterInvoicesHandlerClient(ctx, mux, NewInvoicesClient(conn)) 343 } 344 345 // RegisterInvoicesHandlerClient registers the http handlers for service Invoices 346 // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "InvoicesClient". 347 // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "InvoicesClient" 348 // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in 349 // "InvoicesClient" to call the correct interceptors. 350 func RegisterInvoicesHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InvoicesClient) error { 351 352 mux.Handle("GET", pattern_Invoices_SubscribeSingleInvoice_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 353 ctx, cancel := context.WithCancel(req.Context()) 354 defer cancel() 355 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 356 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/invoicesrpc.Invoices/SubscribeSingleInvoice", runtime.WithHTTPPathPattern("/v2/invoices/subscribe/{r_hash}")) 357 if err != nil { 358 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 359 return 360 } 361 resp, md, err := request_Invoices_SubscribeSingleInvoice_0(rctx, inboundMarshaler, client, req, pathParams) 362 ctx = runtime.NewServerMetadataContext(ctx, md) 363 if err != nil { 364 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 365 return 366 } 367 368 forward_Invoices_SubscribeSingleInvoice_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) 369 370 }) 371 372 mux.Handle("POST", pattern_Invoices_CancelInvoice_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 373 ctx, cancel := context.WithCancel(req.Context()) 374 defer cancel() 375 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 376 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/invoicesrpc.Invoices/CancelInvoice", runtime.WithHTTPPathPattern("/v2/invoices/cancel")) 377 if err != nil { 378 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 379 return 380 } 381 resp, md, err := request_Invoices_CancelInvoice_0(rctx, inboundMarshaler, client, req, pathParams) 382 ctx = runtime.NewServerMetadataContext(ctx, md) 383 if err != nil { 384 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 385 return 386 } 387 388 forward_Invoices_CancelInvoice_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 389 390 }) 391 392 mux.Handle("POST", pattern_Invoices_AddHoldInvoice_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 393 ctx, cancel := context.WithCancel(req.Context()) 394 defer cancel() 395 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 396 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/invoicesrpc.Invoices/AddHoldInvoice", runtime.WithHTTPPathPattern("/v2/invoices/hodl")) 397 if err != nil { 398 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 399 return 400 } 401 resp, md, err := request_Invoices_AddHoldInvoice_0(rctx, inboundMarshaler, client, req, pathParams) 402 ctx = runtime.NewServerMetadataContext(ctx, md) 403 if err != nil { 404 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 405 return 406 } 407 408 forward_Invoices_AddHoldInvoice_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 409 410 }) 411 412 mux.Handle("POST", pattern_Invoices_SettleInvoice_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 413 ctx, cancel := context.WithCancel(req.Context()) 414 defer cancel() 415 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 416 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/invoicesrpc.Invoices/SettleInvoice", runtime.WithHTTPPathPattern("/v2/invoices/settle")) 417 if err != nil { 418 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 419 return 420 } 421 resp, md, err := request_Invoices_SettleInvoice_0(rctx, inboundMarshaler, client, req, pathParams) 422 ctx = runtime.NewServerMetadataContext(ctx, md) 423 if err != nil { 424 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 425 return 426 } 427 428 forward_Invoices_SettleInvoice_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 429 430 }) 431 432 mux.Handle("GET", pattern_Invoices_LookupInvoiceV2_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 433 ctx, cancel := context.WithCancel(req.Context()) 434 defer cancel() 435 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 436 rctx, err := runtime.AnnotateContext(ctx, mux, req, "/invoicesrpc.Invoices/LookupInvoiceV2", runtime.WithHTTPPathPattern("/v2/invoices/lookup")) 437 if err != nil { 438 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 439 return 440 } 441 resp, md, err := request_Invoices_LookupInvoiceV2_0(rctx, inboundMarshaler, client, req, pathParams) 442 ctx = runtime.NewServerMetadataContext(ctx, md) 443 if err != nil { 444 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 445 return 446 } 447 448 forward_Invoices_LookupInvoiceV2_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 449 450 }) 451 452 return nil 453 } 454 455 var ( 456 pattern_Invoices_SubscribeSingleInvoice_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v2", "invoices", "subscribe", "r_hash"}, "")) 457 458 pattern_Invoices_CancelInvoice_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v2", "invoices", "cancel"}, "")) 459 460 pattern_Invoices_AddHoldInvoice_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v2", "invoices", "hodl"}, "")) 461 462 pattern_Invoices_SettleInvoice_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v2", "invoices", "settle"}, "")) 463 464 pattern_Invoices_LookupInvoiceV2_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v2", "invoices", "lookup"}, "")) 465 ) 466 467 var ( 468 forward_Invoices_SubscribeSingleInvoice_0 = runtime.ForwardResponseStream 469 470 forward_Invoices_CancelInvoice_0 = runtime.ForwardResponseMessage 471 472 forward_Invoices_AddHoldInvoice_0 = runtime.ForwardResponseMessage 473 474 forward_Invoices_SettleInvoice_0 = runtime.ForwardResponseMessage 475 476 forward_Invoices_LookupInvoiceV2_0 = runtime.ForwardResponseMessage 477 )