mirror of
https://github.com/bumi/lnrpc
synced 2026-02-23 10:40:51 +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_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