mirror of
https://github.com/bumi/lnrpc
synced 2026-02-22 18:27:49 +00:00
Add support for v0.11 GRPC services
This also refactors the client GRPC wrapper to dynamically load the request objects. All GRPC generated client files now live under lib/grpc_services
This commit is contained in:
40
lib/grpc_services/autopilotrpc/autopilot_services_pb.rb
Normal file
40
lib/grpc_services/autopilotrpc/autopilot_services_pb.rb
Normal file
@@ -0,0 +1,40 @@
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# Source: autopilotrpc/autopilot.proto for package 'autopilotrpc'
|
||||
|
||||
require 'grpc'
|
||||
require 'autopilotrpc/autopilot_pb'
|
||||
|
||||
module Autopilotrpc
|
||||
module Autopilot
|
||||
# Autopilot is a service that can be used to get information about the current
|
||||
# state of the daemon's autopilot agent, and also supply it with information
|
||||
# that can be used when deciding where to open channels.
|
||||
class Service
|
||||
|
||||
include GRPC::GenericService
|
||||
|
||||
self.marshal_class_method = :encode
|
||||
self.unmarshal_class_method = :decode
|
||||
self.service_name = 'autopilotrpc.Autopilot'
|
||||
|
||||
#
|
||||
# Status returns whether the daemon's autopilot agent is active.
|
||||
rpc :Status, StatusRequest, StatusResponse
|
||||
#
|
||||
# ModifyStatus is used to modify the status of the autopilot agent, like
|
||||
# enabling or disabling it.
|
||||
rpc :ModifyStatus, ModifyStatusRequest, ModifyStatusResponse
|
||||
#
|
||||
# QueryScores queries all available autopilot heuristics, in addition to any
|
||||
# active combination of these heruristics, for the scores they would give to
|
||||
# the given nodes.
|
||||
rpc :QueryScores, QueryScoresRequest, QueryScoresResponse
|
||||
#
|
||||
# SetScores attempts to set the scores used by the running autopilot agent,
|
||||
# if the external scoring heuristic is enabled.
|
||||
rpc :SetScores, SetScoresRequest, SetScoresResponse
|
||||
end
|
||||
|
||||
Stub = Service.rpc_stub_class
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user