lnrpc

package
Version: v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package lnrpc is a generated protocol buffer package.

It is generated from these files:

rpc.proto

It has these top-level messages:

SendRequest
SendResponse
ChannelPoint
LightningAddress
SendManyRequest
SendManyResponse
SendCoinsRequest
SendCoinsResponse
NewAddressRequest
NewAddressResponse
ConnectPeerRequest
ConnectPeerResponse
HTLC
ActiveChannel
ListChannelsRequest
ListChannelsResponse
Peer
ListPeersRequest
ListPeersResponse
GetInfoRequest
GetInfoResponse
ConfirmationUpdate
ChannelOpenUpdate
ChannelCloseUpdate
CloseChannelRequest
CloseStatusUpdate
PendingUpdate
OpenChannelRequest
OpenStatusUpdate
PendingChannelRequest
PendingChannelResponse
WalletBalanceRequest
WalletBalanceResponse
ChannelBalanceRequest
ChannelBalanceResponse
RoutingTableLink
ShowRoutingTableRequest
ShowRoutingTableResponse
Invoice
AddInvoiceResponse
PaymentHash
ListInvoiceRequest
ListInvoiceResponse

Index

Constants

This section is empty.

Variables

View Source
var ChannelStatus_name = map[int32]string{
	0: "ALL",
	1: "OPENING",
	2: "CLOSING",
}
View Source
var ChannelStatus_value = map[string]int32{
	"ALL":     0,
	"OPENING": 1,
	"CLOSING": 2,
}
View Source
var NewAddressRequest_AddressType_name = map[int32]string{
	0: "WITNESS_PUBKEY_HASH",
	1: "NESTED_PUBKEY_HASH",
	2: "PUBKEY_HASH",
}
View Source
var NewAddressRequest_AddressType_value = map[string]int32{
	"WITNESS_PUBKEY_HASH": 0,
	"NESTED_PUBKEY_HASH":  1,
	"PUBKEY_HASH":         2,
}

Functions

func RegisterLightningServer

func RegisterLightningServer(s *grpc.Server, srv LightningServer)

Types

type ActiveChannel

type ActiveChannel struct {
	RemotePubkey     string  `protobuf:"bytes,1,opt,name=remote_pubkey" json:"remote_pubkey,omitempty"`
	ChannelPoint     string  `protobuf:"bytes,2,opt,name=channel_point" json:"channel_point,omitempty"`
	Capacity         int64   `protobuf:"varint,3,opt,name=capacity" json:"capacity,omitempty"`
	LocalBalance     int64   `protobuf:"varint,4,opt,name=local_balance" json:"local_balance,omitempty"`
	RemoteBalance    int64   `protobuf:"varint,5,opt,name=remote_balance" json:"remote_balance,omitempty"`
	UnsettledBalance int64   `protobuf:"varint,6,opt,name=unsettled_balance" json:"unsettled_balance,omitempty"`
	PendingHtlcs     []*HTLC `protobuf:"bytes,7,rep,name=pending_htlcs" json:"pending_htlcs,omitempty"`
	NumUpdates       uint64  `protobuf:"varint,8,opt,name=num_updates" json:"num_updates,omitempty"`
}

func (*ActiveChannel) Descriptor

func (*ActiveChannel) Descriptor() ([]byte, []int)

func (*ActiveChannel) GetPendingHtlcs

func (m *ActiveChannel) GetPendingHtlcs() []*HTLC

func (*ActiveChannel) ProtoMessage

func (*ActiveChannel) ProtoMessage()

func (*ActiveChannel) Reset

func (m *ActiveChannel) Reset()

func (*ActiveChannel) String

func (m *ActiveChannel) String() string

type AddInvoiceResponse

type AddInvoiceResponse struct {
	RHash []byte `protobuf:"bytes,1,opt,name=r_hash,proto3" json:"r_hash,omitempty"`
}

func (*AddInvoiceResponse) Descriptor

func (*AddInvoiceResponse) Descriptor() ([]byte, []int)

func (*AddInvoiceResponse) ProtoMessage

func (*AddInvoiceResponse) ProtoMessage()

func (*AddInvoiceResponse) Reset

func (m *AddInvoiceResponse) Reset()

func (*AddInvoiceResponse) String

func (m *AddInvoiceResponse) String() string

type ChannelBalanceRequest

type ChannelBalanceRequest struct {
}

func (*ChannelBalanceRequest) Descriptor

func (*ChannelBalanceRequest) Descriptor() ([]byte, []int)

func (*ChannelBalanceRequest) ProtoMessage

func (*ChannelBalanceRequest) ProtoMessage()

func (*ChannelBalanceRequest) Reset

func (m *ChannelBalanceRequest) Reset()

func (*ChannelBalanceRequest) String

func (m *ChannelBalanceRequest) String() string

type ChannelBalanceResponse

type ChannelBalanceResponse struct {
	Balance int64 `protobuf:"varint,1,opt,name=balance" json:"balance,omitempty"`
}

func (*ChannelBalanceResponse) Descriptor

func (*ChannelBalanceResponse) Descriptor() ([]byte, []int)

func (*ChannelBalanceResponse) ProtoMessage

func (*ChannelBalanceResponse) ProtoMessage()

func (*ChannelBalanceResponse) Reset

func (m *ChannelBalanceResponse) Reset()

func (*ChannelBalanceResponse) String

func (m *ChannelBalanceResponse) String() string

type ChannelCloseUpdate

type ChannelCloseUpdate struct {
	ClosingTxid []byte `protobuf:"bytes,1,opt,name=closing_txid,proto3" json:"closing_txid,omitempty"`
	Success     bool   `protobuf:"varint,2,opt,name=success" json:"success,omitempty"`
}

func (*ChannelCloseUpdate) Descriptor

func (*ChannelCloseUpdate) Descriptor() ([]byte, []int)

func (*ChannelCloseUpdate) ProtoMessage

func (*ChannelCloseUpdate) ProtoMessage()

func (*ChannelCloseUpdate) Reset

func (m *ChannelCloseUpdate) Reset()

func (*ChannelCloseUpdate) String

func (m *ChannelCloseUpdate) String() string

type ChannelOpenUpdate

type ChannelOpenUpdate struct {
	ChannelPoint *ChannelPoint `protobuf:"bytes,1,opt,name=channel_point" json:"channel_point,omitempty"`
}

func (*ChannelOpenUpdate) Descriptor

func (*ChannelOpenUpdate) Descriptor() ([]byte, []int)

func (*ChannelOpenUpdate) GetChannelPoint

func (m *ChannelOpenUpdate) GetChannelPoint() *ChannelPoint

func (*ChannelOpenUpdate) ProtoMessage

func (*ChannelOpenUpdate) ProtoMessage()

func (*ChannelOpenUpdate) Reset

func (m *ChannelOpenUpdate) Reset()

func (*ChannelOpenUpdate) String

func (m *ChannelOpenUpdate) String() string

type ChannelPoint

type ChannelPoint struct {
	FundingTxid []byte `protobuf:"bytes,1,opt,name=funding_txid,proto3" json:"funding_txid,omitempty"`
	OutputIndex uint32 `protobuf:"varint,2,opt,name=output_index" json:"output_index,omitempty"`
}

func (*ChannelPoint) Descriptor

func (*ChannelPoint) Descriptor() ([]byte, []int)

func (*ChannelPoint) ProtoMessage

func (*ChannelPoint) ProtoMessage()

func (*ChannelPoint) Reset

func (m *ChannelPoint) Reset()

func (*ChannelPoint) String

func (m *ChannelPoint) String() string

type ChannelStatus

type ChannelStatus int32
const (
	ChannelStatus_ALL     ChannelStatus = 0
	ChannelStatus_OPENING ChannelStatus = 1
	ChannelStatus_CLOSING ChannelStatus = 2
)

func (ChannelStatus) EnumDescriptor

func (ChannelStatus) EnumDescriptor() ([]byte, []int)

func (ChannelStatus) String

func (x ChannelStatus) String() string

type CloseChannelRequest

type CloseChannelRequest struct {
	ChannelPoint *ChannelPoint `protobuf:"bytes,1,opt,name=channel_point" json:"channel_point,omitempty"`
	TimeLimit    int64         `protobuf:"varint,2,opt,name=time_limit" json:"time_limit,omitempty"`
	Force        bool          `protobuf:"varint,3,opt,name=force" json:"force,omitempty"`
}

func (*CloseChannelRequest) Descriptor

func (*CloseChannelRequest) Descriptor() ([]byte, []int)

func (*CloseChannelRequest) GetChannelPoint

func (m *CloseChannelRequest) GetChannelPoint() *ChannelPoint

func (*CloseChannelRequest) ProtoMessage

func (*CloseChannelRequest) ProtoMessage()

func (*CloseChannelRequest) Reset

func (m *CloseChannelRequest) Reset()

func (*CloseChannelRequest) String

func (m *CloseChannelRequest) String() string

type CloseStatusUpdate

type CloseStatusUpdate struct {
	// Types that are valid to be assigned to Update:
	//	*CloseStatusUpdate_ClosePending
	//	*CloseStatusUpdate_Confirmation
	//	*CloseStatusUpdate_ChanClose
	Update isCloseStatusUpdate_Update `protobuf_oneof:"update"`
}

func (*CloseStatusUpdate) Descriptor

func (*CloseStatusUpdate) Descriptor() ([]byte, []int)

func (*CloseStatusUpdate) GetChanClose

func (m *CloseStatusUpdate) GetChanClose() *ChannelCloseUpdate

func (*CloseStatusUpdate) GetClosePending

func (m *CloseStatusUpdate) GetClosePending() *PendingUpdate

func (*CloseStatusUpdate) GetConfirmation

func (m *CloseStatusUpdate) GetConfirmation() *ConfirmationUpdate

func (*CloseStatusUpdate) GetUpdate

func (m *CloseStatusUpdate) GetUpdate() isCloseStatusUpdate_Update

func (*CloseStatusUpdate) ProtoMessage

func (*CloseStatusUpdate) ProtoMessage()

func (*CloseStatusUpdate) Reset

func (m *CloseStatusUpdate) Reset()

func (*CloseStatusUpdate) String

func (m *CloseStatusUpdate) String() string

func (*CloseStatusUpdate) XXX_OneofFuncs

func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type CloseStatusUpdate_ChanClose

type CloseStatusUpdate_ChanClose struct {
	ChanClose *ChannelCloseUpdate `protobuf:"bytes,3,opt,name=chan_close,oneof"`
}

type CloseStatusUpdate_ClosePending

type CloseStatusUpdate_ClosePending struct {
	ClosePending *PendingUpdate `protobuf:"bytes,1,opt,name=close_pending,oneof"`
}

type CloseStatusUpdate_Confirmation

type CloseStatusUpdate_Confirmation struct {
	Confirmation *ConfirmationUpdate `protobuf:"bytes,2,opt,name=confirmation,oneof"`
}

type ConfirmationUpdate

type ConfirmationUpdate struct {
	BlockSha     []byte `protobuf:"bytes,1,opt,name=block_sha,proto3" json:"block_sha,omitempty"`
	BlockHeight  int32  `protobuf:"varint,2,opt,name=block_height" json:"block_height,omitempty"`
	NumConfsLeft uint32 `protobuf:"varint,3,opt,name=num_confs_left" json:"num_confs_left,omitempty"`
}

func (*ConfirmationUpdate) Descriptor

func (*ConfirmationUpdate) Descriptor() ([]byte, []int)

func (*ConfirmationUpdate) ProtoMessage

func (*ConfirmationUpdate) ProtoMessage()

func (*ConfirmationUpdate) Reset

func (m *ConfirmationUpdate) Reset()

func (*ConfirmationUpdate) String

func (m *ConfirmationUpdate) String() string

type ConnectPeerRequest

type ConnectPeerRequest struct {
	Addr *LightningAddress `protobuf:"bytes,1,opt,name=addr" json:"addr,omitempty"`
}

func (*ConnectPeerRequest) Descriptor

func (*ConnectPeerRequest) Descriptor() ([]byte, []int)

func (*ConnectPeerRequest) GetAddr

func (m *ConnectPeerRequest) GetAddr() *LightningAddress

func (*ConnectPeerRequest) ProtoMessage

func (*ConnectPeerRequest) ProtoMessage()

func (*ConnectPeerRequest) Reset

func (m *ConnectPeerRequest) Reset()

func (*ConnectPeerRequest) String

func (m *ConnectPeerRequest) String() string

type ConnectPeerResponse

type ConnectPeerResponse struct {
	PeerId int32 `protobuf:"varint,1,opt,name=peer_id" json:"peer_id,omitempty"`
}

func (*ConnectPeerResponse) Descriptor

func (*ConnectPeerResponse) Descriptor() ([]byte, []int)

func (*ConnectPeerResponse) ProtoMessage

func (*ConnectPeerResponse) ProtoMessage()

func (*ConnectPeerResponse) Reset

func (m *ConnectPeerResponse) Reset()

func (*ConnectPeerResponse) String

func (m *ConnectPeerResponse) String() string

type GetInfoRequest

type GetInfoRequest struct {
}

func (*GetInfoRequest) Descriptor

func (*GetInfoRequest) Descriptor() ([]byte, []int)

func (*GetInfoRequest) ProtoMessage

func (*GetInfoRequest) ProtoMessage()

func (*GetInfoRequest) Reset

func (m *GetInfoRequest) Reset()

func (*GetInfoRequest) String

func (m *GetInfoRequest) String() string

type GetInfoResponse

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"`
	IdentityPubkey     string `protobuf:"bytes,3,opt,name=identity_pubkey" json:"identity_pubkey,omitempty"`
	NumPendingChannels uint32 `protobuf:"varint,4,opt,name=num_pending_channels" json:"num_pending_channels,omitempty"`
	NumActiveChannels  uint32 `protobuf:"varint,5,opt,name=num_active_channels" json:"num_active_channels,omitempty"`
	NumPeers           uint32 `protobuf:"varint,6,opt,name=num_peers" json:"num_peers,omitempty"`
}

func (*GetInfoResponse) Descriptor

func (*GetInfoResponse) Descriptor() ([]byte, []int)

func (*GetInfoResponse) ProtoMessage

func (*GetInfoResponse) ProtoMessage()

func (*GetInfoResponse) Reset

func (m *GetInfoResponse) Reset()

func (*GetInfoResponse) String

func (m *GetInfoResponse) String() string

type HTLC

type HTLC struct {
	Incoming         bool   `protobuf:"varint,1,opt,name=incoming" json:"incoming,omitempty"`
	Amount           int64  `protobuf:"varint,2,opt,name=amount" json:"amount,omitempty"`
	HashLock         []byte `protobuf:"bytes,3,opt,name=hash_lock,proto3" json:"hash_lock,omitempty"`
	ExpirationHeight uint32 `protobuf:"varint,4,opt,name=expiration_height" json:"expiration_height,omitempty"`
	RevocationDelay  uint32 `protobuf:"varint,5,opt,name=revocation_delay" json:"revocation_delay,omitempty"`
}

func (*HTLC) Descriptor

func (*HTLC) Descriptor() ([]byte, []int)

func (*HTLC) ProtoMessage

func (*HTLC) ProtoMessage()

func (*HTLC) Reset

func (m *HTLC) Reset()

func (*HTLC) String

func (m *HTLC) String() string

type Invoice

type Invoice struct {
	Memo      string `protobuf:"bytes,1,opt,name=memo" json:"memo,omitempty"`
	Receipt   []byte `protobuf:"bytes,2,opt,name=receipt,proto3" json:"receipt,omitempty"`
	RPreimage []byte `protobuf:"bytes,3,opt,name=r_preimage,proto3" json:"r_preimage,omitempty"`
	RHash     []byte `protobuf:"bytes,4,opt,name=r_hash,proto3" json:"r_hash,omitempty"`
	Value     int64  `protobuf:"varint,5,opt,name=value" json:"value,omitempty"`
	Settled   bool   `protobuf:"varint,6,opt,name=settled" json:"settled,omitempty"`
}

func (*Invoice) Descriptor

func (*Invoice) Descriptor() ([]byte, []int)

func (*Invoice) ProtoMessage

func (*Invoice) ProtoMessage()

func (*Invoice) Reset

func (m *Invoice) Reset()

func (*Invoice) String

func (m *Invoice) String() string

type LightningAddress

type LightningAddress struct {
	PubKeyHash string `protobuf:"bytes,1,opt,name=pubKeyHash" json:"pubKeyHash,omitempty"`
	Host       string `protobuf:"bytes,2,opt,name=host" json:"host,omitempty"`
}

func (*LightningAddress) Descriptor

func (*LightningAddress) Descriptor() ([]byte, []int)

func (*LightningAddress) ProtoMessage

func (*LightningAddress) ProtoMessage()

func (*LightningAddress) Reset

func (m *LightningAddress) Reset()

func (*LightningAddress) String

func (m *LightningAddress) String() string

type LightningClient

type LightningClient interface {
	WalletBalance(ctx context.Context, in *WalletBalanceRequest, opts ...grpc.CallOption) (*WalletBalanceResponse, error)
	ChannelBalance(ctx context.Context, in *ChannelBalanceRequest, opts ...grpc.CallOption) (*ChannelBalanceResponse, error)
	SendMany(ctx context.Context, in *SendManyRequest, opts ...grpc.CallOption) (*SendManyResponse, error)
	SendCoins(ctx context.Context, in *SendCoinsRequest, opts ...grpc.CallOption) (*SendCoinsResponse, error)
	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) (Lightning_OpenChannelClient, error)
	CloseChannel(ctx context.Context, in *CloseChannelRequest, opts ...grpc.CallOption) (Lightning_CloseChannelClient, error)
	PendingChannels(ctx context.Context, in *PendingChannelRequest, opts ...grpc.CallOption) (*PendingChannelResponse, error)
	ListChannels(ctx context.Context, in *ListChannelsRequest, opts ...grpc.CallOption) (*ListChannelsResponse, error)
	SendPayment(ctx context.Context, opts ...grpc.CallOption) (Lightning_SendPaymentClient, error)
	AddInvoice(ctx context.Context, in *Invoice, opts ...grpc.CallOption) (*AddInvoiceResponse, error)
	LookupInvoice(ctx context.Context, in *PaymentHash, opts ...grpc.CallOption) (*Invoice, error)
	ListInvoices(ctx context.Context, in *ListInvoiceRequest, opts ...grpc.CallOption) (*ListInvoiceResponse, error)
	ShowRoutingTable(ctx context.Context, in *ShowRoutingTableRequest, opts ...grpc.CallOption) (*ShowRoutingTableResponse, error)
}

func NewLightningClient

func NewLightningClient(cc *grpc.ClientConn) LightningClient

type Lightning_CloseChannelClient

type Lightning_CloseChannelClient interface {
	Recv() (*CloseStatusUpdate, error)
	grpc.ClientStream
}

type Lightning_CloseChannelServer

type Lightning_CloseChannelServer interface {
	Send(*CloseStatusUpdate) error
	grpc.ServerStream
}

type Lightning_OpenChannelClient

type Lightning_OpenChannelClient interface {
	Recv() (*OpenStatusUpdate, error)
	grpc.ClientStream
}

type Lightning_OpenChannelServer

type Lightning_OpenChannelServer interface {
	Send(*OpenStatusUpdate) error
	grpc.ServerStream
}

type Lightning_SendPaymentClient

type Lightning_SendPaymentClient interface {
	Send(*SendRequest) error
	Recv() (*SendResponse, error)
	grpc.ClientStream
}

type Lightning_SendPaymentServer

type Lightning_SendPaymentServer interface {
	Send(*SendResponse) error
	Recv() (*SendRequest, error)
	grpc.ServerStream
}

type ListChannelsRequest

type ListChannelsRequest struct {
}

func (*ListChannelsRequest) Descriptor

func (*ListChannelsRequest) Descriptor() ([]byte, []int)

func (*ListChannelsRequest) ProtoMessage

func (*ListChannelsRequest) ProtoMessage()

func (*ListChannelsRequest) Reset

func (m *ListChannelsRequest) Reset()

func (*ListChannelsRequest) String

func (m *ListChannelsRequest) String() string

type ListChannelsResponse

type ListChannelsResponse struct {
	Channels []*ActiveChannel `protobuf:"bytes,9,rep,name=channels" json:"channels,omitempty"`
}

func (*ListChannelsResponse) Descriptor

func (*ListChannelsResponse) Descriptor() ([]byte, []int)

func (*ListChannelsResponse) GetChannels

func (m *ListChannelsResponse) GetChannels() []*ActiveChannel

func (*ListChannelsResponse) ProtoMessage

func (*ListChannelsResponse) ProtoMessage()

func (*ListChannelsResponse) Reset

func (m *ListChannelsResponse) Reset()

func (*ListChannelsResponse) String

func (m *ListChannelsResponse) String() string

type ListInvoiceRequest

type ListInvoiceRequest struct {
	PendingOnly bool `protobuf:"varint,1,opt,name=pending_only" json:"pending_only,omitempty"`
}

func (*ListInvoiceRequest) Descriptor

func (*ListInvoiceRequest) Descriptor() ([]byte, []int)

func (*ListInvoiceRequest) ProtoMessage

func (*ListInvoiceRequest) ProtoMessage()

func (*ListInvoiceRequest) Reset

func (m *ListInvoiceRequest) Reset()

func (*ListInvoiceRequest) String

func (m *ListInvoiceRequest) String() string

type ListInvoiceResponse

type ListInvoiceResponse struct {
	Invoices []*Invoice `protobuf:"bytes,1,rep,name=invoices" json:"invoices,omitempty"`
}

func (*ListInvoiceResponse) Descriptor

func (*ListInvoiceResponse) Descriptor() ([]byte, []int)

func (*ListInvoiceResponse) GetInvoices

func (m *ListInvoiceResponse) GetInvoices() []*Invoice

func (*ListInvoiceResponse) ProtoMessage

func (*ListInvoiceResponse) ProtoMessage()

func (*ListInvoiceResponse) Reset

func (m *ListInvoiceResponse) Reset()

func (*ListInvoiceResponse) String

func (m *ListInvoiceResponse) String() string

type ListPeersRequest

type ListPeersRequest struct {
}

func (*ListPeersRequest) Descriptor

func (*ListPeersRequest) Descriptor() ([]byte, []int)

func (*ListPeersRequest) ProtoMessage

func (*ListPeersRequest) ProtoMessage()

func (*ListPeersRequest) Reset

func (m *ListPeersRequest) Reset()

func (*ListPeersRequest) String

func (m *ListPeersRequest) String() string

type ListPeersResponse

type ListPeersResponse struct {
	Peers []*Peer `protobuf:"bytes,1,rep,name=peers" json:"peers,omitempty"`
}

func (*ListPeersResponse) Descriptor

func (*ListPeersResponse) Descriptor() ([]byte, []int)

func (*ListPeersResponse) GetPeers

func (m *ListPeersResponse) GetPeers() []*Peer

func (*ListPeersResponse) ProtoMessage

func (*ListPeersResponse) ProtoMessage()

func (*ListPeersResponse) Reset

func (m *ListPeersResponse) Reset()

func (*ListPeersResponse) String

func (m *ListPeersResponse) String() string

type NewAddressRequest

type NewAddressRequest struct {
	Type NewAddressRequest_AddressType `protobuf:"varint,1,opt,name=type,enum=lnrpc.NewAddressRequest_AddressType" json:"type,omitempty"`
}

func (*NewAddressRequest) Descriptor

func (*NewAddressRequest) Descriptor() ([]byte, []int)

func (*NewAddressRequest) ProtoMessage

func (*NewAddressRequest) ProtoMessage()

func (*NewAddressRequest) Reset

func (m *NewAddressRequest) Reset()

func (*NewAddressRequest) String

func (m *NewAddressRequest) String() string

type NewAddressRequest_AddressType

type NewAddressRequest_AddressType int32
const (
	NewAddressRequest_WITNESS_PUBKEY_HASH NewAddressRequest_AddressType = 0
	NewAddressRequest_NESTED_PUBKEY_HASH  NewAddressRequest_AddressType = 1
	NewAddressRequest_PUBKEY_HASH         NewAddressRequest_AddressType = 2
)

func (NewAddressRequest_AddressType) EnumDescriptor

func (NewAddressRequest_AddressType) EnumDescriptor() ([]byte, []int)

func (NewAddressRequest_AddressType) String

type NewAddressResponse

type NewAddressResponse struct {
	Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
}

func (*NewAddressResponse) Descriptor

func (*NewAddressResponse) Descriptor() ([]byte, []int)

func (*NewAddressResponse) ProtoMessage

func (*NewAddressResponse) ProtoMessage()

func (*NewAddressResponse) Reset

func (m *NewAddressResponse) Reset()

func (*NewAddressResponse) String

func (m *NewAddressResponse) String() string

type OpenChannelRequest

type OpenChannelRequest struct {
	TargetPeerId        int32  `protobuf:"varint,1,opt,name=target_peer_id" json:"target_peer_id,omitempty"`
	TargetNode          []byte `protobuf:"bytes,2,opt,name=target_node,proto3" json:"target_node,omitempty"`
	LocalFundingAmount  int64  `protobuf:"varint,3,opt,name=local_funding_amount" json:"local_funding_amount,omitempty"`
	RemoteFundingAmount int64  `protobuf:"varint,4,opt,name=remote_funding_amount" json:"remote_funding_amount,omitempty"`
	CommissionSize      int64  `protobuf:"varint,5,opt,name=commission_size" json:"commission_size,omitempty"`
	NumConfs            uint32 `protobuf:"varint,6,opt,name=num_confs" json:"num_confs,omitempty"`
}

func (*OpenChannelRequest) Descriptor

func (*OpenChannelRequest) Descriptor() ([]byte, []int)

func (*OpenChannelRequest) ProtoMessage

func (*OpenChannelRequest) ProtoMessage()

func (*OpenChannelRequest) Reset

func (m *OpenChannelRequest) Reset()

func (*OpenChannelRequest) String

func (m *OpenChannelRequest) String() string

type OpenStatusUpdate

type OpenStatusUpdate struct {
	// Types that are valid to be assigned to Update:
	//	*OpenStatusUpdate_ChanPending
	//	*OpenStatusUpdate_Confirmation
	//	*OpenStatusUpdate_ChanOpen
	Update isOpenStatusUpdate_Update `protobuf_oneof:"update"`
}

func (*OpenStatusUpdate) Descriptor

func (*OpenStatusUpdate) Descriptor() ([]byte, []int)

func (*OpenStatusUpdate) GetChanOpen

func (m *OpenStatusUpdate) GetChanOpen() *ChannelOpenUpdate

func (*OpenStatusUpdate) GetChanPending

func (m *OpenStatusUpdate) GetChanPending() *PendingUpdate

func (*OpenStatusUpdate) GetConfirmation

func (m *OpenStatusUpdate) GetConfirmation() *ConfirmationUpdate

func (*OpenStatusUpdate) GetUpdate

func (m *OpenStatusUpdate) GetUpdate() isOpenStatusUpdate_Update

func (*OpenStatusUpdate) ProtoMessage

func (*OpenStatusUpdate) ProtoMessage()

func (*OpenStatusUpdate) Reset

func (m *OpenStatusUpdate) Reset()

func (*OpenStatusUpdate) String

func (m *OpenStatusUpdate) String() string

func (*OpenStatusUpdate) XXX_OneofFuncs

func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type OpenStatusUpdate_ChanOpen

type OpenStatusUpdate_ChanOpen struct {
	ChanOpen *ChannelOpenUpdate `protobuf:"bytes,3,opt,name=chan_open,oneof"`
}

type OpenStatusUpdate_ChanPending

type OpenStatusUpdate_ChanPending struct {
	ChanPending *PendingUpdate `protobuf:"bytes,1,opt,name=chan_pending,oneof"`
}

type OpenStatusUpdate_Confirmation

type OpenStatusUpdate_Confirmation struct {
	Confirmation *ConfirmationUpdate `protobuf:"bytes,2,opt,name=confirmation,oneof"`
}

type PaymentHash

type PaymentHash struct {
	RHash []byte `protobuf:"bytes,1,opt,name=r_hash,proto3" json:"r_hash,omitempty"`
}

func (*PaymentHash) Descriptor

func (*PaymentHash) Descriptor() ([]byte, []int)

func (*PaymentHash) ProtoMessage

func (*PaymentHash) ProtoMessage()

func (*PaymentHash) Reset

func (m *PaymentHash) Reset()

func (*PaymentHash) String

func (m *PaymentHash) String() string

type Peer

type Peer struct {
	LightningId string `protobuf:"bytes,1,opt,name=lightning_id" json:"lightning_id,omitempty"`
	PeerId      int32  `protobuf:"varint,2,opt,name=peer_id" json:"peer_id,omitempty"`
	Address     string `protobuf:"bytes,3,opt,name=address" json:"address,omitempty"`
	BytesSent   uint64 `protobuf:"varint,4,opt,name=bytes_sent" json:"bytes_sent,omitempty"`
	BytesRecv   uint64 `protobuf:"varint,5,opt,name=bytes_recv" json:"bytes_recv,omitempty"`
	SatSent     int64  `protobuf:"varint,6,opt,name=sat_sent" json:"sat_sent,omitempty"`
	SatRecv     int64  `protobuf:"varint,7,opt,name=sat_recv" json:"sat_recv,omitempty"`
	Inbound     bool   `protobuf:"varint,8,opt,name=inbound" json:"inbound,omitempty"`
}

func (*Peer) Descriptor

func (*Peer) Descriptor() ([]byte, []int)

func (*Peer) ProtoMessage

func (*Peer) ProtoMessage()

func (*Peer) Reset

func (m *Peer) Reset()

func (*Peer) String

func (m *Peer) String() string

type PendingChannelRequest

type PendingChannelRequest struct {
	Status ChannelStatus `protobuf:"varint,1,opt,name=status,enum=lnrpc.ChannelStatus" json:"status,omitempty"`
}

func (*PendingChannelRequest) Descriptor

func (*PendingChannelRequest) Descriptor() ([]byte, []int)

func (*PendingChannelRequest) ProtoMessage

func (*PendingChannelRequest) ProtoMessage()

func (*PendingChannelRequest) Reset

func (m *PendingChannelRequest) Reset()

func (*PendingChannelRequest) String

func (m *PendingChannelRequest) String() string

type PendingChannelResponse

type PendingChannelResponse struct {
	PendingChannels []*PendingChannelResponse_PendingChannel `protobuf:"bytes,1,rep,name=pending_channels" json:"pending_channels,omitempty"`
}

func (*PendingChannelResponse) Descriptor

func (*PendingChannelResponse) Descriptor() ([]byte, []int)

func (*PendingChannelResponse) GetPendingChannels

func (*PendingChannelResponse) ProtoMessage

func (*PendingChannelResponse) ProtoMessage()

func (*PendingChannelResponse) Reset

func (m *PendingChannelResponse) Reset()

func (*PendingChannelResponse) String

func (m *PendingChannelResponse) String() string

type PendingChannelResponse_PendingChannel

type PendingChannelResponse_PendingChannel struct {
	PeerId        int32         `protobuf:"varint,1,opt,name=peer_id" json:"peer_id,omitempty"`
	LightningId   string        `protobuf:"bytes,2,opt,name=lightning_id" json:"lightning_id,omitempty"`
	ChannelPoint  string        `protobuf:"bytes,3,opt,name=channel_point" json:"channel_point,omitempty"`
	Capacity      int64         `protobuf:"varint,4,opt,name=capacity" json:"capacity,omitempty"`
	LocalBalance  int64         `protobuf:"varint,5,opt,name=local_balance" json:"local_balance,omitempty"`
	RemoteBalance int64         `protobuf:"varint,6,opt,name=remote_balance" json:"remote_balance,omitempty"`
	ClosingTxid   string        `protobuf:"bytes,7,opt,name=closing_txid" json:"closing_txid,omitempty"`
	Status        ChannelStatus `protobuf:"varint,8,opt,name=status,enum=lnrpc.ChannelStatus" json:"status,omitempty"`
}

func (*PendingChannelResponse_PendingChannel) Descriptor

func (*PendingChannelResponse_PendingChannel) Descriptor() ([]byte, []int)

func (*PendingChannelResponse_PendingChannel) ProtoMessage

func (*PendingChannelResponse_PendingChannel) ProtoMessage()

func (*PendingChannelResponse_PendingChannel) Reset

func (*PendingChannelResponse_PendingChannel) String

type PendingUpdate

type PendingUpdate struct {
	Txid []byte `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"`
}

func (*PendingUpdate) Descriptor

func (*PendingUpdate) Descriptor() ([]byte, []int)

func (*PendingUpdate) ProtoMessage

func (*PendingUpdate) ProtoMessage()

func (*PendingUpdate) Reset

func (m *PendingUpdate) Reset()

func (*PendingUpdate) String

func (m *PendingUpdate) String() string
type RoutingTableLink struct {
	Id1      string  `protobuf:"bytes,1,opt,name=id1" json:"id1,omitempty"`
	Id2      string  `protobuf:"bytes,2,opt,name=id2" json:"id2,omitempty"`
	Outpoint string  `protobuf:"bytes,3,opt,name=outpoint" json:"outpoint,omitempty"`
	Capacity int64   `protobuf:"varint,4,opt,name=capacity" json:"capacity,omitempty"`
	Weight   float64 `protobuf:"fixed64,5,opt,name=weight" json:"weight,omitempty"`
}

func (*RoutingTableLink) Descriptor

func (*RoutingTableLink) Descriptor() ([]byte, []int)

func (*RoutingTableLink) ProtoMessage

func (*RoutingTableLink) ProtoMessage()

func (*RoutingTableLink) Reset

func (m *RoutingTableLink) Reset()

func (*RoutingTableLink) String

func (m *RoutingTableLink) String() string

type SendCoinsRequest

type SendCoinsRequest struct {
	Addr   string `protobuf:"bytes,1,opt,name=addr" json:"addr,omitempty"`
	Amount int64  `protobuf:"varint,2,opt,name=amount" json:"amount,omitempty"`
}

func (*SendCoinsRequest) Descriptor

func (*SendCoinsRequest) Descriptor() ([]byte, []int)

func (*SendCoinsRequest) ProtoMessage

func (*SendCoinsRequest) ProtoMessage()

func (*SendCoinsRequest) Reset

func (m *SendCoinsRequest) Reset()

func (*SendCoinsRequest) String

func (m *SendCoinsRequest) String() string

type SendCoinsResponse

type SendCoinsResponse struct {
	Txid string `protobuf:"bytes,1,opt,name=txid" json:"txid,omitempty"`
}

func (*SendCoinsResponse) Descriptor

func (*SendCoinsResponse) Descriptor() ([]byte, []int)

func (*SendCoinsResponse) ProtoMessage

func (*SendCoinsResponse) ProtoMessage()

func (*SendCoinsResponse) Reset

func (m *SendCoinsResponse) Reset()

func (*SendCoinsResponse) String

func (m *SendCoinsResponse) String() string

type SendManyRequest

type SendManyRequest struct {
	AddrToAmount map[string]int64 `` /* 145-byte string literal not displayed */
}

func (*SendManyRequest) Descriptor

func (*SendManyRequest) Descriptor() ([]byte, []int)

func (*SendManyRequest) GetAddrToAmount

func (m *SendManyRequest) GetAddrToAmount() map[string]int64

func (*SendManyRequest) ProtoMessage

func (*SendManyRequest) ProtoMessage()

func (*SendManyRequest) Reset

func (m *SendManyRequest) Reset()

func (*SendManyRequest) String

func (m *SendManyRequest) String() string

type SendManyResponse

type SendManyResponse struct {
	Txid string `protobuf:"bytes,1,opt,name=txid" json:"txid,omitempty"`
}

func (*SendManyResponse) Descriptor

func (*SendManyResponse) Descriptor() ([]byte, []int)

func (*SendManyResponse) ProtoMessage

func (*SendManyResponse) ProtoMessage()

func (*SendManyResponse) Reset

func (m *SendManyResponse) Reset()

func (*SendManyResponse) String

func (m *SendManyResponse) String() string

type SendRequest

type SendRequest struct {
	Dest        []byte `protobuf:"bytes,1,opt,name=dest,proto3" json:"dest,omitempty"`
	Amt         int64  `protobuf:"varint,2,opt,name=amt" json:"amt,omitempty"`
	PaymentHash []byte `protobuf:"bytes,3,opt,name=payment_hash,proto3" json:"payment_hash,omitempty"`
	FastSend    bool   `protobuf:"varint,4,opt,name=fast_send" json:"fast_send,omitempty"`
}

func (*SendRequest) Descriptor

func (*SendRequest) Descriptor() ([]byte, []int)

func (*SendRequest) ProtoMessage

func (*SendRequest) ProtoMessage()

func (*SendRequest) Reset

func (m *SendRequest) Reset()

func (*SendRequest) String

func (m *SendRequest) String() string

type SendResponse

type SendResponse struct {
}

func (*SendResponse) Descriptor

func (*SendResponse) Descriptor() ([]byte, []int)

func (*SendResponse) ProtoMessage

func (*SendResponse) ProtoMessage()

func (*SendResponse) Reset

func (m *SendResponse) Reset()

func (*SendResponse) String

func (m *SendResponse) String() string

type ShowRoutingTableRequest

type ShowRoutingTableRequest struct {
}

func (*ShowRoutingTableRequest) Descriptor

func (*ShowRoutingTableRequest) Descriptor() ([]byte, []int)

func (*ShowRoutingTableRequest) ProtoMessage

func (*ShowRoutingTableRequest) ProtoMessage()

func (*ShowRoutingTableRequest) Reset

func (m *ShowRoutingTableRequest) Reset()

func (*ShowRoutingTableRequest) String

func (m *ShowRoutingTableRequest) String() string

type ShowRoutingTableResponse

type ShowRoutingTableResponse struct {
	Channels []*RoutingTableLink `protobuf:"bytes,1,rep,name=channels" json:"channels,omitempty"`
}

func (*ShowRoutingTableResponse) Descriptor

func (*ShowRoutingTableResponse) Descriptor() ([]byte, []int)

func (*ShowRoutingTableResponse) GetChannels

func (m *ShowRoutingTableResponse) GetChannels() []*RoutingTableLink

func (*ShowRoutingTableResponse) ProtoMessage

func (*ShowRoutingTableResponse) ProtoMessage()

func (*ShowRoutingTableResponse) Reset

func (m *ShowRoutingTableResponse) Reset()

func (*ShowRoutingTableResponse) String

func (m *ShowRoutingTableResponse) String() string

type WalletBalanceRequest

type WalletBalanceRequest struct {
	WitnessOnly bool `protobuf:"varint,1,opt,name=witness_only" json:"witness_only,omitempty"`
}

func (*WalletBalanceRequest) Descriptor

func (*WalletBalanceRequest) Descriptor() ([]byte, []int)

func (*WalletBalanceRequest) ProtoMessage

func (*WalletBalanceRequest) ProtoMessage()

func (*WalletBalanceRequest) Reset

func (m *WalletBalanceRequest) Reset()

func (*WalletBalanceRequest) String

func (m *WalletBalanceRequest) String() string

type WalletBalanceResponse

type WalletBalanceResponse struct {
	Balance float64 `protobuf:"fixed64,1,opt,name=balance" json:"balance,omitempty"`
}

func (*WalletBalanceResponse) Descriptor

func (*WalletBalanceResponse) Descriptor() ([]byte, []int)

func (*WalletBalanceResponse) ProtoMessage

func (*WalletBalanceResponse) ProtoMessage()

func (*WalletBalanceResponse) Reset

func (m *WalletBalanceResponse) Reset()

func (*WalletBalanceResponse) String

func (m *WalletBalanceResponse) String() string

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL