lnrpc: add initial basic getinfo RPC
This commit is contained in:
parent
2512fecf88
commit
630561326c
203
lnrpc/rpc.pb.go
203
lnrpc/rpc.pb.go
@ -24,6 +24,8 @@ It has these top-level messages:
|
||||
Peer
|
||||
ListPeersRequest
|
||||
ListPeersResponse
|
||||
GetInfoRequest
|
||||
GetInfoResponse
|
||||
OpenChannelRequest
|
||||
OpenChannelResponse
|
||||
CloseChannelRequest
|
||||
@ -269,6 +271,27 @@ func (m *ListPeersResponse) GetPeers() []*Peer {
|
||||
return nil
|
||||
}
|
||||
|
||||
type GetInfoRequest struct {
|
||||
}
|
||||
|
||||
func (m *GetInfoRequest) Reset() { *m = GetInfoRequest{} }
|
||||
func (m *GetInfoRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetInfoRequest) ProtoMessage() {}
|
||||
func (*GetInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
|
||||
|
||||
type GetInfoResponse struct {
|
||||
LightningId string `protobuf:"bytes,1,opt,name=lightning_id" json:"lightning_id,omitempty"`
|
||||
IdentityAddress string `protobuf:"bytes,2,opt,name=identity_address" json:"identity_address,omitempty"`
|
||||
NumPendingChannels uint32 `protobuf:"varint,3,opt,name=num_pending_channels" json:"num_pending_channels,omitempty"`
|
||||
NumActiveChannels uint32 `protobuf:"varint,4,opt,name=num_active_channels" json:"num_active_channels,omitempty"`
|
||||
NumPeers uint32 `protobuf:"varint,5,opt,name=num_peers" json:"num_peers,omitempty"`
|
||||
}
|
||||
|
||||
func (m *GetInfoResponse) Reset() { *m = GetInfoResponse{} }
|
||||
func (m *GetInfoResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetInfoResponse) ProtoMessage() {}
|
||||
func (*GetInfoResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
|
||||
|
||||
type OpenChannelRequest struct {
|
||||
TargetPeerId int32 `protobuf:"varint,1,opt,name=target_peer_id" json:"target_peer_id,omitempty"`
|
||||
TargetNode *LightningAddress `protobuf:"bytes,2,opt,name=target_node" json:"target_node,omitempty"`
|
||||
@ -281,7 +304,7 @@ type OpenChannelRequest struct {
|
||||
func (m *OpenChannelRequest) Reset() { *m = OpenChannelRequest{} }
|
||||
func (m *OpenChannelRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*OpenChannelRequest) ProtoMessage() {}
|
||||
func (*OpenChannelRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
|
||||
func (*OpenChannelRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} }
|
||||
|
||||
func (m *OpenChannelRequest) GetTargetNode() *LightningAddress {
|
||||
if m != nil {
|
||||
@ -297,7 +320,7 @@ type OpenChannelResponse struct {
|
||||
func (m *OpenChannelResponse) Reset() { *m = OpenChannelResponse{} }
|
||||
func (m *OpenChannelResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*OpenChannelResponse) ProtoMessage() {}
|
||||
func (*OpenChannelResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
|
||||
func (*OpenChannelResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
|
||||
|
||||
func (m *OpenChannelResponse) GetChannelPoint() *ChannelPoint {
|
||||
if m != nil {
|
||||
@ -315,7 +338,7 @@ type CloseChannelRequest struct {
|
||||
func (m *CloseChannelRequest) Reset() { *m = CloseChannelRequest{} }
|
||||
func (m *CloseChannelRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*CloseChannelRequest) ProtoMessage() {}
|
||||
func (*CloseChannelRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} }
|
||||
func (*CloseChannelRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} }
|
||||
|
||||
func (m *CloseChannelRequest) GetChannelPoint() *ChannelPoint {
|
||||
if m != nil {
|
||||
@ -331,7 +354,7 @@ type CloseChannelResponse struct {
|
||||
func (m *CloseChannelResponse) Reset() { *m = CloseChannelResponse{} }
|
||||
func (m *CloseChannelResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*CloseChannelResponse) ProtoMessage() {}
|
||||
func (*CloseChannelResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
|
||||
func (*CloseChannelResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} }
|
||||
|
||||
type WalletBalanceRequest struct {
|
||||
WitnessOnly bool `protobuf:"varint,1,opt,name=witness_only" json:"witness_only,omitempty"`
|
||||
@ -340,7 +363,7 @@ type WalletBalanceRequest struct {
|
||||
func (m *WalletBalanceRequest) Reset() { *m = WalletBalanceRequest{} }
|
||||
func (m *WalletBalanceRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*WalletBalanceRequest) ProtoMessage() {}
|
||||
func (*WalletBalanceRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} }
|
||||
func (*WalletBalanceRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} }
|
||||
|
||||
type WalletBalanceResponse struct {
|
||||
Balance float64 `protobuf:"fixed64,1,opt,name=balance" json:"balance,omitempty"`
|
||||
@ -349,7 +372,7 @@ type WalletBalanceResponse struct {
|
||||
func (m *WalletBalanceResponse) Reset() { *m = WalletBalanceResponse{} }
|
||||
func (m *WalletBalanceResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*WalletBalanceResponse) ProtoMessage() {}
|
||||
func (*WalletBalanceResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} }
|
||||
func (*WalletBalanceResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{22} }
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*ChannelPoint)(nil), "lnrpc.ChannelPoint")
|
||||
@ -367,6 +390,8 @@ func init() {
|
||||
proto.RegisterType((*Peer)(nil), "lnrpc.Peer")
|
||||
proto.RegisterType((*ListPeersRequest)(nil), "lnrpc.ListPeersRequest")
|
||||
proto.RegisterType((*ListPeersResponse)(nil), "lnrpc.ListPeersResponse")
|
||||
proto.RegisterType((*GetInfoRequest)(nil), "lnrpc.GetInfoRequest")
|
||||
proto.RegisterType((*GetInfoResponse)(nil), "lnrpc.GetInfoResponse")
|
||||
proto.RegisterType((*OpenChannelRequest)(nil), "lnrpc.OpenChannelRequest")
|
||||
proto.RegisterType((*OpenChannelResponse)(nil), "lnrpc.OpenChannelResponse")
|
||||
proto.RegisterType((*CloseChannelRequest)(nil), "lnrpc.CloseChannelRequest")
|
||||
@ -393,6 +418,7 @@ type LightningClient interface {
|
||||
NewAddress(ctx context.Context, in *NewAddressRequest, opts ...grpc.CallOption) (*NewAddressResponse, error)
|
||||
ConnectPeer(ctx context.Context, in *ConnectPeerRequest, opts ...grpc.CallOption) (*ConnectPeerResponse, error)
|
||||
ListPeers(ctx context.Context, in *ListPeersRequest, opts ...grpc.CallOption) (*ListPeersResponse, error)
|
||||
GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*GetInfoResponse, error)
|
||||
OpenChannel(ctx context.Context, in *OpenChannelRequest, opts ...grpc.CallOption) (*OpenChannelResponse, error)
|
||||
CloseChannel(ctx context.Context, in *CloseChannelRequest, opts ...grpc.CallOption) (*CloseChannelResponse, error)
|
||||
}
|
||||
@ -459,6 +485,15 @@ func (c *lightningClient) ListPeers(ctx context.Context, in *ListPeersRequest, o
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *lightningClient) GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*GetInfoResponse, error) {
|
||||
out := new(GetInfoResponse)
|
||||
err := grpc.Invoke(ctx, "/lnrpc.Lightning/GetInfo", in, out, c.cc, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *lightningClient) OpenChannel(ctx context.Context, in *OpenChannelRequest, opts ...grpc.CallOption) (*OpenChannelResponse, error) {
|
||||
out := new(OpenChannelResponse)
|
||||
err := grpc.Invoke(ctx, "/lnrpc.Lightning/OpenChannel", in, out, c.cc, opts...)
|
||||
@ -486,6 +521,7 @@ type LightningServer interface {
|
||||
NewAddress(context.Context, *NewAddressRequest) (*NewAddressResponse, error)
|
||||
ConnectPeer(context.Context, *ConnectPeerRequest) (*ConnectPeerResponse, error)
|
||||
ListPeers(context.Context, *ListPeersRequest) (*ListPeersResponse, error)
|
||||
GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, error)
|
||||
OpenChannel(context.Context, *OpenChannelRequest) (*OpenChannelResponse, error)
|
||||
CloseChannel(context.Context, *CloseChannelRequest) (*CloseChannelResponse, error)
|
||||
}
|
||||
@ -602,6 +638,24 @@ func _Lightning_ListPeers_Handler(srv interface{}, ctx context.Context, dec func
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Lightning_GetInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetInfoRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(LightningServer).GetInfo(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/lnrpc.Lightning/GetInfo",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(LightningServer).GetInfo(ctx, req.(*GetInfoRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Lightning_OpenChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(OpenChannelRequest)
|
||||
if err := dec(in); err != nil {
|
||||
@ -666,6 +720,10 @@ var _Lightning_serviceDesc = grpc.ServiceDesc{
|
||||
MethodName: "ListPeers",
|
||||
Handler: _Lightning_ListPeers_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetInfo",
|
||||
Handler: _Lightning_GetInfo_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "OpenChannel",
|
||||
Handler: _Lightning_OpenChannel_Handler,
|
||||
@ -679,68 +737,73 @@ var _Lightning_serviceDesc = grpc.ServiceDesc{
|
||||
}
|
||||
|
||||
var fileDescriptor0 = []byte{
|
||||
// 998 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x56, 0xdd, 0x6e, 0xdb, 0x36,
|
||||
0x14, 0x9e, 0x63, 0x3b, 0xb1, 0x8f, 0xed, 0x24, 0xa6, 0x9d, 0xc6, 0x75, 0x3b, 0xa0, 0x23, 0xd6,
|
||||
0x2e, 0x18, 0x0a, 0x6f, 0x70, 0x77, 0x31, 0xb4, 0x40, 0x01, 0x37, 0x09, 0x96, 0xad, 0x5d, 0x1b,
|
||||
0x2c, 0x1e, 0x8a, 0x5d, 0x11, 0xb2, 0xc4, 0xc4, 0x42, 0x65, 0x52, 0x33, 0xa9, 0xa4, 0xde, 0x03,
|
||||
0xec, 0x19, 0xf6, 0x10, 0x7b, 0x8b, 0xdd, 0xef, 0x99, 0x76, 0x48, 0x51, 0x96, 0xfc, 0xd3, 0x8b,
|
||||
0x5d, 0xf2, 0xf0, 0x3b, 0x3f, 0xdf, 0xe1, 0x77, 0x8e, 0x04, 0xf5, 0x79, 0xec, 0x0f, 0xe2, 0xb9,
|
||||
0xd4, 0x92, 0x54, 0x23, 0x81, 0x07, 0xfa, 0x1c, 0x9a, 0xa7, 0x53, 0x4f, 0x08, 0x1e, 0x5d, 0xca,
|
||||
0x50, 0x68, 0xd2, 0x85, 0xe6, 0x75, 0x22, 0x82, 0x50, 0xdc, 0x30, 0xfd, 0x31, 0x0c, 0x7a, 0xa5,
|
||||
0x47, 0xa5, 0x93, 0xa6, 0xb1, 0xca, 0x44, 0xc7, 0x89, 0x66, 0xa1, 0x08, 0xf8, 0xc7, 0xde, 0x0e,
|
||||
0x5a, 0x5b, 0xf4, 0x3b, 0x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0xd0, 0x79, 0xdc, 0x6c, 0xb4,
|
||||
0x0c, 0xb2, 0x34, 0xfc, 0xbb, 0x02, 0xf5, 0xe5, 0x9b, 0x91, 0x9f, 0xa0, 0xb5, 0xe2, 0x47, 0x1e,
|
||||
0x38, 0x8e, 0xdb, 0x72, 0xf7, 0x1f, 0x6e, 0xbf, 0x74, 0xa9, 0x5e, 0x40, 0x2d, 0xfb, 0x2a, 0x90,
|
||||
0x7b, 0xdb, 0x3f, 0x40, 0xfd, 0xe3, 0x0d, 0xbb, 0x73, 0x7e, 0x09, 0xf5, 0xe5, 0xfa, 0x27, 0x45,
|
||||
0x54, 0xf1, 0x13, 0xd2, 0xef, 0x6d, 0x5e, 0x38, 0xff, 0x11, 0x40, 0xbe, 0x80, 0x49, 0xef, 0x53,
|
||||
0x5f, 0x81, 0xfe, 0xfd, 0x2d, 0x37, 0x2e, 0xc4, 0x19, 0x34, 0x0a, 0xfb, 0x95, 0x64, 0xc8, 0xcd,
|
||||
0x85, 0xdd, 0xef, 0x6f, 0xbb, 0xca, 0x89, 0x2c, 0x87, 0x91, 0xe4, 0x43, 0xb2, 0x3a, 0xb2, 0x4b,
|
||||
0x22, 0x9b, 0x73, 0x8b, 0x55, 0x14, 0x54, 0xbd, 0xac, 0x62, 0x73, 0x5c, 0x97, 0x55, 0x6c, 0x1b,
|
||||
0x82, 0x1f, 0xf0, 0xe7, 0xa4, 0x20, 0x33, 0xb2, 0xac, 0x78, 0x53, 0xed, 0xfd, 0x07, 0x5b, 0xef,
|
||||
0xd2, 0x40, 0x93, 0x5d, 0xfb, 0xcf, 0xf3, 0xec, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x71, 0x0f,
|
||||
0xf3, 0x8a, 0x00, 0x09, 0x00, 0x00,
|
||||
// 1076 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x56, 0xcd, 0x6e, 0xdb, 0x46,
|
||||
0x10, 0xae, 0x2c, 0xc9, 0x96, 0x46, 0x96, 0x2d, 0xad, 0xfc, 0xa3, 0xc8, 0x29, 0x90, 0x2e, 0x9a,
|
||||
0xd4, 0x28, 0x02, 0xb7, 0x70, 0x7a, 0x08, 0x12, 0x20, 0x80, 0x62, 0x1b, 0x71, 0x9a, 0x34, 0x31,
|
||||
0x6a, 0x17, 0x41, 0x4f, 0x04, 0x45, 0xae, 0x2d, 0x22, 0xd4, 0x2e, 0xab, 0x5d, 0xda, 0x51, 0x1f,
|
||||
0xa0, 0xd7, 0x5e, 0xfb, 0x3e, 0xbd, 0xf7, 0x31, 0xfa, 0x1c, 0x9d, 0x5d, 0xee, 0x92, 0xd4, 0x4f,
|
||||
0x0e, 0x3d, 0x72, 0xe6, 0xdb, 0xd9, 0xf9, 0x66, 0xbe, 0x99, 0x25, 0x34, 0xa7, 0x49, 0x70, 0x94,
|
||||
0x4c, 0x85, 0x12, 0xa4, 0x1e, 0x73, 0xfc, 0xa0, 0xcf, 0x60, 0xf3, 0x64, 0xec, 0x73, 0xce, 0xe2,
|
||||
0x0b, 0x11, 0x71, 0x45, 0x76, 0x60, 0xf3, 0x3a, 0xe5, 0x61, 0xc4, 0x6f, 0x3c, 0xf5, 0x29, 0x0a,
|
||||
0xfb, 0x95, 0x07, 0x95, 0xc3, 0x4d, 0x6d, 0x15, 0xa9, 0x4a, 0x52, 0xe5, 0x45, 0x3c, 0x64, 0x9f,
|
||||
0xfa, 0x6b, 0x68, 0x6d, 0xd3, 0x1f, 0xa0, 0xf3, 0x36, 0xba, 0x19, 0x2b, 0x8e, 0xe8, 0x61, 0x18,
|
||||
0x4e, 0x99, 0x94, 0x84, 0x00, 0x24, 0xe9, 0xe8, 0x0d, 0x9b, 0x9d, 0xfb, 0x72, 0x6c, 0x4e, 0x37,
|
||||
0xc9, 0x26, 0xd4, 0xc6, 0x42, 0x2a, 0x73, 0xaa, 0x49, 0xff, 0xa8, 0xc0, 0xf6, 0x25, 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0x18, 0x84, 0xa9, 0x97, 0xd9, 0xf4, 0xba, 0xdc, 0x50, 0x39, 0x77,
|
||||
0x91, 0xe2, 0x08, 0xf4, 0x04, 0x8f, 0x67, 0x16, 0x7d, 0x08, 0xbb, 0x0b, 0xe8, 0x22, 0xae, 0x1b,
|
||||
0x7f, 0x8d, 0xac, 0x1c, 0xff, 0x5b, 0x83, 0x66, 0xde, 0x33, 0xf2, 0x23, 0xb4, 0xe7, 0xce, 0x91,
|
||||
0x03, 0xcb, 0x71, 0xd5, 0xdd, 0x83, 0xfb, 0xab, 0x9d, 0xf6, 0xaa, 0xe7, 0xd0, 0x70, 0x2f, 0x17,
|
||||
0xd9, 0x5b, 0xfd, 0x48, 0x0e, 0xf6, 0x97, 0xec, 0xf6, 0xf0, 0x0b, 0x68, 0xe6, 0x4f, 0x14, 0x29,
|
||||
0xa3, 0xca, 0xcf, 0xdc, 0xa0, 0xbf, 0xec, 0xb0, 0xe7, 0x87, 0x00, 0xc5, 0x23, 0x41, 0xfa, 0x9f,
|
||||
0x7b, 0xa9, 0x06, 0xf7, 0x56, 0x78, 0x6c, 0x88, 0x53, 0x68, 0x95, 0xde, 0x00, 0xe2, 0x90, 0xcb,
|
||||
0x8f, 0xca, 0x60, 0xb0, 0xca, 0x55, 0x10, 0xc9, 0x17, 0x06, 0x29, 0x86, 0x64, 0x7e, 0xad, 0xe4,
|
||||
0x44, 0x96, 0x77, 0xcb, 0x53, 0xd8, 0xb0, 0xcb, 0x82, 0xec, 0x5a, 0xd0, 0xfc, 0x3e, 0x19, 0xec,
|
||||
0x2d, 0x9a, 0x8b, 0xfc, 0x4b, 0xf3, 0x90, 0xe7, 0xbf, 0x3c, 0xe8, 0x79, 0xfe, 0xab, 0xc6, 0xe7,
|
||||
0x15, 0xfe, 0x7a, 0x95, 0x04, 0x4a, 0x72, 0xae, 0xcb, 0x73, 0x32, 0x38, 0x58, 0xe9, 0xcb, 0x02,
|
||||
0x8d, 0xd6, 0xcd, 0x1f, 0xdd, 0x93, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0xa5, 0x75, 0xea, 0x81,
|
||||
0xde, 0x09, 0x00, 0x00,
|
||||
}
|
||||
|
@ -10,6 +10,7 @@ service Lightning {
|
||||
|
||||
rpc ConnectPeer(ConnectPeerRequest) returns (ConnectPeerResponse);
|
||||
rpc ListPeers(ListPeersRequest) returns (ListPeersResponse);
|
||||
rpc GetInfo(GetInfoRequest) returns (GetInfoResponse);
|
||||
|
||||
rpc OpenChannel(OpenChannelRequest) returns (OpenChannelResponse);
|
||||
rpc CloseChannel(CloseChannelRequest) returns (CloseChannelResponse);
|
||||
@ -109,6 +110,17 @@ message ListPeersResponse {
|
||||
repeated Peer peers = 1;
|
||||
}
|
||||
|
||||
message GetInfoRequest{}
|
||||
message GetInfoResponse {
|
||||
string lightning_id = 1;
|
||||
string identity_address = 2;
|
||||
|
||||
uint32 num_pending_channels = 3;
|
||||
uint32 num_active_channels = 4;
|
||||
|
||||
uint32 num_peers = 5;
|
||||
}
|
||||
|
||||
message OpenChannelRequest {
|
||||
int32 target_peer_id = 1;
|
||||
LightningAddress target_node = 2;
|
||||
|
Loading…
Reference in New Issue
Block a user