lnrpc

package
v0.0.0-...-a42b203 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2017 License: MIT Imports: 12 Imported by: 0

README

lnrpc

Build Status MIT licensed GoDoc

This lnrpc package implements both a client and server for lnds RPC system which is based off of the high-performance cross-platform gRPC RPC framework. By default, only the Go client+server libraries are compiled within the package. In order to compile the client side libraries for other supported languages, the protoc tool will need to be used to generate the compiled protos for a specific language.

The following languages are supported as clients to lnrpc: C++, Go, Node.js, Java, Ruby, Android Java, PHP, Python, C#, Objective-C.

The list of defined RPC's on the main service are the following (with a brief description):

  • WalletBalance
    • Returns the wallet's current confirmed balance in BTC.
  • ChannelBalance
    • Returns the daemons' available aggregate channel balance in BTC.
  • GetTransactions
    • Returns a list of on-chain transactions that pay to or are spends from lnd.
  • SendCoins
    • Sends an amount of satoshis to a specific address.
  • SubscribeTransactions
    • Returns a stream which sends async notifications each time a transaction is created or one is received that pays to us.
  • SendMany
    • Allows the caller to create a transaction with an arbitrary fan-out (many outputs).
  • NewAddress
    • Returns a new address, the following address types are supported: pay-to-public-key-hash (p2pkh), pay-to-witness-key-hash (p2wkh), and nested-pay-to-witness-key-hash (np2wkh).
  • SignMessage
    • Signs a message with the node's identity key and returns a zbase32 encoded signature.
  • VerifyMessage
    • Verifies a signature signed by another node on a message. The other node must be an active node in the channel database.
  • ConnectPeer
    • Connects to a peer identified by a public key and host.
  • DisconnectPeer
    • Disconnects a peer identified by a public key.
  • ListPeers
    • Lists all available connected peers.
  • GetInfo
    • Returns basic data concerning the daemon.
  • PendingChannels
    • List the number of pending (not fully confirmed) channels.
  • ListChannels
    • List all active channels the daemon manages.
  • OpenChannel
    • Attempts to open a channel to a target peer with a specific amount and push amount.
  • CloseChannel
    • Attempts to close a target channel. A channel can either be closed cooperatively if the channel peer is online, or using a "force" close to broadcast the latest channel state.
  • SendPayment
    • Send a payment over Lightning to a target peer.
  • AddInvoice
    • Adds an invoice to the daemon. Invoices are automatically settled once seen as an incoming HTLC.
  • ListInvoices
    • Lists all stored invoices.
  • LookupInvoice
    • Attempts to look up an invoice by payment hash (r-hash).
  • SubscribeInvoices
    • Creates a uni-directional stream which receives async notifications as the daemon settles invoices
  • ListPayments
    • List all outgoing Lightning payments the daemon has made.
  • DescribeGraph
    • Returns a description of the known channel graph from the PoV of the node.
  • GetChanInfo
    • Returns information for a specific channel identified by channel ID.
  • GetNodeInfo
    • Returns information for a particular node identified by its identity public key.
  • QueryRoute
    • Queries for a possible route to a target peer which can carry a certain amount of payment.
  • GetNetworkInfo
    • Returns some network level statistics.
  • SetAlias
    • Sets the node alias which is to be advertised on the network.

Installation and Updating

$ go get -u github.com/lightningnetwork/lnd/lnrpc

Documentation

Overview

Package lnrpc is a generated protocol buffer package.

It is generated from these files:

rpc.proto

It has these top-level messages:

Transaction
GetTransactionsRequest
TransactionDetails
SendRequest
SendResponse
ChannelPoint
LightningAddress
SendManyRequest
SendManyResponse
SendCoinsRequest
SendCoinsResponse
NewAddressRequest
NewWitnessAddressRequest
NewAddressResponse
SignMessageRequest
SignMessageResponse
VerifyMessageRequest
VerifyMessageResponse
ConnectPeerRequest
ConnectPeerResponse
DisconnectPeerRequest
DisconnectPeerResponse
HTLC
ActiveChannel
ListChannelsRequest
ListChannelsResponse
Peer
ListPeersRequest
ListPeersResponse
GetInfoRequest
GetInfoResponse
ConfirmationUpdate
ChannelOpenUpdate
ChannelCloseUpdate
CloseChannelRequest
CloseStatusUpdate
PendingUpdate
OpenChannelRequest
OpenStatusUpdate
PendingChannelRequest
PendingChannelResponse
WalletBalanceRequest
WalletBalanceResponse
ChannelBalanceRequest
ChannelBalanceResponse
QueryRoutesRequest
QueryRoutesResponse
Hop
Route
NodeInfoRequest
NodeInfo
LightningNode
NodeAddress
RoutingPolicy
ChannelEdge
ChannelGraphRequest
ChannelGraph
ChanInfoRequest
NetworkInfoRequest
NetworkInfo
StopRequest
StopResponse
GraphTopologySubscription
GraphTopologyUpdate
NodeUpdate
ChannelEdgeUpdate
ClosedChannelUpdate
SetAliasRequest
SetAliasResponse
Invoice
AddInvoiceResponse
PaymentHash
ListInvoiceRequest
ListInvoiceResponse
InvoiceSubscription
Payment
ListPaymentsRequest
ListPaymentsResponse
DeleteAllPaymentsRequest
DeleteAllPaymentsResponse
DebugLevelRequest
DebugLevelResponse
PayReqString
PayReq

Package lnrpc is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

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 RegisterLightningHandler

func RegisterLightningHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterLightningHandler registers the http handlers for service Lightning to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterLightningHandlerFromEndpoint

func RegisterLightningHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterLightningHandlerFromEndpoint is same as RegisterLightningHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterLightningServer

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

Types

type ActiveChannel

type ActiveChannel struct {
	Active                bool    `protobuf:"varint,1,opt,name=active" json:"active,omitempty"`
	RemotePubkey          string  `protobuf:"bytes,2,opt,name=remote_pubkey" json:"remote_pubkey,omitempty"`
	ChannelPoint          string  `protobuf:"bytes,3,opt,name=channel_point" json:"channel_point,omitempty"`
	ChanId                uint64  `protobuf:"varint,4,opt,name=chan_id" json:"chan_id,omitempty"`
	Capacity              int64   `protobuf:"varint,5,opt,name=capacity" json:"capacity,omitempty"`
	LocalBalance          int64   `protobuf:"varint,6,opt,name=local_balance" json:"local_balance,omitempty"`
	RemoteBalance         int64   `protobuf:"varint,7,opt,name=remote_balance" json:"remote_balance,omitempty"`
	CommitFee             int64   `protobuf:"varint,8,opt,name=commit_fee" json:"commit_fee,omitempty"`
	CommitWeight          int64   `protobuf:"varint,9,opt,name=commit_weight" json:"commit_weight,omitempty"`
	FeePerKw              int64   `protobuf:"varint,10,opt,name=fee_per_kw" json:"fee_per_kw,omitempty"`
	UnsettledBalance      int64   `protobuf:"varint,11,opt,name=unsettled_balance" json:"unsettled_balance,omitempty"`
	TotalSatoshisSent     int64   `protobuf:"varint,12,opt,name=total_satoshis_sent" json:"total_satoshis_sent,omitempty"`
	TotalSatoshisReceived int64   `protobuf:"varint,13,opt,name=total_satoshis_received" json:"total_satoshis_received,omitempty"`
	NumUpdates            uint64  `protobuf:"varint,14,opt,name=num_updates" json:"num_updates,omitempty"`
	PendingHtlcs          []*HTLC `protobuf:"bytes,15,rep,name=pending_htlcs" json:"pending_htlcs,omitempty"`
}

func (*ActiveChannel) Descriptor

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

func (*ActiveChannel) GetActive

func (m *ActiveChannel) GetActive() bool

func (*ActiveChannel) GetCapacity

func (m *ActiveChannel) GetCapacity() int64

func (*ActiveChannel) GetChanId

func (m *ActiveChannel) GetChanId() uint64

func (*ActiveChannel) GetChannelPoint

func (m *ActiveChannel) GetChannelPoint() string

func (*ActiveChannel) GetCommitFee

func (m *ActiveChannel) GetCommitFee() int64

func (*ActiveChannel) GetCommitWeight

func (m *ActiveChannel) GetCommitWeight() int64

func (*ActiveChannel) GetFeePerKw

func (m *ActiveChannel) GetFeePerKw() int64

func (*ActiveChannel) GetLocalBalance

func (m *ActiveChannel) GetLocalBalance() int64

func (*ActiveChannel) GetNumUpdates

func (m *ActiveChannel) GetNumUpdates() uint64

func (*ActiveChannel) GetPendingHtlcs

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

func (*ActiveChannel) GetRemoteBalance

func (m *ActiveChannel) GetRemoteBalance() int64

func (*ActiveChannel) GetRemotePubkey

func (m *ActiveChannel) GetRemotePubkey() string

func (*ActiveChannel) GetTotalSatoshisReceived

func (m *ActiveChannel) GetTotalSatoshisReceived() int64

func (*ActiveChannel) GetTotalSatoshisSent

func (m *ActiveChannel) GetTotalSatoshisSent() int64

func (*ActiveChannel) GetUnsettledBalance

func (m *ActiveChannel) GetUnsettledBalance() int64

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"`
	PaymentRequest string `protobuf:"bytes,2,opt,name=payment_request" json:"payment_request,omitempty"`
}

func (*AddInvoiceResponse) Descriptor

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

func (*AddInvoiceResponse) GetPaymentRequest

func (m *AddInvoiceResponse) GetPaymentRequest() string

func (*AddInvoiceResponse) GetRHash

func (m *AddInvoiceResponse) GetRHash() []byte

func (*AddInvoiceResponse) ProtoMessage

func (*AddInvoiceResponse) ProtoMessage()

func (*AddInvoiceResponse) Reset

func (m *AddInvoiceResponse) Reset()

func (*AddInvoiceResponse) String

func (m *AddInvoiceResponse) String() string

type ChanInfoRequest

type ChanInfoRequest struct {
	ChanId uint64 `protobuf:"varint,1,opt,name=chan_id,json=chanId" json:"chan_id,omitempty"`
}

func (*ChanInfoRequest) Descriptor

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

func (*ChanInfoRequest) GetChanId

func (m *ChanInfoRequest) GetChanId() uint64

func (*ChanInfoRequest) ProtoMessage

func (*ChanInfoRequest) ProtoMessage()

func (*ChanInfoRequest) Reset

func (m *ChanInfoRequest) Reset()

func (*ChanInfoRequest) String

func (m *ChanInfoRequest) 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) GetBalance

func (m *ChannelBalanceResponse) GetBalance() int64

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) GetClosingTxid

func (m *ChannelCloseUpdate) GetClosingTxid() []byte

func (*ChannelCloseUpdate) GetSuccess

func (m *ChannelCloseUpdate) GetSuccess() bool

func (*ChannelCloseUpdate) ProtoMessage

func (*ChannelCloseUpdate) ProtoMessage()

func (*ChannelCloseUpdate) Reset

func (m *ChannelCloseUpdate) Reset()

func (*ChannelCloseUpdate) String

func (m *ChannelCloseUpdate) String() string

type ChannelEdge

type ChannelEdge struct {
	ChannelId   uint64         `protobuf:"varint,1,opt,name=channel_id" json:"channel_id,omitempty"`
	ChanPoint   string         `protobuf:"bytes,2,opt,name=chan_point" json:"chan_point,omitempty"`
	LastUpdate  uint32         `protobuf:"varint,3,opt,name=last_update" json:"last_update,omitempty"`
	Node1Pub    string         `protobuf:"bytes,4,opt,name=node1_pub" json:"node1_pub,omitempty"`
	Node2Pub    string         `protobuf:"bytes,5,opt,name=node2_pub" json:"node2_pub,omitempty"`
	Capacity    int64          `protobuf:"varint,6,opt,name=capacity" json:"capacity,omitempty"`
	Node1Policy *RoutingPolicy `protobuf:"bytes,7,opt,name=node1_policy" json:"node1_policy,omitempty"`
	Node2Policy *RoutingPolicy `protobuf:"bytes,8,opt,name=node2_policy" json:"node2_policy,omitempty"`
}

func (*ChannelEdge) Descriptor

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

func (*ChannelEdge) GetCapacity

func (m *ChannelEdge) GetCapacity() int64

func (*ChannelEdge) GetChanPoint

func (m *ChannelEdge) GetChanPoint() string

func (*ChannelEdge) GetChannelId

func (m *ChannelEdge) GetChannelId() uint64

func (*ChannelEdge) GetLastUpdate

func (m *ChannelEdge) GetLastUpdate() uint32

func (*ChannelEdge) GetNode1Policy

func (m *ChannelEdge) GetNode1Policy() *RoutingPolicy

func (*ChannelEdge) GetNode1Pub

func (m *ChannelEdge) GetNode1Pub() string

func (*ChannelEdge) GetNode2Policy

func (m *ChannelEdge) GetNode2Policy() *RoutingPolicy

func (*ChannelEdge) GetNode2Pub

func (m *ChannelEdge) GetNode2Pub() string

func (*ChannelEdge) ProtoMessage

func (*ChannelEdge) ProtoMessage()

func (*ChannelEdge) Reset

func (m *ChannelEdge) Reset()

func (*ChannelEdge) String

func (m *ChannelEdge) String() string

type ChannelEdgeUpdate

type ChannelEdgeUpdate struct {
	ChanId          uint64         `protobuf:"varint,1,opt,name=chan_id,json=chanId" json:"chan_id,omitempty"`
	ChanPoint       *ChannelPoint  `protobuf:"bytes,2,opt,name=chan_point,json=chanPoint" json:"chan_point,omitempty"`
	Capacity        int64          `protobuf:"varint,3,opt,name=capacity" json:"capacity,omitempty"`
	RoutingPolicy   *RoutingPolicy `protobuf:"bytes,4,opt,name=routing_policy,json=routingPolicy" json:"routing_policy,omitempty"`
	AdvertisingNode string         `protobuf:"bytes,5,opt,name=advertising_node,json=advertisingNode" json:"advertising_node,omitempty"`
	ConnectingNode  string         `protobuf:"bytes,6,opt,name=connecting_node,json=connectingNode" json:"connecting_node,omitempty"`
}

func (*ChannelEdgeUpdate) Descriptor

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

func (*ChannelEdgeUpdate) GetAdvertisingNode

func (m *ChannelEdgeUpdate) GetAdvertisingNode() string

func (*ChannelEdgeUpdate) GetCapacity

func (m *ChannelEdgeUpdate) GetCapacity() int64

func (*ChannelEdgeUpdate) GetChanId

func (m *ChannelEdgeUpdate) GetChanId() uint64

func (*ChannelEdgeUpdate) GetChanPoint

func (m *ChannelEdgeUpdate) GetChanPoint() *ChannelPoint

func (*ChannelEdgeUpdate) GetConnectingNode

func (m *ChannelEdgeUpdate) GetConnectingNode() string

func (*ChannelEdgeUpdate) GetRoutingPolicy

func (m *ChannelEdgeUpdate) GetRoutingPolicy() *RoutingPolicy

func (*ChannelEdgeUpdate) ProtoMessage

func (*ChannelEdgeUpdate) ProtoMessage()

func (*ChannelEdgeUpdate) Reset

func (m *ChannelEdgeUpdate) Reset()

func (*ChannelEdgeUpdate) String

func (m *ChannelEdgeUpdate) String() string

type ChannelGraph

type ChannelGraph struct {
	Nodes []*LightningNode `protobuf:"bytes,1,rep,name=nodes" json:"nodes,omitempty"`
	Edges []*ChannelEdge   `protobuf:"bytes,2,rep,name=edges" json:"edges,omitempty"`
}

func (*ChannelGraph) Descriptor

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

func (*ChannelGraph) GetEdges

func (m *ChannelGraph) GetEdges() []*ChannelEdge

func (*ChannelGraph) GetNodes

func (m *ChannelGraph) GetNodes() []*LightningNode

func (*ChannelGraph) ProtoMessage

func (*ChannelGraph) ProtoMessage()

func (*ChannelGraph) Reset

func (m *ChannelGraph) Reset()

func (*ChannelGraph) String

func (m *ChannelGraph) String() string

type ChannelGraphRequest

type ChannelGraphRequest struct {
}

func (*ChannelGraphRequest) Descriptor

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

func (*ChannelGraphRequest) ProtoMessage

func (*ChannelGraphRequest) ProtoMessage()

func (*ChannelGraphRequest) Reset

func (m *ChannelGraphRequest) Reset()

func (*ChannelGraphRequest) String

func (m *ChannelGraphRequest) 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 {
	// TODO(roasbeef): make str vs bytes into a oneof
	FundingTxid    []byte `protobuf:"bytes,1,opt,name=funding_txid,proto3" json:"funding_txid,omitempty"`
	FundingTxidStr string `protobuf:"bytes,2,opt,name=funding_txid_str" json:"funding_txid_str,omitempty"`
	OutputIndex    uint32 `protobuf:"varint,3,opt,name=output_index" json:"output_index,omitempty"`
}

func (*ChannelPoint) Descriptor

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

func (*ChannelPoint) GetFundingTxid

func (m *ChannelPoint) GetFundingTxid() []byte

func (*ChannelPoint) GetFundingTxidStr

func (m *ChannelPoint) GetFundingTxidStr() string

func (*ChannelPoint) GetOutputIndex

func (m *ChannelPoint) GetOutputIndex() uint32

func (*ChannelPoint) ProtoMessage

func (*ChannelPoint) ProtoMessage()

func (*ChannelPoint) Reset

func (m *ChannelPoint) Reset()

func (*ChannelPoint) String

func (m *ChannelPoint) String() string

type CloseChannelRequest

type CloseChannelRequest struct {
	ChannelPoint *ChannelPoint `protobuf:"bytes,1,opt,name=channel_point,json=channelPoint" json:"channel_point,omitempty"`
	TimeLimit    int64         `protobuf:"varint,2,opt,name=time_limit,json=timeLimit" 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) GetForce

func (m *CloseChannelRequest) GetForce() bool

func (*CloseChannelRequest) GetTimeLimit

func (m *CloseChannelRequest) GetTimeLimit() int64

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 ClosedChannelUpdate

type ClosedChannelUpdate struct {
	ChanId       uint64        `protobuf:"varint,1,opt,name=chan_id,json=chanId" json:"chan_id,omitempty"`
	Capacity     int64         `protobuf:"varint,2,opt,name=capacity" json:"capacity,omitempty"`
	ClosedHeight uint32        `protobuf:"varint,3,opt,name=closed_height,json=closedHeight" json:"closed_height,omitempty"`
	ChanPoint    *ChannelPoint `protobuf:"bytes,4,opt,name=chan_point,json=chanPoint" json:"chan_point,omitempty"`
}

func (*ClosedChannelUpdate) Descriptor

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

func (*ClosedChannelUpdate) GetCapacity

func (m *ClosedChannelUpdate) GetCapacity() int64

func (*ClosedChannelUpdate) GetChanId

func (m *ClosedChannelUpdate) GetChanId() uint64

func (*ClosedChannelUpdate) GetChanPoint

func (m *ClosedChannelUpdate) GetChanPoint() *ChannelPoint

func (*ClosedChannelUpdate) GetClosedHeight

func (m *ClosedChannelUpdate) GetClosedHeight() uint32

func (*ClosedChannelUpdate) ProtoMessage

func (*ClosedChannelUpdate) ProtoMessage()

func (*ClosedChannelUpdate) Reset

func (m *ClosedChannelUpdate) Reset()

func (*ClosedChannelUpdate) String

func (m *ClosedChannelUpdate) String() string

type ConfirmationUpdate

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

func (*ConfirmationUpdate) Descriptor

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

func (*ConfirmationUpdate) GetBlockHeight

func (m *ConfirmationUpdate) GetBlockHeight() int32

func (*ConfirmationUpdate) GetBlockSha

func (m *ConfirmationUpdate) GetBlockSha() []byte

func (*ConfirmationUpdate) GetNumConfsLeft

func (m *ConfirmationUpdate) GetNumConfsLeft() uint32

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"`
	Perm bool              `protobuf:"varint,2,opt,name=perm" json:"perm,omitempty"`
}

func (*ConnectPeerRequest) Descriptor

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

func (*ConnectPeerRequest) GetAddr

func (m *ConnectPeerRequest) GetAddr() *LightningAddress

func (*ConnectPeerRequest) GetPerm

func (m *ConnectPeerRequest) GetPerm() bool

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) GetPeerId

func (m *ConnectPeerResponse) GetPeerId() int32

func (*ConnectPeerResponse) ProtoMessage

func (*ConnectPeerResponse) ProtoMessage()

func (*ConnectPeerResponse) Reset

func (m *ConnectPeerResponse) Reset()

func (*ConnectPeerResponse) String

func (m *ConnectPeerResponse) String() string

type DebugLevelRequest

type DebugLevelRequest struct {
	Show      bool   `protobuf:"varint,1,opt,name=show" json:"show,omitempty"`
	LevelSpec string `protobuf:"bytes,2,opt,name=level_spec,json=levelSpec" json:"level_spec,omitempty"`
}

func (*DebugLevelRequest) Descriptor

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

func (*DebugLevelRequest) GetLevelSpec

func (m *DebugLevelRequest) GetLevelSpec() string

func (*DebugLevelRequest) GetShow

func (m *DebugLevelRequest) GetShow() bool

func (*DebugLevelRequest) ProtoMessage

func (*DebugLevelRequest) ProtoMessage()

func (*DebugLevelRequest) Reset

func (m *DebugLevelRequest) Reset()

func (*DebugLevelRequest) String

func (m *DebugLevelRequest) String() string

type DebugLevelResponse

type DebugLevelResponse struct {
	SubSystems string `protobuf:"bytes,1,opt,name=sub_systems" json:"sub_systems,omitempty"`
}

func (*DebugLevelResponse) Descriptor

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

func (*DebugLevelResponse) GetSubSystems

func (m *DebugLevelResponse) GetSubSystems() string

func (*DebugLevelResponse) ProtoMessage

func (*DebugLevelResponse) ProtoMessage()

func (*DebugLevelResponse) Reset

func (m *DebugLevelResponse) Reset()

func (*DebugLevelResponse) String

func (m *DebugLevelResponse) String() string

type DeleteAllPaymentsRequest

type DeleteAllPaymentsRequest struct {
}

func (*DeleteAllPaymentsRequest) Descriptor

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

func (*DeleteAllPaymentsRequest) ProtoMessage

func (*DeleteAllPaymentsRequest) ProtoMessage()

func (*DeleteAllPaymentsRequest) Reset

func (m *DeleteAllPaymentsRequest) Reset()

func (*DeleteAllPaymentsRequest) String

func (m *DeleteAllPaymentsRequest) String() string

type DeleteAllPaymentsResponse

type DeleteAllPaymentsResponse struct {
}

func (*DeleteAllPaymentsResponse) Descriptor

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

func (*DeleteAllPaymentsResponse) ProtoMessage

func (*DeleteAllPaymentsResponse) ProtoMessage()

func (*DeleteAllPaymentsResponse) Reset

func (m *DeleteAllPaymentsResponse) Reset()

func (*DeleteAllPaymentsResponse) String

func (m *DeleteAllPaymentsResponse) String() string

type DisconnectPeerRequest

type DisconnectPeerRequest struct {
	PubKey string `protobuf:"bytes,1,opt,name=pub_key" json:"pub_key,omitempty"`
}

func (*DisconnectPeerRequest) Descriptor

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

func (*DisconnectPeerRequest) GetPubKey

func (m *DisconnectPeerRequest) GetPubKey() string

func (*DisconnectPeerRequest) ProtoMessage

func (*DisconnectPeerRequest) ProtoMessage()

func (*DisconnectPeerRequest) Reset

func (m *DisconnectPeerRequest) Reset()

func (*DisconnectPeerRequest) String

func (m *DisconnectPeerRequest) String() string

type DisconnectPeerResponse

type DisconnectPeerResponse struct {
}

func (*DisconnectPeerResponse) Descriptor

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

func (*DisconnectPeerResponse) ProtoMessage

func (*DisconnectPeerResponse) ProtoMessage()

func (*DisconnectPeerResponse) Reset

func (m *DisconnectPeerResponse) Reset()

func (*DisconnectPeerResponse) String

func (m *DisconnectPeerResponse) 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 {
	IdentityPubkey     string   `protobuf:"bytes,1,opt,name=identity_pubkey" json:"identity_pubkey,omitempty"`
	Alias              string   `protobuf:"bytes,2,opt,name=alias" json:"alias,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"`
	BlockHeight        uint32   `protobuf:"varint,6,opt,name=block_height" json:"block_height,omitempty"`
	BlockHash          string   `protobuf:"bytes,8,opt,name=block_hash" json:"block_hash,omitempty"`
	SyncedToChain      bool     `protobuf:"varint,9,opt,name=synced_to_chain" json:"synced_to_chain,omitempty"`
	Testnet            bool     `protobuf:"varint,10,opt,name=testnet" json:"testnet,omitempty"`
	Chains             []string `protobuf:"bytes,11,rep,name=chains" json:"chains,omitempty"`
}

func (*GetInfoResponse) Descriptor

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

func (*GetInfoResponse) GetAlias

func (m *GetInfoResponse) GetAlias() string

func (*GetInfoResponse) GetBlockHash

func (m *GetInfoResponse) GetBlockHash() string

func (*GetInfoResponse) GetBlockHeight

func (m *GetInfoResponse) GetBlockHeight() uint32

func (*GetInfoResponse) GetChains

func (m *GetInfoResponse) GetChains() []string

func (*GetInfoResponse) GetIdentityPubkey

func (m *GetInfoResponse) GetIdentityPubkey() string

func (*GetInfoResponse) GetNumActiveChannels

func (m *GetInfoResponse) GetNumActiveChannels() uint32

func (*GetInfoResponse) GetNumPeers

func (m *GetInfoResponse) GetNumPeers() uint32

func (*GetInfoResponse) GetNumPendingChannels

func (m *GetInfoResponse) GetNumPendingChannels() uint32

func (*GetInfoResponse) GetSyncedToChain

func (m *GetInfoResponse) GetSyncedToChain() bool

func (*GetInfoResponse) GetTestnet

func (m *GetInfoResponse) GetTestnet() bool

func (*GetInfoResponse) ProtoMessage

func (*GetInfoResponse) ProtoMessage()

func (*GetInfoResponse) Reset

func (m *GetInfoResponse) Reset()

func (*GetInfoResponse) String

func (m *GetInfoResponse) String() string

type GetTransactionsRequest

type GetTransactionsRequest struct {
}

func (*GetTransactionsRequest) Descriptor

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

func (*GetTransactionsRequest) ProtoMessage

func (*GetTransactionsRequest) ProtoMessage()

func (*GetTransactionsRequest) Reset

func (m *GetTransactionsRequest) Reset()

func (*GetTransactionsRequest) String

func (m *GetTransactionsRequest) String() string

type GraphTopologySubscription

type GraphTopologySubscription struct {
}

func (*GraphTopologySubscription) Descriptor

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

func (*GraphTopologySubscription) ProtoMessage

func (*GraphTopologySubscription) ProtoMessage()

func (*GraphTopologySubscription) Reset

func (m *GraphTopologySubscription) Reset()

func (*GraphTopologySubscription) String

func (m *GraphTopologySubscription) String() string

type GraphTopologyUpdate

type GraphTopologyUpdate struct {
	NodeUpdates    []*NodeUpdate          `protobuf:"bytes,1,rep,name=node_updates,json=nodeUpdates" json:"node_updates,omitempty"`
	ChannelUpdates []*ChannelEdgeUpdate   `protobuf:"bytes,2,rep,name=channel_updates,json=channelUpdates" json:"channel_updates,omitempty"`
	ClosedChans    []*ClosedChannelUpdate `protobuf:"bytes,3,rep,name=closed_chans,json=closedChans" json:"closed_chans,omitempty"`
}

func (*GraphTopologyUpdate) Descriptor

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

func (*GraphTopologyUpdate) GetChannelUpdates

func (m *GraphTopologyUpdate) GetChannelUpdates() []*ChannelEdgeUpdate

func (*GraphTopologyUpdate) GetClosedChans

func (m *GraphTopologyUpdate) GetClosedChans() []*ClosedChannelUpdate

func (*GraphTopologyUpdate) GetNodeUpdates

func (m *GraphTopologyUpdate) GetNodeUpdates() []*NodeUpdate

func (*GraphTopologyUpdate) ProtoMessage

func (*GraphTopologyUpdate) ProtoMessage()

func (*GraphTopologyUpdate) Reset

func (m *GraphTopologyUpdate) Reset()

func (*GraphTopologyUpdate) String

func (m *GraphTopologyUpdate) 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) GetAmount

func (m *HTLC) GetAmount() int64

func (*HTLC) GetExpirationHeight

func (m *HTLC) GetExpirationHeight() uint32

func (*HTLC) GetHashLock

func (m *HTLC) GetHashLock() []byte

func (*HTLC) GetIncoming

func (m *HTLC) GetIncoming() bool

func (*HTLC) GetRevocationDelay

func (m *HTLC) GetRevocationDelay() uint32

func (*HTLC) ProtoMessage

func (*HTLC) ProtoMessage()

func (*HTLC) Reset

func (m *HTLC) Reset()

func (*HTLC) String

func (m *HTLC) String() string

type Hop

type Hop struct {
	ChanId       uint64 `protobuf:"varint,1,opt,name=chan_id" json:"chan_id,omitempty"`
	ChanCapacity int64  `protobuf:"varint,2,opt,name=chan_capacity" json:"chan_capacity,omitempty"`
	AmtToForward int64  `protobuf:"varint,3,opt,name=amt_to_forward" json:"amt_to_forward,omitempty"`
	Fee          int64  `protobuf:"varint,4,opt,name=fee" json:"fee,omitempty"`
	Expiry       uint32 `protobuf:"varint,5,opt,name=expiry" json:"expiry,omitempty"`
}

func (*Hop) Descriptor

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

func (*Hop) GetAmtToForward

func (m *Hop) GetAmtToForward() int64

func (*Hop) GetChanCapacity

func (m *Hop) GetChanCapacity() int64

func (*Hop) GetChanId

func (m *Hop) GetChanId() uint64

func (*Hop) GetExpiry

func (m *Hop) GetExpiry() uint32

func (*Hop) GetFee

func (m *Hop) GetFee() int64

func (*Hop) ProtoMessage

func (*Hop) ProtoMessage()

func (*Hop) Reset

func (m *Hop) Reset()

func (*Hop) String

func (m *Hop) 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"`
	CreationDate   int64  `protobuf:"varint,7,opt,name=creation_date" json:"creation_date,omitempty"`
	SettleDate     int64  `protobuf:"varint,8,opt,name=settle_date" json:"settle_date,omitempty"`
	PaymentRequest string `protobuf:"bytes,9,opt,name=payment_request" json:"payment_request,omitempty"`
}

func (*Invoice) Descriptor

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

func (*Invoice) GetCreationDate

func (m *Invoice) GetCreationDate() int64

func (*Invoice) GetMemo

func (m *Invoice) GetMemo() string

func (*Invoice) GetPaymentRequest

func (m *Invoice) GetPaymentRequest() string

func (*Invoice) GetRHash

func (m *Invoice) GetRHash() []byte

func (*Invoice) GetRPreimage

func (m *Invoice) GetRPreimage() []byte

func (*Invoice) GetReceipt

func (m *Invoice) GetReceipt() []byte

func (*Invoice) GetSettleDate

func (m *Invoice) GetSettleDate() int64

func (*Invoice) GetSettled

func (m *Invoice) GetSettled() bool

func (*Invoice) GetValue

func (m *Invoice) GetValue() int64

func (*Invoice) ProtoMessage

func (*Invoice) ProtoMessage()

func (*Invoice) Reset

func (m *Invoice) Reset()

func (*Invoice) String

func (m *Invoice) String() string

type InvoiceSubscription

type InvoiceSubscription struct {
}

func (*InvoiceSubscription) Descriptor

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

func (*InvoiceSubscription) ProtoMessage

func (*InvoiceSubscription) ProtoMessage()

func (*InvoiceSubscription) Reset

func (m *InvoiceSubscription) Reset()

func (*InvoiceSubscription) String

func (m *InvoiceSubscription) String() string

type LightningAddress

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

func (*LightningAddress) Descriptor

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

func (*LightningAddress) GetHost

func (m *LightningAddress) GetHost() string

func (*LightningAddress) GetPubkey

func (m *LightningAddress) GetPubkey() string

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)
	GetTransactions(ctx context.Context, in *GetTransactionsRequest, opts ...grpc.CallOption) (*TransactionDetails, error)
	SendCoins(ctx context.Context, in *SendCoinsRequest, opts ...grpc.CallOption) (*SendCoinsResponse, error)
	SubscribeTransactions(ctx context.Context, in *GetTransactionsRequest, opts ...grpc.CallOption) (Lightning_SubscribeTransactionsClient, error)
	SendMany(ctx context.Context, in *SendManyRequest, opts ...grpc.CallOption) (*SendManyResponse, error)
	NewAddress(ctx context.Context, in *NewAddressRequest, opts ...grpc.CallOption) (*NewAddressResponse, error)
	NewWitnessAddress(ctx context.Context, in *NewWitnessAddressRequest, opts ...grpc.CallOption) (*NewAddressResponse, error)
	SignMessage(ctx context.Context, in *SignMessageRequest, opts ...grpc.CallOption) (*SignMessageResponse, error)
	VerifyMessage(ctx context.Context, in *VerifyMessageRequest, opts ...grpc.CallOption) (*VerifyMessageResponse, error)
	ConnectPeer(ctx context.Context, in *ConnectPeerRequest, opts ...grpc.CallOption) (*ConnectPeerResponse, error)
	DisconnectPeer(ctx context.Context, in *DisconnectPeerRequest, opts ...grpc.CallOption) (*DisconnectPeerResponse, error)
	ListPeers(ctx context.Context, in *ListPeersRequest, opts ...grpc.CallOption) (*ListPeersResponse, error)
	GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*GetInfoResponse, error)
	// TODO(roasbeef): merge with below with bool?
	PendingChannels(ctx context.Context, in *PendingChannelRequest, opts ...grpc.CallOption) (*PendingChannelResponse, error)
	ListChannels(ctx context.Context, in *ListChannelsRequest, opts ...grpc.CallOption) (*ListChannelsResponse, error)
	OpenChannelSync(ctx context.Context, in *OpenChannelRequest, opts ...grpc.CallOption) (*ChannelPoint, 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)
	SendPayment(ctx context.Context, opts ...grpc.CallOption) (Lightning_SendPaymentClient, error)
	SendPaymentSync(ctx context.Context, in *SendRequest, opts ...grpc.CallOption) (*SendResponse, error)
	AddInvoice(ctx context.Context, in *Invoice, opts ...grpc.CallOption) (*AddInvoiceResponse, error)
	ListInvoices(ctx context.Context, in *ListInvoiceRequest, opts ...grpc.CallOption) (*ListInvoiceResponse, error)
	LookupInvoice(ctx context.Context, in *PaymentHash, opts ...grpc.CallOption) (*Invoice, error)
	SubscribeInvoices(ctx context.Context, in *InvoiceSubscription, opts ...grpc.CallOption) (Lightning_SubscribeInvoicesClient, error)
	DecodePayReq(ctx context.Context, in *PayReqString, opts ...grpc.CallOption) (*PayReq, error)
	ListPayments(ctx context.Context, in *ListPaymentsRequest, opts ...grpc.CallOption) (*ListPaymentsResponse, error)
	DeleteAllPayments(ctx context.Context, in *DeleteAllPaymentsRequest, opts ...grpc.CallOption) (*DeleteAllPaymentsResponse, error)
	DescribeGraph(ctx context.Context, in *ChannelGraphRequest, opts ...grpc.CallOption) (*ChannelGraph, error)
	GetChanInfo(ctx context.Context, in *ChanInfoRequest, opts ...grpc.CallOption) (*ChannelEdge, error)
	GetNodeInfo(ctx context.Context, in *NodeInfoRequest, opts ...grpc.CallOption) (*NodeInfo, error)
	QueryRoutes(ctx context.Context, in *QueryRoutesRequest, opts ...grpc.CallOption) (*QueryRoutesResponse, error)
	GetNetworkInfo(ctx context.Context, in *NetworkInfoRequest, opts ...grpc.CallOption) (*NetworkInfo, error)
	StopDaemon(ctx context.Context, in *StopRequest, opts ...grpc.CallOption) (*StopResponse, error)
	SubscribeChannelGraph(ctx context.Context, in *GraphTopologySubscription, opts ...grpc.CallOption) (Lightning_SubscribeChannelGraphClient, error)
	SetAlias(ctx context.Context, in *SetAliasRequest, opts ...grpc.CallOption) (*SetAliasResponse, error)
	DebugLevel(ctx context.Context, in *DebugLevelRequest, opts ...grpc.CallOption) (*DebugLevelResponse, error)
}

func NewLightningClient

func NewLightningClient(cc *grpc.ClientConn) LightningClient

type LightningNode

type LightningNode struct {
	LastUpdate uint32         `protobuf:"varint,1,opt,name=last_update" json:"last_update,omitempty"`
	PubKey     string         `protobuf:"bytes,2,opt,name=pub_key" json:"pub_key,omitempty"`
	Alias      string         `protobuf:"bytes,3,opt,name=alias" json:"alias,omitempty"`
	Addresses  []*NodeAddress `protobuf:"bytes,4,rep,name=addresses" json:"addresses,omitempty"`
}

func (*LightningNode) Descriptor

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

func (*LightningNode) GetAddresses

func (m *LightningNode) GetAddresses() []*NodeAddress

func (*LightningNode) GetAlias

func (m *LightningNode) GetAlias() string

func (*LightningNode) GetLastUpdate

func (m *LightningNode) GetLastUpdate() uint32

func (*LightningNode) GetPubKey

func (m *LightningNode) GetPubKey() string

func (*LightningNode) ProtoMessage

func (*LightningNode) ProtoMessage()

func (*LightningNode) Reset

func (m *LightningNode) Reset()

func (*LightningNode) String

func (m *LightningNode) String() string

type LightningServer

type LightningServer interface {
	WalletBalance(context.Context, *WalletBalanceRequest) (*WalletBalanceResponse, error)
	ChannelBalance(context.Context, *ChannelBalanceRequest) (*ChannelBalanceResponse, error)
	GetTransactions(context.Context, *GetTransactionsRequest) (*TransactionDetails, error)
	SendCoins(context.Context, *SendCoinsRequest) (*SendCoinsResponse, error)
	SubscribeTransactions(*GetTransactionsRequest, Lightning_SubscribeTransactionsServer) error
	SendMany(context.Context, *SendManyRequest) (*SendManyResponse, error)
	NewAddress(context.Context, *NewAddressRequest) (*NewAddressResponse, error)
	NewWitnessAddress(context.Context, *NewWitnessAddressRequest) (*NewAddressResponse, error)
	SignMessage(context.Context, *SignMessageRequest) (*SignMessageResponse, error)
	VerifyMessage(context.Context, *VerifyMessageRequest) (*VerifyMessageResponse, error)
	ConnectPeer(context.Context, *ConnectPeerRequest) (*ConnectPeerResponse, error)
	DisconnectPeer(context.Context, *DisconnectPeerRequest) (*DisconnectPeerResponse, error)
	ListPeers(context.Context, *ListPeersRequest) (*ListPeersResponse, error)
	GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, error)
	// TODO(roasbeef): merge with below with bool?
	PendingChannels(context.Context, *PendingChannelRequest) (*PendingChannelResponse, error)
	ListChannels(context.Context, *ListChannelsRequest) (*ListChannelsResponse, error)
	OpenChannelSync(context.Context, *OpenChannelRequest) (*ChannelPoint, error)
	OpenChannel(*OpenChannelRequest, Lightning_OpenChannelServer) error
	CloseChannel(*CloseChannelRequest, Lightning_CloseChannelServer) error
	SendPayment(Lightning_SendPaymentServer) error
	SendPaymentSync(context.Context, *SendRequest) (*SendResponse, error)
	AddInvoice(context.Context, *Invoice) (*AddInvoiceResponse, error)
	ListInvoices(context.Context, *ListInvoiceRequest) (*ListInvoiceResponse, error)
	LookupInvoice(context.Context, *PaymentHash) (*Invoice, error)
	SubscribeInvoices(*InvoiceSubscription, Lightning_SubscribeInvoicesServer) error
	DecodePayReq(context.Context, *PayReqString) (*PayReq, error)
	ListPayments(context.Context, *ListPaymentsRequest) (*ListPaymentsResponse, error)
	DeleteAllPayments(context.Context, *DeleteAllPaymentsRequest) (*DeleteAllPaymentsResponse, error)
	DescribeGraph(context.Context, *ChannelGraphRequest) (*ChannelGraph, error)
	GetChanInfo(context.Context, *ChanInfoRequest) (*ChannelEdge, error)
	GetNodeInfo(context.Context, *NodeInfoRequest) (*NodeInfo, error)
	QueryRoutes(context.Context, *QueryRoutesRequest) (*QueryRoutesResponse, error)
	GetNetworkInfo(context.Context, *NetworkInfoRequest) (*NetworkInfo, error)
	StopDaemon(context.Context, *StopRequest) (*StopResponse, error)
	SubscribeChannelGraph(*GraphTopologySubscription, Lightning_SubscribeChannelGraphServer) error
	SetAlias(context.Context, *SetAliasRequest) (*SetAliasResponse, error)
	DebugLevel(context.Context, *DebugLevelRequest) (*DebugLevelResponse, error)
}

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 Lightning_SubscribeChannelGraphClient

type Lightning_SubscribeChannelGraphClient interface {
	Recv() (*GraphTopologyUpdate, error)
	grpc.ClientStream
}

type Lightning_SubscribeChannelGraphServer

type Lightning_SubscribeChannelGraphServer interface {
	Send(*GraphTopologyUpdate) error
	grpc.ServerStream
}

type Lightning_SubscribeInvoicesClient

type Lightning_SubscribeInvoicesClient interface {
	Recv() (*Invoice, error)
	grpc.ClientStream
}

type Lightning_SubscribeInvoicesServer

type Lightning_SubscribeInvoicesServer interface {
	Send(*Invoice) error
	grpc.ServerStream
}

type Lightning_SubscribeTransactionsClient

type Lightning_SubscribeTransactionsClient interface {
	Recv() (*Transaction, error)
	grpc.ClientStream
}

type Lightning_SubscribeTransactionsServer

type Lightning_SubscribeTransactionsServer interface {
	Send(*Transaction) 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,11,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=pendingOnly" json:"pending_only,omitempty"`
}

func (*ListInvoiceRequest) Descriptor

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

func (*ListInvoiceRequest) GetPendingOnly

func (m *ListInvoiceRequest) GetPendingOnly() bool

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 ListPaymentsRequest

type ListPaymentsRequest struct {
}

func (*ListPaymentsRequest) Descriptor

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

func (*ListPaymentsRequest) ProtoMessage

func (*ListPaymentsRequest) ProtoMessage()

func (*ListPaymentsRequest) Reset

func (m *ListPaymentsRequest) Reset()

func (*ListPaymentsRequest) String

func (m *ListPaymentsRequest) String() string

type ListPaymentsResponse

type ListPaymentsResponse struct {
	Payments []*Payment `protobuf:"bytes,1,rep,name=payments" json:"payments,omitempty"`
}

func (*ListPaymentsResponse) Descriptor

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

func (*ListPaymentsResponse) GetPayments

func (m *ListPaymentsResponse) GetPayments() []*Payment

func (*ListPaymentsResponse) ProtoMessage

func (*ListPaymentsResponse) ProtoMessage()

func (*ListPaymentsResponse) Reset

func (m *ListPaymentsResponse) Reset()

func (*ListPaymentsResponse) String

func (m *ListPaymentsResponse) 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 NetworkInfo

type NetworkInfo struct {
	GraphDiameter        uint32  `protobuf:"varint,1,opt,name=graph_diameter" json:"graph_diameter,omitempty"`
	AvgOutDegree         float64 `protobuf:"fixed64,2,opt,name=avg_out_degree" json:"avg_out_degree,omitempty"`
	MaxOutDegree         uint32  `protobuf:"varint,3,opt,name=max_out_degree" json:"max_out_degree,omitempty"`
	NumNodes             uint32  `protobuf:"varint,4,opt,name=num_nodes" json:"num_nodes,omitempty"`
	NumChannels          uint32  `protobuf:"varint,5,opt,name=num_channels" json:"num_channels,omitempty"`
	TotalNetworkCapacity int64   `protobuf:"varint,6,opt,name=total_network_capacity" json:"total_network_capacity,omitempty"`
	AvgChannelSize       float64 `protobuf:"fixed64,7,opt,name=avg_channel_size" json:"avg_channel_size,omitempty"`
	MinChannelSize       int64   `protobuf:"varint,8,opt,name=min_channel_size" json:"min_channel_size,omitempty"`
	MaxChannelSize       int64   `protobuf:"varint,9,opt,name=max_channel_size" json:"max_channel_size,omitempty"`
}

func (*NetworkInfo) Descriptor

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

func (*NetworkInfo) GetAvgChannelSize

func (m *NetworkInfo) GetAvgChannelSize() float64

func (*NetworkInfo) GetAvgOutDegree

func (m *NetworkInfo) GetAvgOutDegree() float64

func (*NetworkInfo) GetGraphDiameter

func (m *NetworkInfo) GetGraphDiameter() uint32

func (*NetworkInfo) GetMaxChannelSize

func (m *NetworkInfo) GetMaxChannelSize() int64

func (*NetworkInfo) GetMaxOutDegree

func (m *NetworkInfo) GetMaxOutDegree() uint32

func (*NetworkInfo) GetMinChannelSize

func (m *NetworkInfo) GetMinChannelSize() int64

func (*NetworkInfo) GetNumChannels

func (m *NetworkInfo) GetNumChannels() uint32

func (*NetworkInfo) GetNumNodes

func (m *NetworkInfo) GetNumNodes() uint32

func (*NetworkInfo) GetTotalNetworkCapacity

func (m *NetworkInfo) GetTotalNetworkCapacity() int64

func (*NetworkInfo) ProtoMessage

func (*NetworkInfo) ProtoMessage()

func (*NetworkInfo) Reset

func (m *NetworkInfo) Reset()

func (*NetworkInfo) String

func (m *NetworkInfo) String() string

type NetworkInfoRequest

type NetworkInfoRequest struct {
}

func (*NetworkInfoRequest) Descriptor

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

func (*NetworkInfoRequest) ProtoMessage

func (*NetworkInfoRequest) ProtoMessage()

func (*NetworkInfoRequest) Reset

func (m *NetworkInfoRequest) Reset()

func (*NetworkInfoRequest) String

func (m *NetworkInfoRequest) 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) GetType

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) GetAddress

func (m *NewAddressResponse) GetAddress() string

func (*NewAddressResponse) ProtoMessage

func (*NewAddressResponse) ProtoMessage()

func (*NewAddressResponse) Reset

func (m *NewAddressResponse) Reset()

func (*NewAddressResponse) String

func (m *NewAddressResponse) String() string

type NewWitnessAddressRequest

type NewWitnessAddressRequest struct {
}

func (*NewWitnessAddressRequest) Descriptor

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

func (*NewWitnessAddressRequest) ProtoMessage

func (*NewWitnessAddressRequest) ProtoMessage()

func (*NewWitnessAddressRequest) Reset

func (m *NewWitnessAddressRequest) Reset()

func (*NewWitnessAddressRequest) String

func (m *NewWitnessAddressRequest) String() string

type NodeAddress

type NodeAddress struct {
	Network string `protobuf:"bytes,1,opt,name=network" json:"network,omitempty"`
	Addr    string `protobuf:"bytes,2,opt,name=addr" json:"addr,omitempty"`
}

func (*NodeAddress) Descriptor

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

func (*NodeAddress) GetAddr

func (m *NodeAddress) GetAddr() string

func (*NodeAddress) GetNetwork

func (m *NodeAddress) GetNetwork() string

func (*NodeAddress) ProtoMessage

func (*NodeAddress) ProtoMessage()

func (*NodeAddress) Reset

func (m *NodeAddress) Reset()

func (*NodeAddress) String

func (m *NodeAddress) String() string

type NodeInfo

type NodeInfo struct {
	Node          *LightningNode `protobuf:"bytes,1,opt,name=node" json:"node,omitempty"`
	NumChannels   uint32         `protobuf:"varint,2,opt,name=num_channels" json:"num_channels,omitempty"`
	TotalCapacity int64          `protobuf:"varint,3,opt,name=total_capacity" json:"total_capacity,omitempty"`
}

func (*NodeInfo) Descriptor

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

func (*NodeInfo) GetNode

func (m *NodeInfo) GetNode() *LightningNode

func (*NodeInfo) GetNumChannels

func (m *NodeInfo) GetNumChannels() uint32

func (*NodeInfo) GetTotalCapacity

func (m *NodeInfo) GetTotalCapacity() int64

func (*NodeInfo) ProtoMessage

func (*NodeInfo) ProtoMessage()

func (*NodeInfo) Reset

func (m *NodeInfo) Reset()

func (*NodeInfo) String

func (m *NodeInfo) String() string

type NodeInfoRequest

type NodeInfoRequest struct {
	PubKey string `protobuf:"bytes,1,opt,name=pub_key,json=pubKey" json:"pub_key,omitempty"`
}

func (*NodeInfoRequest) Descriptor

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

func (*NodeInfoRequest) GetPubKey

func (m *NodeInfoRequest) GetPubKey() string

func (*NodeInfoRequest) ProtoMessage

func (*NodeInfoRequest) ProtoMessage()

func (*NodeInfoRequest) Reset

func (m *NodeInfoRequest) Reset()

func (*NodeInfoRequest) String

func (m *NodeInfoRequest) String() string

type NodeUpdate

type NodeUpdate struct {
	Addresses      []string `protobuf:"bytes,1,rep,name=addresses" json:"addresses,omitempty"`
	IdentityKey    string   `protobuf:"bytes,2,opt,name=identity_key,json=identityKey" json:"identity_key,omitempty"`
	GlobalFeatures []byte   `protobuf:"bytes,3,opt,name=global_features,json=globalFeatures,proto3" json:"global_features,omitempty"`
	Alias          string   `protobuf:"bytes,4,opt,name=alias" json:"alias,omitempty"`
}

func (*NodeUpdate) Descriptor

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

func (*NodeUpdate) GetAddresses

func (m *NodeUpdate) GetAddresses() []string

func (*NodeUpdate) GetAlias

func (m *NodeUpdate) GetAlias() string

func (*NodeUpdate) GetGlobalFeatures

func (m *NodeUpdate) GetGlobalFeatures() []byte

func (*NodeUpdate) GetIdentityKey

func (m *NodeUpdate) GetIdentityKey() string

func (*NodeUpdate) ProtoMessage

func (*NodeUpdate) ProtoMessage()

func (*NodeUpdate) Reset

func (m *NodeUpdate) Reset()

func (*NodeUpdate) String

func (m *NodeUpdate) String() string

type OpenChannelRequest

type OpenChannelRequest struct {
	TargetPeerId       int32  `protobuf:"varint,1,opt,name=target_peer_id" json:"target_peer_id,omitempty"`
	NodePubkey         []byte `protobuf:"bytes,2,opt,name=node_pubkey,proto3" json:"node_pubkey,omitempty"`
	NodePubkeyString   string `protobuf:"bytes,3,opt,name=node_pubkey_string" json:"node_pubkey_string,omitempty"`
	LocalFundingAmount int64  `protobuf:"varint,4,opt,name=local_funding_amount" json:"local_funding_amount,omitempty"`
	PushSat            int64  `protobuf:"varint,5,opt,name=push_sat" json:"push_sat,omitempty"`
}

func (*OpenChannelRequest) Descriptor

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

func (*OpenChannelRequest) GetLocalFundingAmount

func (m *OpenChannelRequest) GetLocalFundingAmount() int64

func (*OpenChannelRequest) GetNodePubkey

func (m *OpenChannelRequest) GetNodePubkey() []byte

func (*OpenChannelRequest) GetNodePubkeyString

func (m *OpenChannelRequest) GetNodePubkeyString() string

func (*OpenChannelRequest) GetPushSat

func (m *OpenChannelRequest) GetPushSat() int64

func (*OpenChannelRequest) GetTargetPeerId

func (m *OpenChannelRequest) GetTargetPeerId() int32

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 PayReq

type PayReq struct {
	Destination string `protobuf:"bytes,1,opt,name=destination" json:"destination,omitempty"`
	PaymentHash string `protobuf:"bytes,2,opt,name=payment_hash" json:"payment_hash,omitempty"`
	NumSatoshis int64  `protobuf:"varint,3,opt,name=num_satoshis" json:"num_satoshis,omitempty"`
}

func (*PayReq) Descriptor

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

func (*PayReq) GetDestination

func (m *PayReq) GetDestination() string

func (*PayReq) GetNumSatoshis

func (m *PayReq) GetNumSatoshis() int64

func (*PayReq) GetPaymentHash

func (m *PayReq) GetPaymentHash() string

func (*PayReq) ProtoMessage

func (*PayReq) ProtoMessage()

func (*PayReq) Reset

func (m *PayReq) Reset()

func (*PayReq) String

func (m *PayReq) String() string

type PayReqString

type PayReqString struct {
	PayReq string `protobuf:"bytes,1,opt,name=pay_req,json=payReq" json:"pay_req,omitempty"`
}

func (*PayReqString) Descriptor

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

func (*PayReqString) GetPayReq

func (m *PayReqString) GetPayReq() string

func (*PayReqString) ProtoMessage

func (*PayReqString) ProtoMessage()

func (*PayReqString) Reset

func (m *PayReqString) Reset()

func (*PayReqString) String

func (m *PayReqString) String() string

type Payment

type Payment struct {
	PaymentHash  string   `protobuf:"bytes,1,opt,name=payment_hash" json:"payment_hash,omitempty"`
	Value        int64    `protobuf:"varint,2,opt,name=value" json:"value,omitempty"`
	CreationDate int64    `protobuf:"varint,3,opt,name=creation_date" json:"creation_date,omitempty"`
	Path         []string `protobuf:"bytes,4,rep,name=path" json:"path,omitempty"`
	Fee          int64    `protobuf:"varint,5,opt,name=fee" json:"fee,omitempty"`
}

func (*Payment) Descriptor

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

func (*Payment) GetCreationDate

func (m *Payment) GetCreationDate() int64

func (*Payment) GetFee

func (m *Payment) GetFee() int64

func (*Payment) GetPath

func (m *Payment) GetPath() []string

func (*Payment) GetPaymentHash

func (m *Payment) GetPaymentHash() string

func (*Payment) GetValue

func (m *Payment) GetValue() int64

func (*Payment) ProtoMessage

func (*Payment) ProtoMessage()

func (*Payment) Reset

func (m *Payment) Reset()

func (*Payment) String

func (m *Payment) String() string

type PaymentHash

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

func (*PaymentHash) Descriptor

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

func (*PaymentHash) GetRHash

func (m *PaymentHash) GetRHash() []byte

func (*PaymentHash) GetRHashStr

func (m *PaymentHash) GetRHashStr() string

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 {
	PubKey    string `protobuf:"bytes,1,opt,name=pub_key" json:"pub_key,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"`
	PingTime  int64  `protobuf:"varint,9,opt,name=ping_time" json:"ping_time,omitempty"`
}

func (*Peer) Descriptor

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

func (*Peer) GetAddress

func (m *Peer) GetAddress() string

func (*Peer) GetBytesRecv

func (m *Peer) GetBytesRecv() uint64

func (*Peer) GetBytesSent

func (m *Peer) GetBytesSent() uint64

func (*Peer) GetInbound

func (m *Peer) GetInbound() bool

func (*Peer) GetPeerId

func (m *Peer) GetPeerId() int32

func (*Peer) GetPingTime

func (m *Peer) GetPingTime() int64

func (*Peer) GetPubKey

func (m *Peer) GetPubKey() string

func (*Peer) GetSatRecv

func (m *Peer) GetSatRecv() int64

func (*Peer) GetSatSent

func (m *Peer) GetSatSent() int64

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 {
}

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 {
	TotalLimboBalance           int64                                        `protobuf:"varint,1,opt,name=total_limbo_balance" json:"total_limbo_balance,omitempty"`
	PendingOpenChannels         []*PendingChannelResponse_PendingOpenChannel `protobuf:"bytes,2,rep,name=pending_open_channels" json:"pending_open_channels,omitempty"`
	PendingClosingChannels      []*PendingChannelResponse_ClosedChannel      `protobuf:"bytes,3,rep,name=pending_closing_channels" json:"pending_closing_channels,omitempty"`
	PendingForceClosingChannels []*PendingChannelResponse_ForceClosedChannel `protobuf:"bytes,4,rep,name=pending_force_closing_channels" json:"pending_force_closing_channels,omitempty"`
}

func (*PendingChannelResponse) Descriptor

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

func (*PendingChannelResponse) GetPendingClosingChannels

func (m *PendingChannelResponse) GetPendingClosingChannels() []*PendingChannelResponse_ClosedChannel

func (*PendingChannelResponse) GetPendingForceClosingChannels

func (m *PendingChannelResponse) GetPendingForceClosingChannels() []*PendingChannelResponse_ForceClosedChannel

func (*PendingChannelResponse) GetPendingOpenChannels

func (*PendingChannelResponse) GetTotalLimboBalance

func (m *PendingChannelResponse) GetTotalLimboBalance() int64

func (*PendingChannelResponse) ProtoMessage

func (*PendingChannelResponse) ProtoMessage()

func (*PendingChannelResponse) Reset

func (m *PendingChannelResponse) Reset()

func (*PendingChannelResponse) String

func (m *PendingChannelResponse) String() string

type PendingChannelResponse_ClosedChannel

type PendingChannelResponse_ClosedChannel struct {
	Channel     *PendingChannelResponse_PendingChannel `protobuf:"bytes,1,opt,name=channel" json:"channel,omitempty"`
	ClosingTxid string                                 `protobuf:"bytes,2,opt,name=closing_txid" json:"closing_txid,omitempty"`
}

func (*PendingChannelResponse_ClosedChannel) Descriptor

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

func (*PendingChannelResponse_ClosedChannel) GetChannel

func (*PendingChannelResponse_ClosedChannel) GetClosingTxid

func (m *PendingChannelResponse_ClosedChannel) GetClosingTxid() string

func (*PendingChannelResponse_ClosedChannel) ProtoMessage

func (*PendingChannelResponse_ClosedChannel) ProtoMessage()

func (*PendingChannelResponse_ClosedChannel) Reset

func (*PendingChannelResponse_ClosedChannel) String

type PendingChannelResponse_ForceClosedChannel

type PendingChannelResponse_ForceClosedChannel struct {
	Channel           *PendingChannelResponse_PendingChannel `protobuf:"bytes,1,opt,name=channel" json:"channel,omitempty"`
	ClosingTxid       string                                 `protobuf:"bytes,2,opt,name=closing_txid" json:"closing_txid,omitempty"`
	LimboBalance      int64                                  `protobuf:"varint,3,opt,name=limbo_balance" json:"limbo_balance,omitempty"`
	MaturityHeight    uint32                                 `protobuf:"varint,4,opt,name=maturity_height" json:"maturity_height,omitempty"`
	BlocksTilMaturity uint32                                 `protobuf:"varint,5,opt,name=blocks_til_maturity" json:"blocks_til_maturity,omitempty"`
}

func (*PendingChannelResponse_ForceClosedChannel) Descriptor

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

func (*PendingChannelResponse_ForceClosedChannel) GetBlocksTilMaturity

func (m *PendingChannelResponse_ForceClosedChannel) GetBlocksTilMaturity() uint32

func (*PendingChannelResponse_ForceClosedChannel) GetChannel

func (*PendingChannelResponse_ForceClosedChannel) GetClosingTxid

func (*PendingChannelResponse_ForceClosedChannel) GetLimboBalance

func (m *PendingChannelResponse_ForceClosedChannel) GetLimboBalance() int64

func (*PendingChannelResponse_ForceClosedChannel) GetMaturityHeight

func (m *PendingChannelResponse_ForceClosedChannel) GetMaturityHeight() uint32

func (*PendingChannelResponse_ForceClosedChannel) ProtoMessage

func (*PendingChannelResponse_ForceClosedChannel) Reset

func (*PendingChannelResponse_ForceClosedChannel) String

type PendingChannelResponse_PendingChannel

type PendingChannelResponse_PendingChannel struct {
	RemoteNodePub string `protobuf:"bytes,1,opt,name=remote_node_pub" json:"remote_node_pub,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"`
}

func (*PendingChannelResponse_PendingChannel) Descriptor

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

func (*PendingChannelResponse_PendingChannel) GetCapacity

func (*PendingChannelResponse_PendingChannel) GetChannelPoint

func (m *PendingChannelResponse_PendingChannel) GetChannelPoint() string

func (*PendingChannelResponse_PendingChannel) GetLocalBalance

func (m *PendingChannelResponse_PendingChannel) GetLocalBalance() int64

func (*PendingChannelResponse_PendingChannel) GetRemoteBalance

func (m *PendingChannelResponse_PendingChannel) GetRemoteBalance() int64

func (*PendingChannelResponse_PendingChannel) GetRemoteNodePub

func (m *PendingChannelResponse_PendingChannel) GetRemoteNodePub() string

func (*PendingChannelResponse_PendingChannel) ProtoMessage

func (*PendingChannelResponse_PendingChannel) ProtoMessage()

func (*PendingChannelResponse_PendingChannel) Reset

func (*PendingChannelResponse_PendingChannel) String

type PendingChannelResponse_PendingOpenChannel

type PendingChannelResponse_PendingOpenChannel struct {
	Channel            *PendingChannelResponse_PendingChannel `protobuf:"bytes,1,opt,name=channel" json:"channel,omitempty"`
	ConfirmationHeight uint32                                 `protobuf:"varint,2,opt,name=confirmation_height" json:"confirmation_height,omitempty"`
	BlocksTillOpen     uint32                                 `protobuf:"varint,3,opt,name=blocks_till_open" json:"blocks_till_open,omitempty"`
	CommitFee          int64                                  `protobuf:"varint,4,opt,name=commit_fee" json:"commit_fee,omitempty"`
	CommitWeight       int64                                  `protobuf:"varint,5,opt,name=commit_weight" json:"commit_weight,omitempty"`
	FeePerKw           int64                                  `protobuf:"varint,6,opt,name=fee_per_kw" json:"fee_per_kw,omitempty"`
}

func (*PendingChannelResponse_PendingOpenChannel) Descriptor

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

func (*PendingChannelResponse_PendingOpenChannel) GetBlocksTillOpen

func (m *PendingChannelResponse_PendingOpenChannel) GetBlocksTillOpen() uint32

func (*PendingChannelResponse_PendingOpenChannel) GetChannel

func (*PendingChannelResponse_PendingOpenChannel) GetCommitFee

func (*PendingChannelResponse_PendingOpenChannel) GetCommitWeight

func (m *PendingChannelResponse_PendingOpenChannel) GetCommitWeight() int64

func (*PendingChannelResponse_PendingOpenChannel) GetConfirmationHeight

func (m *PendingChannelResponse_PendingOpenChannel) GetConfirmationHeight() uint32

func (*PendingChannelResponse_PendingOpenChannel) GetFeePerKw

func (*PendingChannelResponse_PendingOpenChannel) ProtoMessage

func (*PendingChannelResponse_PendingOpenChannel) Reset

func (*PendingChannelResponse_PendingOpenChannel) String

type PendingUpdate

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

func (*PendingUpdate) Descriptor

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

func (*PendingUpdate) GetOutputIndex

func (m *PendingUpdate) GetOutputIndex() uint32

func (*PendingUpdate) GetTxid

func (m *PendingUpdate) GetTxid() []byte

func (*PendingUpdate) ProtoMessage

func (*PendingUpdate) ProtoMessage()

func (*PendingUpdate) Reset

func (m *PendingUpdate) Reset()

func (*PendingUpdate) String

func (m *PendingUpdate) String() string

type QueryRoutesRequest

type QueryRoutesRequest struct {
	PubKey string `protobuf:"bytes,1,opt,name=pub_key,json=pubKey" json:"pub_key,omitempty"`
	Amt    int64  `protobuf:"varint,2,opt,name=amt" json:"amt,omitempty"`
}

func (*QueryRoutesRequest) Descriptor

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

func (*QueryRoutesRequest) GetAmt

func (m *QueryRoutesRequest) GetAmt() int64

func (*QueryRoutesRequest) GetPubKey

func (m *QueryRoutesRequest) GetPubKey() string

func (*QueryRoutesRequest) ProtoMessage

func (*QueryRoutesRequest) ProtoMessage()

func (*QueryRoutesRequest) Reset

func (m *QueryRoutesRequest) Reset()

func (*QueryRoutesRequest) String

func (m *QueryRoutesRequest) String() string

type QueryRoutesResponse

type QueryRoutesResponse struct {
	Routes []*Route `protobuf:"bytes,1,rep,name=routes" json:"routes,omitempty"`
}

func (*QueryRoutesResponse) Descriptor

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

func (*QueryRoutesResponse) GetRoutes

func (m *QueryRoutesResponse) GetRoutes() []*Route

func (*QueryRoutesResponse) ProtoMessage

func (*QueryRoutesResponse) ProtoMessage()

func (*QueryRoutesResponse) Reset

func (m *QueryRoutesResponse) Reset()

func (*QueryRoutesResponse) String

func (m *QueryRoutesResponse) String() string

type Route

type Route struct {
	TotalTimeLock uint32 `protobuf:"varint,1,opt,name=total_time_lock" json:"total_time_lock,omitempty"`
	TotalFees     int64  `protobuf:"varint,2,opt,name=total_fees" json:"total_fees,omitempty"`
	TotalAmt      int64  `protobuf:"varint,3,opt,name=total_amt" json:"total_amt,omitempty"`
	Hops          []*Hop `protobuf:"bytes,4,rep,name=hops" json:"hops,omitempty"`
}

func (*Route) Descriptor

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

func (*Route) GetHops

func (m *Route) GetHops() []*Hop

func (*Route) GetTotalAmt

func (m *Route) GetTotalAmt() int64

func (*Route) GetTotalFees

func (m *Route) GetTotalFees() int64

func (*Route) GetTotalTimeLock

func (m *Route) GetTotalTimeLock() uint32

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) Reset

func (m *Route) Reset()

func (*Route) String

func (m *Route) String() string

type RoutingPolicy

type RoutingPolicy struct {
	TimeLockDelta    uint32 `protobuf:"varint,1,opt,name=time_lock_delta" json:"time_lock_delta,omitempty"`
	MinHtlc          int64  `protobuf:"varint,2,opt,name=min_htlc" json:"min_htlc,omitempty"`
	FeeBaseMsat      int64  `protobuf:"varint,3,opt,name=fee_base_msat" json:"fee_base_msat,omitempty"`
	FeeRateMilliMsat int64  `protobuf:"varint,4,opt,name=fee_rate_milli_msat" json:"fee_rate_milli_msat,omitempty"`
}

func (*RoutingPolicy) Descriptor

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

func (*RoutingPolicy) GetFeeBaseMsat

func (m *RoutingPolicy) GetFeeBaseMsat() int64

func (*RoutingPolicy) GetFeeRateMilliMsat

func (m *RoutingPolicy) GetFeeRateMilliMsat() int64

func (*RoutingPolicy) GetMinHtlc

func (m *RoutingPolicy) GetMinHtlc() int64

func (*RoutingPolicy) GetTimeLockDelta

func (m *RoutingPolicy) GetTimeLockDelta() uint32

func (*RoutingPolicy) ProtoMessage

func (*RoutingPolicy) ProtoMessage()

func (*RoutingPolicy) Reset

func (m *RoutingPolicy) Reset()

func (*RoutingPolicy) String

func (m *RoutingPolicy) 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) GetAddr

func (m *SendCoinsRequest) GetAddr() string

func (*SendCoinsRequest) GetAmount

func (m *SendCoinsRequest) GetAmount() int64

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) GetTxid

func (m *SendCoinsResponse) GetTxid() string

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) GetTxid

func (m *SendManyResponse) GetTxid() string

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"`
	DestString        string `protobuf:"bytes,2,opt,name=dest_string,json=destString" json:"dest_string,omitempty"`
	Amt               int64  `protobuf:"varint,3,opt,name=amt" json:"amt,omitempty"`
	PaymentHash       []byte `protobuf:"bytes,4,opt,name=payment_hash,json=paymentHash,proto3" json:"payment_hash,omitempty"`
	PaymentHashString string `protobuf:"bytes,5,opt,name=payment_hash_string,json=paymentHashString" json:"payment_hash_string,omitempty"`
	PaymentRequest    string `protobuf:"bytes,6,opt,name=payment_request,json=paymentRequest" json:"payment_request,omitempty"`
}

func (*SendRequest) Descriptor

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

func (*SendRequest) GetAmt

func (m *SendRequest) GetAmt() int64

func (*SendRequest) GetDest

func (m *SendRequest) GetDest() []byte

func (*SendRequest) GetDestString

func (m *SendRequest) GetDestString() string

func (*SendRequest) GetPaymentHash

func (m *SendRequest) GetPaymentHash() []byte

func (*SendRequest) GetPaymentHashString

func (m *SendRequest) GetPaymentHashString() string

func (*SendRequest) GetPaymentRequest

func (m *SendRequest) GetPaymentRequest() string

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 {
	PaymentError    string `protobuf:"bytes,1,opt,name=payment_error" json:"payment_error,omitempty"`
	PaymentPreimage []byte `protobuf:"bytes,2,opt,name=payment_preimage,proto3" json:"payment_preimage,omitempty"`
	PaymentRoute    *Route `protobuf:"bytes,3,opt,name=payment_route" json:"payment_route,omitempty"`
}

func (*SendResponse) Descriptor

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

func (*SendResponse) GetPaymentError

func (m *SendResponse) GetPaymentError() string

func (*SendResponse) GetPaymentPreimage

func (m *SendResponse) GetPaymentPreimage() []byte

func (*SendResponse) GetPaymentRoute

func (m *SendResponse) GetPaymentRoute() *Route

func (*SendResponse) ProtoMessage

func (*SendResponse) ProtoMessage()

func (*SendResponse) Reset

func (m *SendResponse) Reset()

func (*SendResponse) String

func (m *SendResponse) String() string

type SetAliasRequest

type SetAliasRequest struct {
	NewAlias string `protobuf:"bytes,1,opt,name=new_alias,json=newAlias" json:"new_alias,omitempty"`
}

func (*SetAliasRequest) Descriptor

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

func (*SetAliasRequest) GetNewAlias

func (m *SetAliasRequest) GetNewAlias() string

func (*SetAliasRequest) ProtoMessage

func (*SetAliasRequest) ProtoMessage()

func (*SetAliasRequest) Reset

func (m *SetAliasRequest) Reset()

func (*SetAliasRequest) String

func (m *SetAliasRequest) String() string

type SetAliasResponse

type SetAliasResponse struct {
}

func (*SetAliasResponse) Descriptor

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

func (*SetAliasResponse) ProtoMessage

func (*SetAliasResponse) ProtoMessage()

func (*SetAliasResponse) Reset

func (m *SetAliasResponse) Reset()

func (*SetAliasResponse) String

func (m *SetAliasResponse) String() string

type SignMessageRequest

type SignMessageRequest struct {
	Msg []byte `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
}

func (*SignMessageRequest) Descriptor

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

func (*SignMessageRequest) GetMsg

func (m *SignMessageRequest) GetMsg() []byte

func (*SignMessageRequest) ProtoMessage

func (*SignMessageRequest) ProtoMessage()

func (*SignMessageRequest) Reset

func (m *SignMessageRequest) Reset()

func (*SignMessageRequest) String

func (m *SignMessageRequest) String() string

type SignMessageResponse

type SignMessageResponse struct {
	Signature string `protobuf:"bytes,1,opt,name=signature" json:"signature,omitempty"`
}

func (*SignMessageResponse) Descriptor

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

func (*SignMessageResponse) GetSignature

func (m *SignMessageResponse) GetSignature() string

func (*SignMessageResponse) ProtoMessage

func (*SignMessageResponse) ProtoMessage()

func (*SignMessageResponse) Reset

func (m *SignMessageResponse) Reset()

func (*SignMessageResponse) String

func (m *SignMessageResponse) String() string

type StopRequest

type StopRequest struct {
}

func (*StopRequest) Descriptor

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

func (*StopRequest) ProtoMessage

func (*StopRequest) ProtoMessage()

func (*StopRequest) Reset

func (m *StopRequest) Reset()

func (*StopRequest) String

func (m *StopRequest) String() string

type StopResponse

type StopResponse struct {
}

func (*StopResponse) Descriptor

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

func (*StopResponse) ProtoMessage

func (*StopResponse) ProtoMessage()

func (*StopResponse) Reset

func (m *StopResponse) Reset()

func (*StopResponse) String

func (m *StopResponse) String() string

type Transaction

type Transaction struct {
	TxHash           string `protobuf:"bytes,1,opt,name=tx_hash" json:"tx_hash,omitempty"`
	Amount           int64  `protobuf:"varint,2,opt,name=amount" json:"amount,omitempty"`
	NumConfirmations int32  `protobuf:"varint,3,opt,name=num_confirmations" json:"num_confirmations,omitempty"`
	BlockHash        string `protobuf:"bytes,4,opt,name=block_hash" json:"block_hash,omitempty"`
	BlockHeight      int32  `protobuf:"varint,5,opt,name=block_height" json:"block_height,omitempty"`
	TimeStamp        int64  `protobuf:"varint,6,opt,name=time_stamp" json:"time_stamp,omitempty"`
	TotalFees        int64  `protobuf:"varint,7,opt,name=total_fees" json:"total_fees,omitempty"`
}

func (*Transaction) Descriptor

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

func (*Transaction) GetAmount

func (m *Transaction) GetAmount() int64

func (*Transaction) GetBlockHash

func (m *Transaction) GetBlockHash() string

func (*Transaction) GetBlockHeight

func (m *Transaction) GetBlockHeight() int32

func (*Transaction) GetNumConfirmations

func (m *Transaction) GetNumConfirmations() int32

func (*Transaction) GetTimeStamp

func (m *Transaction) GetTimeStamp() int64

func (*Transaction) GetTotalFees

func (m *Transaction) GetTotalFees() int64

func (*Transaction) GetTxHash

func (m *Transaction) GetTxHash() string

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) Reset

func (m *Transaction) Reset()

func (*Transaction) String

func (m *Transaction) String() string

type TransactionDetails

type TransactionDetails struct {
	Transactions []*Transaction `protobuf:"bytes,1,rep,name=transactions" json:"transactions,omitempty"`
}

func (*TransactionDetails) Descriptor

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

func (*TransactionDetails) GetTransactions

func (m *TransactionDetails) GetTransactions() []*Transaction

func (*TransactionDetails) ProtoMessage

func (*TransactionDetails) ProtoMessage()

func (*TransactionDetails) Reset

func (m *TransactionDetails) Reset()

func (*TransactionDetails) String

func (m *TransactionDetails) String() string

type VerifyMessageRequest

type VerifyMessageRequest struct {
	Msg       []byte `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	Signature string `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"`
}

func (*VerifyMessageRequest) Descriptor

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

func (*VerifyMessageRequest) GetMsg

func (m *VerifyMessageRequest) GetMsg() []byte

func (*VerifyMessageRequest) GetSignature

func (m *VerifyMessageRequest) GetSignature() string

func (*VerifyMessageRequest) ProtoMessage

func (*VerifyMessageRequest) ProtoMessage()

func (*VerifyMessageRequest) Reset

func (m *VerifyMessageRequest) Reset()

func (*VerifyMessageRequest) String

func (m *VerifyMessageRequest) String() string

type VerifyMessageResponse

type VerifyMessageResponse struct {
	Valid  bool   `protobuf:"varint,1,opt,name=valid" json:"valid,omitempty"`
	Pubkey string `protobuf:"bytes,2,opt,name=pubkey" json:"pubkey,omitempty"`
}

func (*VerifyMessageResponse) Descriptor

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

func (*VerifyMessageResponse) GetPubkey

func (m *VerifyMessageResponse) GetPubkey() string

func (*VerifyMessageResponse) GetValid

func (m *VerifyMessageResponse) GetValid() bool

func (*VerifyMessageResponse) ProtoMessage

func (*VerifyMessageResponse) ProtoMessage()

func (*VerifyMessageResponse) Reset

func (m *VerifyMessageResponse) Reset()

func (*VerifyMessageResponse) String

func (m *VerifyMessageResponse) String() string

type WalletBalanceRequest

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

func (*WalletBalanceRequest) Descriptor

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

func (*WalletBalanceRequest) GetWitnessOnly

func (m *WalletBalanceRequest) GetWitnessOnly() bool

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 int64 `protobuf:"varint,1,opt,name=balance" json:"balance,omitempty"`
}

func (*WalletBalanceResponse) Descriptor

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

func (*WalletBalanceResponse) GetBalance

func (m *WalletBalanceResponse) GetBalance() int64

func (*WalletBalanceResponse) ProtoMessage

func (*WalletBalanceResponse) ProtoMessage()

func (*WalletBalanceResponse) Reset

func (m *WalletBalanceResponse) Reset()

func (*WalletBalanceResponse) String

func (m *WalletBalanceResponse) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL