From a3e8c175e89d5d743ce98fc664ac83fc0b389bd9 Mon Sep 17 00:00:00 2001 From: Elle Mouton Date: Mon, 14 Oct 2024 10:39:12 +0200 Subject: [PATCH] litrpc: run make rpc --- litrpc/firewall.pb.gw.go | 2 +- litrpc/firewall.swagger.json | 2 ++ litrpc/lit-accounts.pb.gw.go | 4 ++-- litrpc/lit-accounts.swagger.json | 4 ++++ litrpc/lit-autopilot.pb.gw.go | 2 +- litrpc/lit-autopilot.swagger.json | 5 +++++ litrpc/lit-sessions.pb.gw.go | 2 +- litrpc/lit-sessions.swagger.json | 4 ++++ litrpc/lit-status.pb.gw.go | 2 +- litrpc/lit-status.swagger.json | 1 + litrpc/proxy.pb.gw.go | 2 +- litrpc/proxy.swagger.json | 1 + 12 files changed, 24 insertions(+), 7 deletions(-) diff --git a/litrpc/firewall.pb.gw.go b/litrpc/firewall.pb.gw.go index 1bbc1988..420e2a4e 100644 --- a/litrpc/firewall.pb.gw.go +++ b/litrpc/firewall.pb.gw.go @@ -161,7 +161,7 @@ func RegisterFirewallHandlerServer(ctx context.Context, mux *runtime.ServeMux, s // RegisterFirewallHandlerFromEndpoint is same as RegisterFirewallHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterFirewallHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.DialContext(ctx, endpoint, opts...) if err != nil { return err } diff --git a/litrpc/firewall.swagger.json b/litrpc/firewall.swagger.json index a5c41b9d..d76caa9b 100644 --- a/litrpc/firewall.swagger.json +++ b/litrpc/firewall.swagger.json @@ -211,6 +211,7 @@ "actions": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/litrpcAction" }, "description": "A list of actions performed by the autopilot server." @@ -281,6 +282,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } diff --git a/litrpc/lit-accounts.pb.gw.go b/litrpc/lit-accounts.pb.gw.go index 7d38b74d..4e095eea 100644 --- a/litrpc/lit-accounts.pb.gw.go +++ b/litrpc/lit-accounts.pb.gw.go @@ -152,7 +152,7 @@ func local_request_Accounts_ListAccounts_0(ctx context.Context, marshaler runtim } var ( - filter_Accounts_RemoveAccount_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} + filter_Accounts_RemoveAccount_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} ) func request_Accounts_RemoveAccount_0(ctx context.Context, marshaler runtime.Marshaler, client AccountsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -333,7 +333,7 @@ func RegisterAccountsHandlerServer(ctx context.Context, mux *runtime.ServeMux, s // RegisterAccountsHandlerFromEndpoint is same as RegisterAccountsHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterAccountsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.DialContext(ctx, endpoint, opts...) if err != nil { return err } diff --git a/litrpc/lit-accounts.swagger.json b/litrpc/lit-accounts.swagger.json index 799b2477..4889c71f 100644 --- a/litrpc/lit-accounts.swagger.json +++ b/litrpc/lit-accounts.swagger.json @@ -196,6 +196,7 @@ "invoices": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/litrpcAccountInvoice" }, "description": "The list of invoices created by the account. An invoice created by an\naccount will credit the account balance if it is settled." @@ -203,6 +204,7 @@ "payments": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/litrpcAccountPayment" }, "description": "The list of payments made by the account. A payment made by an account will\ndebit the account balance if it is settled." @@ -281,6 +283,7 @@ "accounts": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/litrpcAccount" }, "description": "All accounts in the account database." @@ -312,6 +315,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } diff --git a/litrpc/lit-autopilot.pb.gw.go b/litrpc/lit-autopilot.pb.gw.go index 53d8c1cd..20ce9efa 100644 --- a/litrpc/lit-autopilot.pb.gw.go +++ b/litrpc/lit-autopilot.pb.gw.go @@ -265,7 +265,7 @@ func RegisterAutopilotHandlerServer(ctx context.Context, mux *runtime.ServeMux, // RegisterAutopilotHandlerFromEndpoint is same as RegisterAutopilotHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterAutopilotHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.DialContext(ctx, endpoint, opts...) if err != nil { return err } diff --git a/litrpc/lit-autopilot.swagger.json b/litrpc/lit-autopilot.swagger.json index 40605599..e1342634 100644 --- a/litrpc/lit-autopilot.swagger.json +++ b/litrpc/lit-autopilot.swagger.json @@ -295,6 +295,7 @@ "permissions_list": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/litrpcPermissions" }, "description": "A list of URI permissions required by the feature." @@ -361,6 +362,7 @@ "sessions": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/litrpcSession" }, "description": "A list of the Autopilot sessions." @@ -386,6 +388,7 @@ "permissions": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/litrpcMacaroonPermission" }, "description": "A list of permissions that should be included in the macaroon." @@ -451,6 +454,7 @@ "operations": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/litrpcMacaroonPermission" }, "description": "A list of the permissions required for this method." @@ -696,6 +700,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } diff --git a/litrpc/lit-sessions.pb.gw.go b/litrpc/lit-sessions.pb.gw.go index a52b2fb9..3559339a 100644 --- a/litrpc/lit-sessions.pb.gw.go +++ b/litrpc/lit-sessions.pb.gw.go @@ -222,7 +222,7 @@ func RegisterSessionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, s // RegisterSessionsHandlerFromEndpoint is same as RegisterSessionsHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterSessionsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.DialContext(ctx, endpoint, opts...) if err != nil { return err } diff --git a/litrpc/lit-sessions.swagger.json b/litrpc/lit-sessions.swagger.json index d233c56c..2300f69c 100644 --- a/litrpc/lit-sessions.swagger.json +++ b/litrpc/lit-sessions.swagger.json @@ -132,6 +132,7 @@ "macaroon_custom_permissions": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/litrpcMacaroonPermission" }, "description": "Any custom permissions to add the session's macaroon." @@ -258,6 +259,7 @@ "sessions": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/litrpcSession" }, "description": "A list of sessions." @@ -283,6 +285,7 @@ "permissions": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/litrpcMacaroonPermission" }, "description": "A list of permissions that should be included in the macaroon." @@ -556,6 +559,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } diff --git a/litrpc/lit-status.pb.gw.go b/litrpc/lit-status.pb.gw.go index 251b21e5..8edf5c1b 100644 --- a/litrpc/lit-status.pb.gw.go +++ b/litrpc/lit-status.pb.gw.go @@ -86,7 +86,7 @@ func RegisterStatusHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser // RegisterStatusHandlerFromEndpoint is same as RegisterStatusHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterStatusHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.DialContext(ctx, endpoint, opts...) if err != nil { return err } diff --git a/litrpc/lit-status.swagger.json b/litrpc/lit-status.swagger.json index 532fb220..d8331522 100644 --- a/litrpc/lit-status.swagger.json +++ b/litrpc/lit-status.swagger.json @@ -95,6 +95,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } diff --git a/litrpc/proxy.pb.gw.go b/litrpc/proxy.pb.gw.go index 7fb93bc2..c2e46dd9 100644 --- a/litrpc/proxy.pb.gw.go +++ b/litrpc/proxy.pb.gw.go @@ -204,7 +204,7 @@ func RegisterProxyHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv // RegisterProxyHandlerFromEndpoint is same as RegisterProxyHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterProxyHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.DialContext(ctx, endpoint, opts...) if err != nil { return err } diff --git a/litrpc/proxy.swagger.json b/litrpc/proxy.swagger.json index 5d26c3aa..158fe64c 100644 --- a/litrpc/proxy.swagger.json +++ b/litrpc/proxy.swagger.json @@ -163,6 +163,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } }