mirror of
https://github.com/bumi/lnrpc
synced 2026-02-14 07:27:48 +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:
27
lib/grpc_services/verrpc/verrpc_pb.rb
Normal file
27
lib/grpc_services/verrpc/verrpc_pb.rb
Normal file
@@ -0,0 +1,27 @@
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: verrpc/verrpc.proto
|
||||
|
||||
require 'google/protobuf'
|
||||
|
||||
Google::Protobuf::DescriptorPool.generated_pool.build do
|
||||
add_file("verrpc/verrpc.proto", :syntax => :proto3) do
|
||||
add_message "verrpc.VersionRequest" do
|
||||
end
|
||||
add_message "verrpc.Version" do
|
||||
optional :commit, :string, 1
|
||||
optional :commit_hash, :string, 2
|
||||
optional :version, :string, 3
|
||||
optional :app_major, :uint32, 4
|
||||
optional :app_minor, :uint32, 5
|
||||
optional :app_patch, :uint32, 6
|
||||
optional :app_pre_release, :string, 7
|
||||
repeated :build_tags, :string, 8
|
||||
optional :go_version, :string, 9
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
module Verrpc
|
||||
VersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("verrpc.VersionRequest").msgclass
|
||||
Version = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("verrpc.Version").msgclass
|
||||
end
|
||||
27
lib/grpc_services/verrpc/verrpc_services_pb.rb
Normal file
27
lib/grpc_services/verrpc/verrpc_services_pb.rb
Normal file
@@ -0,0 +1,27 @@
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# Source: verrpc/verrpc.proto for package 'verrpc'
|
||||
|
||||
require 'grpc'
|
||||
require 'verrpc/verrpc_pb'
|
||||
|
||||
module Verrpc
|
||||
module Versioner
|
||||
# Versioner is a service that can be used to get information about the version
|
||||
# and build information of the running daemon.
|
||||
class Service
|
||||
|
||||
include GRPC::GenericService
|
||||
|
||||
self.marshal_class_method = :encode
|
||||
self.unmarshal_class_method = :decode
|
||||
self.service_name = 'verrpc.Versioner'
|
||||
|
||||
# lncli: `version`
|
||||
# GetVersion returns the current version and build information of the running
|
||||
# daemon.
|
||||
rpc :GetVersion, VersionRequest, Version
|
||||
end
|
||||
|
||||
Stub = Service.rpc_stub_class
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user