mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-01-19 05:45:21 +01:00
lnrpc: add peers .proto
files
This commit is contained in:
parent
0f858958f9
commit
d2f016c105
@ -48,7 +48,7 @@ function generate() {
|
||||
--custom_opt="$opts" \
|
||||
lightning.proto stateservice.proto walletunlocker.proto
|
||||
|
||||
PACKAGES="autopilotrpc chainrpc invoicesrpc routerrpc signrpc verrpc walletrpc watchtowerrpc wtclientrpc devrpc"
|
||||
PACKAGES="autopilotrpc chainrpc invoicesrpc peersrpc routerrpc signrpc verrpc walletrpc watchtowerrpc wtclientrpc devrpc"
|
||||
for package in $PACKAGES; do
|
||||
# Special import for the wallet kit.
|
||||
manual_import=""
|
||||
|
65
lnrpc/peersrpc/peers.pb.go
Normal file
65
lnrpc/peersrpc/peers.pb.go
Normal file
@ -0,0 +1,65 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.26.0
|
||||
// protoc v3.6.1
|
||||
// source: peersrpc/peers.proto
|
||||
|
||||
package peersrpc
|
||||
|
||||
import (
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
var File_peersrpc_peers_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_peersrpc_peers_proto_rawDesc = []byte{
|
||||
0x0a, 0x14, 0x70, 0x65, 0x65, 0x72, 0x73, 0x72, 0x70, 0x63, 0x2f, 0x70, 0x65, 0x65, 0x72, 0x73,
|
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x65, 0x65, 0x72, 0x73, 0x72, 0x70, 0x63,
|
||||
0x32, 0x07, 0x0a, 0x05, 0x50, 0x65, 0x65, 0x72, 0x73, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x69, 0x74,
|
||||
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x69, 0x6e,
|
||||
0x67, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x6c, 0x6e, 0x64, 0x2f, 0x6c, 0x6e, 0x72,
|
||||
0x70, 0x63, 0x2f, 0x70, 0x65, 0x65, 0x72, 0x73, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var file_peersrpc_peers_proto_goTypes = []interface{}{}
|
||||
var file_peersrpc_peers_proto_depIdxs = []int32{
|
||||
0, // [0:0] is the sub-list for method output_type
|
||||
0, // [0:0] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_peersrpc_peers_proto_init() }
|
||||
func file_peersrpc_peers_proto_init() {
|
||||
if File_peersrpc_peers_proto != nil {
|
||||
return
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_peersrpc_peers_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 0,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_peersrpc_peers_proto_goTypes,
|
||||
DependencyIndexes: file_peersrpc_peers_proto_depIdxs,
|
||||
}.Build()
|
||||
File_peersrpc_peers_proto = out.File
|
||||
file_peersrpc_peers_proto_rawDesc = nil
|
||||
file_peersrpc_peers_proto_goTypes = nil
|
||||
file_peersrpc_peers_proto_depIdxs = nil
|
||||
}
|
10
lnrpc/peersrpc/peers.proto
Normal file
10
lnrpc/peersrpc/peers.proto
Normal file
@ -0,0 +1,10 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package peersrpc;
|
||||
|
||||
option go_package = "github.com/lightningnetwork/lnd/lnrpc/peersrpc";
|
||||
|
||||
// Peers is a service that can be used to get information and interact
|
||||
// with the other nodes of the newtwork.
|
||||
service Peers {
|
||||
}
|
46
lnrpc/peersrpc/peers.swagger.json
Normal file
46
lnrpc/peersrpc/peers.swagger.json
Normal file
@ -0,0 +1,46 @@
|
||||
{
|
||||
"swagger": "2.0",
|
||||
"info": {
|
||||
"title": "peersrpc/peers.proto",
|
||||
"version": "version not set"
|
||||
},
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"paths": {},
|
||||
"definitions": {
|
||||
"protobufAny": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type_url": {
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"type": "string",
|
||||
"format": "byte"
|
||||
}
|
||||
}
|
||||
},
|
||||
"rpcStatus": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
},
|
||||
"details": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/protobufAny"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
2
lnrpc/peersrpc/peers.yaml
Normal file
2
lnrpc/peersrpc/peers.yaml
Normal file
@ -0,0 +1,2 @@
|
||||
type: google.api.Service
|
||||
config_version: 3
|
61
lnrpc/peersrpc/peers_grpc.pb.go
Normal file
61
lnrpc/peersrpc/peers_grpc.pb.go
Normal file
@ -0,0 +1,61 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
|
||||
package peersrpc
|
||||
|
||||
import (
|
||||
grpc "google.golang.org/grpc"
|
||||
)
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
// Requires gRPC-Go v1.32.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion7
|
||||
|
||||
// PeersClient is the client API for Peers service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||
type PeersClient interface {
|
||||
}
|
||||
|
||||
type peersClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewPeersClient(cc grpc.ClientConnInterface) PeersClient {
|
||||
return &peersClient{cc}
|
||||
}
|
||||
|
||||
// PeersServer is the server API for Peers service.
|
||||
// All implementations must embed UnimplementedPeersServer
|
||||
// for forward compatibility
|
||||
type PeersServer interface {
|
||||
mustEmbedUnimplementedPeersServer()
|
||||
}
|
||||
|
||||
// UnimplementedPeersServer must be embedded to have forward compatible implementations.
|
||||
type UnimplementedPeersServer struct {
|
||||
}
|
||||
|
||||
func (UnimplementedPeersServer) mustEmbedUnimplementedPeersServer() {}
|
||||
|
||||
// UnsafePeersServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to PeersServer will
|
||||
// result in compilation errors.
|
||||
type UnsafePeersServer interface {
|
||||
mustEmbedUnimplementedPeersServer()
|
||||
}
|
||||
|
||||
func RegisterPeersServer(s grpc.ServiceRegistrar, srv PeersServer) {
|
||||
s.RegisterService(&Peers_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
// Peers_ServiceDesc is the grpc.ServiceDesc for Peers service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var Peers_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "peersrpc.Peers",
|
||||
HandlerType: (*PeersServer)(nil),
|
||||
Methods: []grpc.MethodDesc{},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "peersrpc/peers.proto",
|
||||
}
|
Loading…
Reference in New Issue
Block a user