glclient.greenlight_pb2_grpc
Client and server classes corresponding to protobuf-defined services.
1# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! 2"""Client and server classes corresponding to protobuf-defined services.""" 3import grpc 4import warnings 5 6from glclient import greenlight_pb2 as glclient_dot_greenlight__pb2 7 8GRPC_GENERATED_VERSION = '1.64.1' 9GRPC_VERSION = grpc.__version__ 10EXPECTED_ERROR_RELEASE = '1.65.0' 11SCHEDULED_RELEASE_DATE = 'June 25, 2024' 12_version_not_supported = False 13 14try: 15 from grpc._utilities import first_version_is_lower 16 _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) 17except ImportError: 18 _version_not_supported = True 19 20if _version_not_supported: 21 warnings.warn( 22 f'The grpc package installed is at version {GRPC_VERSION},' 23 + f' but the generated code in glclient/greenlight_pb2_grpc.py depends on' 24 + f' grpcio>={GRPC_GENERATED_VERSION}.' 25 + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' 26 + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' 27 + f' This warning will become an error in {EXPECTED_ERROR_RELEASE},' 28 + f' scheduled for release on {SCHEDULED_RELEASE_DATE}.', 29 RuntimeWarning 30 ) 31 32 33class NodeStub(object): 34 """The node service represents your node running on greenlight's 35 infrastructure. You can use the exposed RPC methods to interact 36 with your node. The URI used to connect to the node depends on 37 where the node is being scheduled and is returned by the 38 `Scheduler.Schedule()` RPC call. 39 40 Notice that in order to connect to the node the caller must use the 41 node-specific mTLS keypair returned by `Scheduler.Register()` or 42 `Scheduler.Recover()`. In particular the anonymous mTLS keypair is 43 rejected by the node. 44 45 Deprecated methods are being replaced by the standardized and 46 automatically managed cln-grpc protocol you can find in 47 `node.proto` 48 """ 49 50 def __init__(self, channel): 51 """Constructor. 52 53 Args: 54 channel: A grpc.Channel. 55 """ 56 self.StreamIncoming = channel.unary_stream( 57 '/greenlight.Node/StreamIncoming', 58 request_serializer=glclient_dot_greenlight__pb2.StreamIncomingFilter.SerializeToString, 59 response_deserializer=glclient_dot_greenlight__pb2.IncomingPayment.FromString, 60 _registered_method=True) 61 self.StreamLog = channel.unary_stream( 62 '/greenlight.Node/StreamLog', 63 request_serializer=glclient_dot_greenlight__pb2.StreamLogRequest.SerializeToString, 64 response_deserializer=glclient_dot_greenlight__pb2.LogEntry.FromString, 65 _registered_method=True) 66 self.StreamCustommsg = channel.unary_stream( 67 '/greenlight.Node/StreamCustommsg', 68 request_serializer=glclient_dot_greenlight__pb2.StreamCustommsgRequest.SerializeToString, 69 response_deserializer=glclient_dot_greenlight__pb2.Custommsg.FromString, 70 _registered_method=True) 71 self.StreamHsmRequests = channel.unary_stream( 72 '/greenlight.Node/StreamHsmRequests', 73 request_serializer=glclient_dot_greenlight__pb2.Empty.SerializeToString, 74 response_deserializer=glclient_dot_greenlight__pb2.HsmRequest.FromString, 75 _registered_method=True) 76 self.RespondHsmRequest = channel.unary_unary( 77 '/greenlight.Node/RespondHsmRequest', 78 request_serializer=glclient_dot_greenlight__pb2.HsmResponse.SerializeToString, 79 response_deserializer=glclient_dot_greenlight__pb2.Empty.FromString, 80 _registered_method=True) 81 self.Configure = channel.unary_unary( 82 '/greenlight.Node/Configure', 83 request_serializer=glclient_dot_greenlight__pb2.GlConfig.SerializeToString, 84 response_deserializer=glclient_dot_greenlight__pb2.Empty.FromString, 85 _registered_method=True) 86 self.TrampolinePay = channel.unary_unary( 87 '/greenlight.Node/TrampolinePay', 88 request_serializer=glclient_dot_greenlight__pb2.TrampolinePayRequest.SerializeToString, 89 response_deserializer=glclient_dot_greenlight__pb2.TrampolinePayResponse.FromString, 90 _registered_method=True) 91 92 93class NodeServicer(object): 94 """The node service represents your node running on greenlight's 95 infrastructure. You can use the exposed RPC methods to interact 96 with your node. The URI used to connect to the node depends on 97 where the node is being scheduled and is returned by the 98 `Scheduler.Schedule()` RPC call. 99 100 Notice that in order to connect to the node the caller must use the 101 node-specific mTLS keypair returned by `Scheduler.Register()` or 102 `Scheduler.Recover()`. In particular the anonymous mTLS keypair is 103 rejected by the node. 104 105 Deprecated methods are being replaced by the standardized and 106 automatically managed cln-grpc protocol you can find in 107 `node.proto` 108 """ 109 110 def StreamIncoming(self, request, context): 111 """Stream incoming payments 112 113 Currently includes off-chain payments received matching an 114 invoice or spontaneus paymens through keysend. 115 """ 116 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 117 context.set_details('Method not implemented!') 118 raise NotImplementedError('Method not implemented!') 119 120 def StreamLog(self, request, context): 121 """Stream the logs as they are produced by the node 122 123 Mainly intended for debugging clients by tailing the log as 124 they are written on the node. The logs start streaming from 125 the first beginning, in order to allow inspection of events 126 after an error occurred, That also means that the logs can 127 be rather large, and should not be streamed onto 128 resource-constrained devices. 129 """ 130 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 131 context.set_details('Method not implemented!') 132 raise NotImplementedError('Method not implemented!') 133 134 def StreamCustommsg(self, request, context): 135 """Listen for incoming `custommsg` messages from peers. 136 137 The messages are forwarded as they come in, and will not be 138 replayed if the stream is interrupted. 139 """ 140 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 141 context.set_details('Method not implemented!') 142 raise NotImplementedError('Method not implemented!') 143 144 def StreamHsmRequests(self, request, context): 145 """////////////////////////////// HSM Messages //////////////////////// 146 147 The following messages are related to communicating HSM 148 requests back and forth. Chances are you won't need to 149 interact with these at all, unless you want to embed the 150 hsmd into your client. We recommend using a standalone hsmd 151 such as hagrid, keeper of keys, to get started. 152 153 Stream requests from the node to any key device that can 154 respond to them. 155 """ 156 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 157 context.set_details('Method not implemented!') 158 raise NotImplementedError('Method not implemented!') 159 160 def RespondHsmRequest(self, request, context): 161 """Missing associated documentation comment in .proto file.""" 162 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 163 context.set_details('Method not implemented!') 164 raise NotImplementedError('Method not implemented!') 165 166 def Configure(self, request, context): 167 """Missing associated documentation comment in .proto file.""" 168 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 169 context.set_details('Method not implemented!') 170 raise NotImplementedError('Method not implemented!') 171 172 def TrampolinePay(self, request, context): 173 """Missing associated documentation comment in .proto file.""" 174 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 175 context.set_details('Method not implemented!') 176 raise NotImplementedError('Method not implemented!') 177 178 179def add_NodeServicer_to_server(servicer, server): 180 rpc_method_handlers = { 181 'StreamIncoming': grpc.unary_stream_rpc_method_handler( 182 servicer.StreamIncoming, 183 request_deserializer=glclient_dot_greenlight__pb2.StreamIncomingFilter.FromString, 184 response_serializer=glclient_dot_greenlight__pb2.IncomingPayment.SerializeToString, 185 ), 186 'StreamLog': grpc.unary_stream_rpc_method_handler( 187 servicer.StreamLog, 188 request_deserializer=glclient_dot_greenlight__pb2.StreamLogRequest.FromString, 189 response_serializer=glclient_dot_greenlight__pb2.LogEntry.SerializeToString, 190 ), 191 'StreamCustommsg': grpc.unary_stream_rpc_method_handler( 192 servicer.StreamCustommsg, 193 request_deserializer=glclient_dot_greenlight__pb2.StreamCustommsgRequest.FromString, 194 response_serializer=glclient_dot_greenlight__pb2.Custommsg.SerializeToString, 195 ), 196 'StreamHsmRequests': grpc.unary_stream_rpc_method_handler( 197 servicer.StreamHsmRequests, 198 request_deserializer=glclient_dot_greenlight__pb2.Empty.FromString, 199 response_serializer=glclient_dot_greenlight__pb2.HsmRequest.SerializeToString, 200 ), 201 'RespondHsmRequest': grpc.unary_unary_rpc_method_handler( 202 servicer.RespondHsmRequest, 203 request_deserializer=glclient_dot_greenlight__pb2.HsmResponse.FromString, 204 response_serializer=glclient_dot_greenlight__pb2.Empty.SerializeToString, 205 ), 206 'Configure': grpc.unary_unary_rpc_method_handler( 207 servicer.Configure, 208 request_deserializer=glclient_dot_greenlight__pb2.GlConfig.FromString, 209 response_serializer=glclient_dot_greenlight__pb2.Empty.SerializeToString, 210 ), 211 'TrampolinePay': grpc.unary_unary_rpc_method_handler( 212 servicer.TrampolinePay, 213 request_deserializer=glclient_dot_greenlight__pb2.TrampolinePayRequest.FromString, 214 response_serializer=glclient_dot_greenlight__pb2.TrampolinePayResponse.SerializeToString, 215 ), 216 } 217 generic_handler = grpc.method_handlers_generic_handler( 218 'greenlight.Node', rpc_method_handlers) 219 server.add_generic_rpc_handlers((generic_handler,)) 220 server.add_registered_method_handlers('greenlight.Node', rpc_method_handlers) 221 222 223 # This class is part of an EXPERIMENTAL API. 224class Node(object): 225 """The node service represents your node running on greenlight's 226 infrastructure. You can use the exposed RPC methods to interact 227 with your node. The URI used to connect to the node depends on 228 where the node is being scheduled and is returned by the 229 `Scheduler.Schedule()` RPC call. 230 231 Notice that in order to connect to the node the caller must use the 232 node-specific mTLS keypair returned by `Scheduler.Register()` or 233 `Scheduler.Recover()`. In particular the anonymous mTLS keypair is 234 rejected by the node. 235 236 Deprecated methods are being replaced by the standardized and 237 automatically managed cln-grpc protocol you can find in 238 `node.proto` 239 """ 240 241 @staticmethod 242 def StreamIncoming(request, 243 target, 244 options=(), 245 channel_credentials=None, 246 call_credentials=None, 247 insecure=False, 248 compression=None, 249 wait_for_ready=None, 250 timeout=None, 251 metadata=None): 252 return grpc.experimental.unary_stream( 253 request, 254 target, 255 '/greenlight.Node/StreamIncoming', 256 glclient_dot_greenlight__pb2.StreamIncomingFilter.SerializeToString, 257 glclient_dot_greenlight__pb2.IncomingPayment.FromString, 258 options, 259 channel_credentials, 260 insecure, 261 call_credentials, 262 compression, 263 wait_for_ready, 264 timeout, 265 metadata, 266 _registered_method=True) 267 268 @staticmethod 269 def StreamLog(request, 270 target, 271 options=(), 272 channel_credentials=None, 273 call_credentials=None, 274 insecure=False, 275 compression=None, 276 wait_for_ready=None, 277 timeout=None, 278 metadata=None): 279 return grpc.experimental.unary_stream( 280 request, 281 target, 282 '/greenlight.Node/StreamLog', 283 glclient_dot_greenlight__pb2.StreamLogRequest.SerializeToString, 284 glclient_dot_greenlight__pb2.LogEntry.FromString, 285 options, 286 channel_credentials, 287 insecure, 288 call_credentials, 289 compression, 290 wait_for_ready, 291 timeout, 292 metadata, 293 _registered_method=True) 294 295 @staticmethod 296 def StreamCustommsg(request, 297 target, 298 options=(), 299 channel_credentials=None, 300 call_credentials=None, 301 insecure=False, 302 compression=None, 303 wait_for_ready=None, 304 timeout=None, 305 metadata=None): 306 return grpc.experimental.unary_stream( 307 request, 308 target, 309 '/greenlight.Node/StreamCustommsg', 310 glclient_dot_greenlight__pb2.StreamCustommsgRequest.SerializeToString, 311 glclient_dot_greenlight__pb2.Custommsg.FromString, 312 options, 313 channel_credentials, 314 insecure, 315 call_credentials, 316 compression, 317 wait_for_ready, 318 timeout, 319 metadata, 320 _registered_method=True) 321 322 @staticmethod 323 def StreamHsmRequests(request, 324 target, 325 options=(), 326 channel_credentials=None, 327 call_credentials=None, 328 insecure=False, 329 compression=None, 330 wait_for_ready=None, 331 timeout=None, 332 metadata=None): 333 return grpc.experimental.unary_stream( 334 request, 335 target, 336 '/greenlight.Node/StreamHsmRequests', 337 glclient_dot_greenlight__pb2.Empty.SerializeToString, 338 glclient_dot_greenlight__pb2.HsmRequest.FromString, 339 options, 340 channel_credentials, 341 insecure, 342 call_credentials, 343 compression, 344 wait_for_ready, 345 timeout, 346 metadata, 347 _registered_method=True) 348 349 @staticmethod 350 def RespondHsmRequest(request, 351 target, 352 options=(), 353 channel_credentials=None, 354 call_credentials=None, 355 insecure=False, 356 compression=None, 357 wait_for_ready=None, 358 timeout=None, 359 metadata=None): 360 return grpc.experimental.unary_unary( 361 request, 362 target, 363 '/greenlight.Node/RespondHsmRequest', 364 glclient_dot_greenlight__pb2.HsmResponse.SerializeToString, 365 glclient_dot_greenlight__pb2.Empty.FromString, 366 options, 367 channel_credentials, 368 insecure, 369 call_credentials, 370 compression, 371 wait_for_ready, 372 timeout, 373 metadata, 374 _registered_method=True) 375 376 @staticmethod 377 def Configure(request, 378 target, 379 options=(), 380 channel_credentials=None, 381 call_credentials=None, 382 insecure=False, 383 compression=None, 384 wait_for_ready=None, 385 timeout=None, 386 metadata=None): 387 return grpc.experimental.unary_unary( 388 request, 389 target, 390 '/greenlight.Node/Configure', 391 glclient_dot_greenlight__pb2.GlConfig.SerializeToString, 392 glclient_dot_greenlight__pb2.Empty.FromString, 393 options, 394 channel_credentials, 395 insecure, 396 call_credentials, 397 compression, 398 wait_for_ready, 399 timeout, 400 metadata, 401 _registered_method=True) 402 403 @staticmethod 404 def TrampolinePay(request, 405 target, 406 options=(), 407 channel_credentials=None, 408 call_credentials=None, 409 insecure=False, 410 compression=None, 411 wait_for_ready=None, 412 timeout=None, 413 metadata=None): 414 return grpc.experimental.unary_unary( 415 request, 416 target, 417 '/greenlight.Node/TrampolinePay', 418 glclient_dot_greenlight__pb2.TrampolinePayRequest.SerializeToString, 419 glclient_dot_greenlight__pb2.TrampolinePayResponse.FromString, 420 options, 421 channel_credentials, 422 insecure, 423 call_credentials, 424 compression, 425 wait_for_ready, 426 timeout, 427 metadata, 428 _registered_method=True) 429 430 431class HsmStub(object): 432 """Missing associated documentation comment in .proto file.""" 433 434 def __init__(self, channel): 435 """Constructor. 436 437 Args: 438 channel: A grpc.Channel. 439 """ 440 self.Request = channel.unary_unary( 441 '/greenlight.Hsm/Request', 442 request_serializer=glclient_dot_greenlight__pb2.HsmRequest.SerializeToString, 443 response_deserializer=glclient_dot_greenlight__pb2.HsmResponse.FromString, 444 _registered_method=True) 445 self.Ping = channel.unary_unary( 446 '/greenlight.Hsm/Ping', 447 request_serializer=glclient_dot_greenlight__pb2.Empty.SerializeToString, 448 response_deserializer=glclient_dot_greenlight__pb2.Empty.FromString, 449 _registered_method=True) 450 451 452class HsmServicer(object): 453 """Missing associated documentation comment in .proto file.""" 454 455 def Request(self, request, context): 456 """Missing associated documentation comment in .proto file.""" 457 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 458 context.set_details('Method not implemented!') 459 raise NotImplementedError('Method not implemented!') 460 461 def Ping(self, request, context): 462 """Missing associated documentation comment in .proto file.""" 463 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 464 context.set_details('Method not implemented!') 465 raise NotImplementedError('Method not implemented!') 466 467 468def add_HsmServicer_to_server(servicer, server): 469 rpc_method_handlers = { 470 'Request': grpc.unary_unary_rpc_method_handler( 471 servicer.Request, 472 request_deserializer=glclient_dot_greenlight__pb2.HsmRequest.FromString, 473 response_serializer=glclient_dot_greenlight__pb2.HsmResponse.SerializeToString, 474 ), 475 'Ping': grpc.unary_unary_rpc_method_handler( 476 servicer.Ping, 477 request_deserializer=glclient_dot_greenlight__pb2.Empty.FromString, 478 response_serializer=glclient_dot_greenlight__pb2.Empty.SerializeToString, 479 ), 480 } 481 generic_handler = grpc.method_handlers_generic_handler( 482 'greenlight.Hsm', rpc_method_handlers) 483 server.add_generic_rpc_handlers((generic_handler,)) 484 server.add_registered_method_handlers('greenlight.Hsm', rpc_method_handlers) 485 486 487 # This class is part of an EXPERIMENTAL API. 488class Hsm(object): 489 """Missing associated documentation comment in .proto file.""" 490 491 @staticmethod 492 def Request(request, 493 target, 494 options=(), 495 channel_credentials=None, 496 call_credentials=None, 497 insecure=False, 498 compression=None, 499 wait_for_ready=None, 500 timeout=None, 501 metadata=None): 502 return grpc.experimental.unary_unary( 503 request, 504 target, 505 '/greenlight.Hsm/Request', 506 glclient_dot_greenlight__pb2.HsmRequest.SerializeToString, 507 glclient_dot_greenlight__pb2.HsmResponse.FromString, 508 options, 509 channel_credentials, 510 insecure, 511 call_credentials, 512 compression, 513 wait_for_ready, 514 timeout, 515 metadata, 516 _registered_method=True) 517 518 @staticmethod 519 def Ping(request, 520 target, 521 options=(), 522 channel_credentials=None, 523 call_credentials=None, 524 insecure=False, 525 compression=None, 526 wait_for_ready=None, 527 timeout=None, 528 metadata=None): 529 return grpc.experimental.unary_unary( 530 request, 531 target, 532 '/greenlight.Hsm/Ping', 533 glclient_dot_greenlight__pb2.Empty.SerializeToString, 534 glclient_dot_greenlight__pb2.Empty.FromString, 535 options, 536 channel_credentials, 537 insecure, 538 call_credentials, 539 compression, 540 wait_for_ready, 541 timeout, 542 metadata, 543 _registered_method=True)
34class NodeStub(object): 35 """The node service represents your node running on greenlight's 36 infrastructure. You can use the exposed RPC methods to interact 37 with your node. The URI used to connect to the node depends on 38 where the node is being scheduled and is returned by the 39 `Scheduler.Schedule()` RPC call. 40 41 Notice that in order to connect to the node the caller must use the 42 node-specific mTLS keypair returned by `Scheduler.Register()` or 43 `Scheduler.Recover()`. In particular the anonymous mTLS keypair is 44 rejected by the node. 45 46 Deprecated methods are being replaced by the standardized and 47 automatically managed cln-grpc protocol you can find in 48 `node.proto` 49 """ 50 51 def __init__(self, channel): 52 """Constructor. 53 54 Args: 55 channel: A grpc.Channel. 56 """ 57 self.StreamIncoming = channel.unary_stream( 58 '/greenlight.Node/StreamIncoming', 59 request_serializer=glclient_dot_greenlight__pb2.StreamIncomingFilter.SerializeToString, 60 response_deserializer=glclient_dot_greenlight__pb2.IncomingPayment.FromString, 61 _registered_method=True) 62 self.StreamLog = channel.unary_stream( 63 '/greenlight.Node/StreamLog', 64 request_serializer=glclient_dot_greenlight__pb2.StreamLogRequest.SerializeToString, 65 response_deserializer=glclient_dot_greenlight__pb2.LogEntry.FromString, 66 _registered_method=True) 67 self.StreamCustommsg = channel.unary_stream( 68 '/greenlight.Node/StreamCustommsg', 69 request_serializer=glclient_dot_greenlight__pb2.StreamCustommsgRequest.SerializeToString, 70 response_deserializer=glclient_dot_greenlight__pb2.Custommsg.FromString, 71 _registered_method=True) 72 self.StreamHsmRequests = channel.unary_stream( 73 '/greenlight.Node/StreamHsmRequests', 74 request_serializer=glclient_dot_greenlight__pb2.Empty.SerializeToString, 75 response_deserializer=glclient_dot_greenlight__pb2.HsmRequest.FromString, 76 _registered_method=True) 77 self.RespondHsmRequest = channel.unary_unary( 78 '/greenlight.Node/RespondHsmRequest', 79 request_serializer=glclient_dot_greenlight__pb2.HsmResponse.SerializeToString, 80 response_deserializer=glclient_dot_greenlight__pb2.Empty.FromString, 81 _registered_method=True) 82 self.Configure = channel.unary_unary( 83 '/greenlight.Node/Configure', 84 request_serializer=glclient_dot_greenlight__pb2.GlConfig.SerializeToString, 85 response_deserializer=glclient_dot_greenlight__pb2.Empty.FromString, 86 _registered_method=True) 87 self.TrampolinePay = channel.unary_unary( 88 '/greenlight.Node/TrampolinePay', 89 request_serializer=glclient_dot_greenlight__pb2.TrampolinePayRequest.SerializeToString, 90 response_deserializer=glclient_dot_greenlight__pb2.TrampolinePayResponse.FromString, 91 _registered_method=True)
The node service represents your node running on greenlight's
infrastructure. You can use the exposed RPC methods to interact
with your node. The URI used to connect to the node depends on
where the node is being scheduled and is returned by the
Scheduler.Schedule()
RPC call.
Notice that in order to connect to the node the caller must use the
node-specific mTLS keypair returned by Scheduler.Register()
or
Scheduler.Recover()
. In particular the anonymous mTLS keypair is
rejected by the node.
Deprecated methods are being replaced by the standardized and
automatically managed cln-grpc protocol you can find in
node.proto
51 def __init__(self, channel): 52 """Constructor. 53 54 Args: 55 channel: A grpc.Channel. 56 """ 57 self.StreamIncoming = channel.unary_stream( 58 '/greenlight.Node/StreamIncoming', 59 request_serializer=glclient_dot_greenlight__pb2.StreamIncomingFilter.SerializeToString, 60 response_deserializer=glclient_dot_greenlight__pb2.IncomingPayment.FromString, 61 _registered_method=True) 62 self.StreamLog = channel.unary_stream( 63 '/greenlight.Node/StreamLog', 64 request_serializer=glclient_dot_greenlight__pb2.StreamLogRequest.SerializeToString, 65 response_deserializer=glclient_dot_greenlight__pb2.LogEntry.FromString, 66 _registered_method=True) 67 self.StreamCustommsg = channel.unary_stream( 68 '/greenlight.Node/StreamCustommsg', 69 request_serializer=glclient_dot_greenlight__pb2.StreamCustommsgRequest.SerializeToString, 70 response_deserializer=glclient_dot_greenlight__pb2.Custommsg.FromString, 71 _registered_method=True) 72 self.StreamHsmRequests = channel.unary_stream( 73 '/greenlight.Node/StreamHsmRequests', 74 request_serializer=glclient_dot_greenlight__pb2.Empty.SerializeToString, 75 response_deserializer=glclient_dot_greenlight__pb2.HsmRequest.FromString, 76 _registered_method=True) 77 self.RespondHsmRequest = channel.unary_unary( 78 '/greenlight.Node/RespondHsmRequest', 79 request_serializer=glclient_dot_greenlight__pb2.HsmResponse.SerializeToString, 80 response_deserializer=glclient_dot_greenlight__pb2.Empty.FromString, 81 _registered_method=True) 82 self.Configure = channel.unary_unary( 83 '/greenlight.Node/Configure', 84 request_serializer=glclient_dot_greenlight__pb2.GlConfig.SerializeToString, 85 response_deserializer=glclient_dot_greenlight__pb2.Empty.FromString, 86 _registered_method=True) 87 self.TrampolinePay = channel.unary_unary( 88 '/greenlight.Node/TrampolinePay', 89 request_serializer=glclient_dot_greenlight__pb2.TrampolinePayRequest.SerializeToString, 90 response_deserializer=glclient_dot_greenlight__pb2.TrampolinePayResponse.FromString, 91 _registered_method=True)
Constructor.
Args: channel: A grpc.Channel.
94class NodeServicer(object): 95 """The node service represents your node running on greenlight's 96 infrastructure. You can use the exposed RPC methods to interact 97 with your node. The URI used to connect to the node depends on 98 where the node is being scheduled and is returned by the 99 `Scheduler.Schedule()` RPC call. 100 101 Notice that in order to connect to the node the caller must use the 102 node-specific mTLS keypair returned by `Scheduler.Register()` or 103 `Scheduler.Recover()`. In particular the anonymous mTLS keypair is 104 rejected by the node. 105 106 Deprecated methods are being replaced by the standardized and 107 automatically managed cln-grpc protocol you can find in 108 `node.proto` 109 """ 110 111 def StreamIncoming(self, request, context): 112 """Stream incoming payments 113 114 Currently includes off-chain payments received matching an 115 invoice or spontaneus paymens through keysend. 116 """ 117 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 118 context.set_details('Method not implemented!') 119 raise NotImplementedError('Method not implemented!') 120 121 def StreamLog(self, request, context): 122 """Stream the logs as they are produced by the node 123 124 Mainly intended for debugging clients by tailing the log as 125 they are written on the node. The logs start streaming from 126 the first beginning, in order to allow inspection of events 127 after an error occurred, That also means that the logs can 128 be rather large, and should not be streamed onto 129 resource-constrained devices. 130 """ 131 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 132 context.set_details('Method not implemented!') 133 raise NotImplementedError('Method not implemented!') 134 135 def StreamCustommsg(self, request, context): 136 """Listen for incoming `custommsg` messages from peers. 137 138 The messages are forwarded as they come in, and will not be 139 replayed if the stream is interrupted. 140 """ 141 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 142 context.set_details('Method not implemented!') 143 raise NotImplementedError('Method not implemented!') 144 145 def StreamHsmRequests(self, request, context): 146 """////////////////////////////// HSM Messages //////////////////////// 147 148 The following messages are related to communicating HSM 149 requests back and forth. Chances are you won't need to 150 interact with these at all, unless you want to embed the 151 hsmd into your client. We recommend using a standalone hsmd 152 such as hagrid, keeper of keys, to get started. 153 154 Stream requests from the node to any key device that can 155 respond to them. 156 """ 157 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 158 context.set_details('Method not implemented!') 159 raise NotImplementedError('Method not implemented!') 160 161 def RespondHsmRequest(self, request, context): 162 """Missing associated documentation comment in .proto file.""" 163 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 164 context.set_details('Method not implemented!') 165 raise NotImplementedError('Method not implemented!') 166 167 def Configure(self, request, context): 168 """Missing associated documentation comment in .proto file.""" 169 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 170 context.set_details('Method not implemented!') 171 raise NotImplementedError('Method not implemented!') 172 173 def TrampolinePay(self, request, context): 174 """Missing associated documentation comment in .proto file.""" 175 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 176 context.set_details('Method not implemented!') 177 raise NotImplementedError('Method not implemented!')
The node service represents your node running on greenlight's
infrastructure. You can use the exposed RPC methods to interact
with your node. The URI used to connect to the node depends on
where the node is being scheduled and is returned by the
Scheduler.Schedule()
RPC call.
Notice that in order to connect to the node the caller must use the
node-specific mTLS keypair returned by Scheduler.Register()
or
Scheduler.Recover()
. In particular the anonymous mTLS keypair is
rejected by the node.
Deprecated methods are being replaced by the standardized and
automatically managed cln-grpc protocol you can find in
node.proto
111 def StreamIncoming(self, request, context): 112 """Stream incoming payments 113 114 Currently includes off-chain payments received matching an 115 invoice or spontaneus paymens through keysend. 116 """ 117 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 118 context.set_details('Method not implemented!') 119 raise NotImplementedError('Method not implemented!')
Stream incoming payments
Currently includes off-chain payments received matching an invoice or spontaneus paymens through keysend.
121 def StreamLog(self, request, context): 122 """Stream the logs as they are produced by the node 123 124 Mainly intended for debugging clients by tailing the log as 125 they are written on the node. The logs start streaming from 126 the first beginning, in order to allow inspection of events 127 after an error occurred, That also means that the logs can 128 be rather large, and should not be streamed onto 129 resource-constrained devices. 130 """ 131 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 132 context.set_details('Method not implemented!') 133 raise NotImplementedError('Method not implemented!')
Stream the logs as they are produced by the node
Mainly intended for debugging clients by tailing the log as they are written on the node. The logs start streaming from the first beginning, in order to allow inspection of events after an error occurred, That also means that the logs can be rather large, and should not be streamed onto resource-constrained devices.
135 def StreamCustommsg(self, request, context): 136 """Listen for incoming `custommsg` messages from peers. 137 138 The messages are forwarded as they come in, and will not be 139 replayed if the stream is interrupted. 140 """ 141 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 142 context.set_details('Method not implemented!') 143 raise NotImplementedError('Method not implemented!')
Listen for incoming custommsg
messages from peers.
The messages are forwarded as they come in, and will not be replayed if the stream is interrupted.
145 def StreamHsmRequests(self, request, context): 146 """////////////////////////////// HSM Messages //////////////////////// 147 148 The following messages are related to communicating HSM 149 requests back and forth. Chances are you won't need to 150 interact with these at all, unless you want to embed the 151 hsmd into your client. We recommend using a standalone hsmd 152 such as hagrid, keeper of keys, to get started. 153 154 Stream requests from the node to any key device that can 155 respond to them. 156 """ 157 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 158 context.set_details('Method not implemented!') 159 raise NotImplementedError('Method not implemented!')
////////////////////////////// HSM Messages ////////////////////////
The following messages are related to communicating HSM requests back and forth. Chances are you won't need to interact with these at all, unless you want to embed the hsmd into your client. We recommend using a standalone hsmd such as hagrid, keeper of keys, to get started.
Stream requests from the node to any key device that can respond to them.
161 def RespondHsmRequest(self, request, context): 162 """Missing associated documentation comment in .proto file.""" 163 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 164 context.set_details('Method not implemented!') 165 raise NotImplementedError('Method not implemented!')
Missing associated documentation comment in .proto file.
167 def Configure(self, request, context): 168 """Missing associated documentation comment in .proto file.""" 169 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 170 context.set_details('Method not implemented!') 171 raise NotImplementedError('Method not implemented!')
Missing associated documentation comment in .proto file.
173 def TrampolinePay(self, request, context): 174 """Missing associated documentation comment in .proto file.""" 175 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 176 context.set_details('Method not implemented!') 177 raise NotImplementedError('Method not implemented!')
Missing associated documentation comment in .proto file.
180def add_NodeServicer_to_server(servicer, server): 181 rpc_method_handlers = { 182 'StreamIncoming': grpc.unary_stream_rpc_method_handler( 183 servicer.StreamIncoming, 184 request_deserializer=glclient_dot_greenlight__pb2.StreamIncomingFilter.FromString, 185 response_serializer=glclient_dot_greenlight__pb2.IncomingPayment.SerializeToString, 186 ), 187 'StreamLog': grpc.unary_stream_rpc_method_handler( 188 servicer.StreamLog, 189 request_deserializer=glclient_dot_greenlight__pb2.StreamLogRequest.FromString, 190 response_serializer=glclient_dot_greenlight__pb2.LogEntry.SerializeToString, 191 ), 192 'StreamCustommsg': grpc.unary_stream_rpc_method_handler( 193 servicer.StreamCustommsg, 194 request_deserializer=glclient_dot_greenlight__pb2.StreamCustommsgRequest.FromString, 195 response_serializer=glclient_dot_greenlight__pb2.Custommsg.SerializeToString, 196 ), 197 'StreamHsmRequests': grpc.unary_stream_rpc_method_handler( 198 servicer.StreamHsmRequests, 199 request_deserializer=glclient_dot_greenlight__pb2.Empty.FromString, 200 response_serializer=glclient_dot_greenlight__pb2.HsmRequest.SerializeToString, 201 ), 202 'RespondHsmRequest': grpc.unary_unary_rpc_method_handler( 203 servicer.RespondHsmRequest, 204 request_deserializer=glclient_dot_greenlight__pb2.HsmResponse.FromString, 205 response_serializer=glclient_dot_greenlight__pb2.Empty.SerializeToString, 206 ), 207 'Configure': grpc.unary_unary_rpc_method_handler( 208 servicer.Configure, 209 request_deserializer=glclient_dot_greenlight__pb2.GlConfig.FromString, 210 response_serializer=glclient_dot_greenlight__pb2.Empty.SerializeToString, 211 ), 212 'TrampolinePay': grpc.unary_unary_rpc_method_handler( 213 servicer.TrampolinePay, 214 request_deserializer=glclient_dot_greenlight__pb2.TrampolinePayRequest.FromString, 215 response_serializer=glclient_dot_greenlight__pb2.TrampolinePayResponse.SerializeToString, 216 ), 217 } 218 generic_handler = grpc.method_handlers_generic_handler( 219 'greenlight.Node', rpc_method_handlers) 220 server.add_generic_rpc_handlers((generic_handler,)) 221 server.add_registered_method_handlers('greenlight.Node', rpc_method_handlers)
225class Node(object): 226 """The node service represents your node running on greenlight's 227 infrastructure. You can use the exposed RPC methods to interact 228 with your node. The URI used to connect to the node depends on 229 where the node is being scheduled and is returned by the 230 `Scheduler.Schedule()` RPC call. 231 232 Notice that in order to connect to the node the caller must use the 233 node-specific mTLS keypair returned by `Scheduler.Register()` or 234 `Scheduler.Recover()`. In particular the anonymous mTLS keypair is 235 rejected by the node. 236 237 Deprecated methods are being replaced by the standardized and 238 automatically managed cln-grpc protocol you can find in 239 `node.proto` 240 """ 241 242 @staticmethod 243 def StreamIncoming(request, 244 target, 245 options=(), 246 channel_credentials=None, 247 call_credentials=None, 248 insecure=False, 249 compression=None, 250 wait_for_ready=None, 251 timeout=None, 252 metadata=None): 253 return grpc.experimental.unary_stream( 254 request, 255 target, 256 '/greenlight.Node/StreamIncoming', 257 glclient_dot_greenlight__pb2.StreamIncomingFilter.SerializeToString, 258 glclient_dot_greenlight__pb2.IncomingPayment.FromString, 259 options, 260 channel_credentials, 261 insecure, 262 call_credentials, 263 compression, 264 wait_for_ready, 265 timeout, 266 metadata, 267 _registered_method=True) 268 269 @staticmethod 270 def StreamLog(request, 271 target, 272 options=(), 273 channel_credentials=None, 274 call_credentials=None, 275 insecure=False, 276 compression=None, 277 wait_for_ready=None, 278 timeout=None, 279 metadata=None): 280 return grpc.experimental.unary_stream( 281 request, 282 target, 283 '/greenlight.Node/StreamLog', 284 glclient_dot_greenlight__pb2.StreamLogRequest.SerializeToString, 285 glclient_dot_greenlight__pb2.LogEntry.FromString, 286 options, 287 channel_credentials, 288 insecure, 289 call_credentials, 290 compression, 291 wait_for_ready, 292 timeout, 293 metadata, 294 _registered_method=True) 295 296 @staticmethod 297 def StreamCustommsg(request, 298 target, 299 options=(), 300 channel_credentials=None, 301 call_credentials=None, 302 insecure=False, 303 compression=None, 304 wait_for_ready=None, 305 timeout=None, 306 metadata=None): 307 return grpc.experimental.unary_stream( 308 request, 309 target, 310 '/greenlight.Node/StreamCustommsg', 311 glclient_dot_greenlight__pb2.StreamCustommsgRequest.SerializeToString, 312 glclient_dot_greenlight__pb2.Custommsg.FromString, 313 options, 314 channel_credentials, 315 insecure, 316 call_credentials, 317 compression, 318 wait_for_ready, 319 timeout, 320 metadata, 321 _registered_method=True) 322 323 @staticmethod 324 def StreamHsmRequests(request, 325 target, 326 options=(), 327 channel_credentials=None, 328 call_credentials=None, 329 insecure=False, 330 compression=None, 331 wait_for_ready=None, 332 timeout=None, 333 metadata=None): 334 return grpc.experimental.unary_stream( 335 request, 336 target, 337 '/greenlight.Node/StreamHsmRequests', 338 glclient_dot_greenlight__pb2.Empty.SerializeToString, 339 glclient_dot_greenlight__pb2.HsmRequest.FromString, 340 options, 341 channel_credentials, 342 insecure, 343 call_credentials, 344 compression, 345 wait_for_ready, 346 timeout, 347 metadata, 348 _registered_method=True) 349 350 @staticmethod 351 def RespondHsmRequest(request, 352 target, 353 options=(), 354 channel_credentials=None, 355 call_credentials=None, 356 insecure=False, 357 compression=None, 358 wait_for_ready=None, 359 timeout=None, 360 metadata=None): 361 return grpc.experimental.unary_unary( 362 request, 363 target, 364 '/greenlight.Node/RespondHsmRequest', 365 glclient_dot_greenlight__pb2.HsmResponse.SerializeToString, 366 glclient_dot_greenlight__pb2.Empty.FromString, 367 options, 368 channel_credentials, 369 insecure, 370 call_credentials, 371 compression, 372 wait_for_ready, 373 timeout, 374 metadata, 375 _registered_method=True) 376 377 @staticmethod 378 def Configure(request, 379 target, 380 options=(), 381 channel_credentials=None, 382 call_credentials=None, 383 insecure=False, 384 compression=None, 385 wait_for_ready=None, 386 timeout=None, 387 metadata=None): 388 return grpc.experimental.unary_unary( 389 request, 390 target, 391 '/greenlight.Node/Configure', 392 glclient_dot_greenlight__pb2.GlConfig.SerializeToString, 393 glclient_dot_greenlight__pb2.Empty.FromString, 394 options, 395 channel_credentials, 396 insecure, 397 call_credentials, 398 compression, 399 wait_for_ready, 400 timeout, 401 metadata, 402 _registered_method=True) 403 404 @staticmethod 405 def TrampolinePay(request, 406 target, 407 options=(), 408 channel_credentials=None, 409 call_credentials=None, 410 insecure=False, 411 compression=None, 412 wait_for_ready=None, 413 timeout=None, 414 metadata=None): 415 return grpc.experimental.unary_unary( 416 request, 417 target, 418 '/greenlight.Node/TrampolinePay', 419 glclient_dot_greenlight__pb2.TrampolinePayRequest.SerializeToString, 420 glclient_dot_greenlight__pb2.TrampolinePayResponse.FromString, 421 options, 422 channel_credentials, 423 insecure, 424 call_credentials, 425 compression, 426 wait_for_ready, 427 timeout, 428 metadata, 429 _registered_method=True)
The node service represents your node running on greenlight's
infrastructure. You can use the exposed RPC methods to interact
with your node. The URI used to connect to the node depends on
where the node is being scheduled and is returned by the
Scheduler.Schedule()
RPC call.
Notice that in order to connect to the node the caller must use the
node-specific mTLS keypair returned by Scheduler.Register()
or
Scheduler.Recover()
. In particular the anonymous mTLS keypair is
rejected by the node.
Deprecated methods are being replaced by the standardized and
automatically managed cln-grpc protocol you can find in
node.proto
242 @staticmethod 243 def StreamIncoming(request, 244 target, 245 options=(), 246 channel_credentials=None, 247 call_credentials=None, 248 insecure=False, 249 compression=None, 250 wait_for_ready=None, 251 timeout=None, 252 metadata=None): 253 return grpc.experimental.unary_stream( 254 request, 255 target, 256 '/greenlight.Node/StreamIncoming', 257 glclient_dot_greenlight__pb2.StreamIncomingFilter.SerializeToString, 258 glclient_dot_greenlight__pb2.IncomingPayment.FromString, 259 options, 260 channel_credentials, 261 insecure, 262 call_credentials, 263 compression, 264 wait_for_ready, 265 timeout, 266 metadata, 267 _registered_method=True)
269 @staticmethod 270 def StreamLog(request, 271 target, 272 options=(), 273 channel_credentials=None, 274 call_credentials=None, 275 insecure=False, 276 compression=None, 277 wait_for_ready=None, 278 timeout=None, 279 metadata=None): 280 return grpc.experimental.unary_stream( 281 request, 282 target, 283 '/greenlight.Node/StreamLog', 284 glclient_dot_greenlight__pb2.StreamLogRequest.SerializeToString, 285 glclient_dot_greenlight__pb2.LogEntry.FromString, 286 options, 287 channel_credentials, 288 insecure, 289 call_credentials, 290 compression, 291 wait_for_ready, 292 timeout, 293 metadata, 294 _registered_method=True)
296 @staticmethod 297 def StreamCustommsg(request, 298 target, 299 options=(), 300 channel_credentials=None, 301 call_credentials=None, 302 insecure=False, 303 compression=None, 304 wait_for_ready=None, 305 timeout=None, 306 metadata=None): 307 return grpc.experimental.unary_stream( 308 request, 309 target, 310 '/greenlight.Node/StreamCustommsg', 311 glclient_dot_greenlight__pb2.StreamCustommsgRequest.SerializeToString, 312 glclient_dot_greenlight__pb2.Custommsg.FromString, 313 options, 314 channel_credentials, 315 insecure, 316 call_credentials, 317 compression, 318 wait_for_ready, 319 timeout, 320 metadata, 321 _registered_method=True)
323 @staticmethod 324 def StreamHsmRequests(request, 325 target, 326 options=(), 327 channel_credentials=None, 328 call_credentials=None, 329 insecure=False, 330 compression=None, 331 wait_for_ready=None, 332 timeout=None, 333 metadata=None): 334 return grpc.experimental.unary_stream( 335 request, 336 target, 337 '/greenlight.Node/StreamHsmRequests', 338 glclient_dot_greenlight__pb2.Empty.SerializeToString, 339 glclient_dot_greenlight__pb2.HsmRequest.FromString, 340 options, 341 channel_credentials, 342 insecure, 343 call_credentials, 344 compression, 345 wait_for_ready, 346 timeout, 347 metadata, 348 _registered_method=True)
350 @staticmethod 351 def RespondHsmRequest(request, 352 target, 353 options=(), 354 channel_credentials=None, 355 call_credentials=None, 356 insecure=False, 357 compression=None, 358 wait_for_ready=None, 359 timeout=None, 360 metadata=None): 361 return grpc.experimental.unary_unary( 362 request, 363 target, 364 '/greenlight.Node/RespondHsmRequest', 365 glclient_dot_greenlight__pb2.HsmResponse.SerializeToString, 366 glclient_dot_greenlight__pb2.Empty.FromString, 367 options, 368 channel_credentials, 369 insecure, 370 call_credentials, 371 compression, 372 wait_for_ready, 373 timeout, 374 metadata, 375 _registered_method=True)
377 @staticmethod 378 def Configure(request, 379 target, 380 options=(), 381 channel_credentials=None, 382 call_credentials=None, 383 insecure=False, 384 compression=None, 385 wait_for_ready=None, 386 timeout=None, 387 metadata=None): 388 return grpc.experimental.unary_unary( 389 request, 390 target, 391 '/greenlight.Node/Configure', 392 glclient_dot_greenlight__pb2.GlConfig.SerializeToString, 393 glclient_dot_greenlight__pb2.Empty.FromString, 394 options, 395 channel_credentials, 396 insecure, 397 call_credentials, 398 compression, 399 wait_for_ready, 400 timeout, 401 metadata, 402 _registered_method=True)
404 @staticmethod 405 def TrampolinePay(request, 406 target, 407 options=(), 408 channel_credentials=None, 409 call_credentials=None, 410 insecure=False, 411 compression=None, 412 wait_for_ready=None, 413 timeout=None, 414 metadata=None): 415 return grpc.experimental.unary_unary( 416 request, 417 target, 418 '/greenlight.Node/TrampolinePay', 419 glclient_dot_greenlight__pb2.TrampolinePayRequest.SerializeToString, 420 glclient_dot_greenlight__pb2.TrampolinePayResponse.FromString, 421 options, 422 channel_credentials, 423 insecure, 424 call_credentials, 425 compression, 426 wait_for_ready, 427 timeout, 428 metadata, 429 _registered_method=True)
432class HsmStub(object): 433 """Missing associated documentation comment in .proto file.""" 434 435 def __init__(self, channel): 436 """Constructor. 437 438 Args: 439 channel: A grpc.Channel. 440 """ 441 self.Request = channel.unary_unary( 442 '/greenlight.Hsm/Request', 443 request_serializer=glclient_dot_greenlight__pb2.HsmRequest.SerializeToString, 444 response_deserializer=glclient_dot_greenlight__pb2.HsmResponse.FromString, 445 _registered_method=True) 446 self.Ping = channel.unary_unary( 447 '/greenlight.Hsm/Ping', 448 request_serializer=glclient_dot_greenlight__pb2.Empty.SerializeToString, 449 response_deserializer=glclient_dot_greenlight__pb2.Empty.FromString, 450 _registered_method=True)
Missing associated documentation comment in .proto file.
435 def __init__(self, channel): 436 """Constructor. 437 438 Args: 439 channel: A grpc.Channel. 440 """ 441 self.Request = channel.unary_unary( 442 '/greenlight.Hsm/Request', 443 request_serializer=glclient_dot_greenlight__pb2.HsmRequest.SerializeToString, 444 response_deserializer=glclient_dot_greenlight__pb2.HsmResponse.FromString, 445 _registered_method=True) 446 self.Ping = channel.unary_unary( 447 '/greenlight.Hsm/Ping', 448 request_serializer=glclient_dot_greenlight__pb2.Empty.SerializeToString, 449 response_deserializer=glclient_dot_greenlight__pb2.Empty.FromString, 450 _registered_method=True)
Constructor.
Args: channel: A grpc.Channel.
453class HsmServicer(object): 454 """Missing associated documentation comment in .proto file.""" 455 456 def Request(self, request, context): 457 """Missing associated documentation comment in .proto file.""" 458 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 459 context.set_details('Method not implemented!') 460 raise NotImplementedError('Method not implemented!') 461 462 def Ping(self, request, context): 463 """Missing associated documentation comment in .proto file.""" 464 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 465 context.set_details('Method not implemented!') 466 raise NotImplementedError('Method not implemented!')
Missing associated documentation comment in .proto file.
456 def Request(self, request, context): 457 """Missing associated documentation comment in .proto file.""" 458 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 459 context.set_details('Method not implemented!') 460 raise NotImplementedError('Method not implemented!')
Missing associated documentation comment in .proto file.
462 def Ping(self, request, context): 463 """Missing associated documentation comment in .proto file.""" 464 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 465 context.set_details('Method not implemented!') 466 raise NotImplementedError('Method not implemented!')
Missing associated documentation comment in .proto file.
469def add_HsmServicer_to_server(servicer, server): 470 rpc_method_handlers = { 471 'Request': grpc.unary_unary_rpc_method_handler( 472 servicer.Request, 473 request_deserializer=glclient_dot_greenlight__pb2.HsmRequest.FromString, 474 response_serializer=glclient_dot_greenlight__pb2.HsmResponse.SerializeToString, 475 ), 476 'Ping': grpc.unary_unary_rpc_method_handler( 477 servicer.Ping, 478 request_deserializer=glclient_dot_greenlight__pb2.Empty.FromString, 479 response_serializer=glclient_dot_greenlight__pb2.Empty.SerializeToString, 480 ), 481 } 482 generic_handler = grpc.method_handlers_generic_handler( 483 'greenlight.Hsm', rpc_method_handlers) 484 server.add_generic_rpc_handlers((generic_handler,)) 485 server.add_registered_method_handlers('greenlight.Hsm', rpc_method_handlers)
489class Hsm(object): 490 """Missing associated documentation comment in .proto file.""" 491 492 @staticmethod 493 def Request(request, 494 target, 495 options=(), 496 channel_credentials=None, 497 call_credentials=None, 498 insecure=False, 499 compression=None, 500 wait_for_ready=None, 501 timeout=None, 502 metadata=None): 503 return grpc.experimental.unary_unary( 504 request, 505 target, 506 '/greenlight.Hsm/Request', 507 glclient_dot_greenlight__pb2.HsmRequest.SerializeToString, 508 glclient_dot_greenlight__pb2.HsmResponse.FromString, 509 options, 510 channel_credentials, 511 insecure, 512 call_credentials, 513 compression, 514 wait_for_ready, 515 timeout, 516 metadata, 517 _registered_method=True) 518 519 @staticmethod 520 def Ping(request, 521 target, 522 options=(), 523 channel_credentials=None, 524 call_credentials=None, 525 insecure=False, 526 compression=None, 527 wait_for_ready=None, 528 timeout=None, 529 metadata=None): 530 return grpc.experimental.unary_unary( 531 request, 532 target, 533 '/greenlight.Hsm/Ping', 534 glclient_dot_greenlight__pb2.Empty.SerializeToString, 535 glclient_dot_greenlight__pb2.Empty.FromString, 536 options, 537 channel_credentials, 538 insecure, 539 call_credentials, 540 compression, 541 wait_for_ready, 542 timeout, 543 metadata, 544 _registered_method=True)
Missing associated documentation comment in .proto file.
492 @staticmethod 493 def Request(request, 494 target, 495 options=(), 496 channel_credentials=None, 497 call_credentials=None, 498 insecure=False, 499 compression=None, 500 wait_for_ready=None, 501 timeout=None, 502 metadata=None): 503 return grpc.experimental.unary_unary( 504 request, 505 target, 506 '/greenlight.Hsm/Request', 507 glclient_dot_greenlight__pb2.HsmRequest.SerializeToString, 508 glclient_dot_greenlight__pb2.HsmResponse.FromString, 509 options, 510 channel_credentials, 511 insecure, 512 call_credentials, 513 compression, 514 wait_for_ready, 515 timeout, 516 metadata, 517 _registered_method=True)
519 @staticmethod 520 def Ping(request, 521 target, 522 options=(), 523 channel_credentials=None, 524 call_credentials=None, 525 insecure=False, 526 compression=None, 527 wait_for_ready=None, 528 timeout=None, 529 metadata=None): 530 return grpc.experimental.unary_unary( 531 request, 532 target, 533 '/greenlight.Hsm/Ping', 534 glclient_dot_greenlight__pb2.Empty.SerializeToString, 535 glclient_dot_greenlight__pb2.Empty.FromString, 536 options, 537 channel_credentials, 538 insecure, 539 call_credentials, 540 compression, 541 wait_for_ready, 542 timeout, 543 metadata, 544 _registered_method=True)