litrpc: run make rpc

This commit is contained in:
Elle Mouton 2024-10-14 10:39:12 +02:00
parent d1e76950e5
commit a3e8c175e8
No known key found for this signature in database
GPG key ID: D7D916376026F177
12 changed files with 24 additions and 7 deletions

View file

@ -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
}

View file

@ -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"
}
}

View file

@ -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
}

View file

@ -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"
}
}

View file

@ -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
}

View file

@ -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"
}
}

View file

@ -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
}

View file

@ -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"
}
}

View file

@ -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
}

View file

@ -95,6 +95,7 @@
"details": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/protobufAny"
}
}

View file

@ -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
}

View file

@ -163,6 +163,7 @@
"details": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/protobufAny"
}
}