Documentation
¶
Index ¶
- func AdrStringToOutscript(adr string) ([]byte, error)
- func CoinTypeFromBechAdr(adr string) (uint32, error)
- func RPCListen(rpcl *LitRPC, port uint16)
- type AddressArgs
- type AddressReply
- type BalReply
- type ChanArgs
- type ChannelInfo
- type ChannelListReply
- type ConInfo
- type ConnectArgs
- type FanArgs
- type FundArgs
- type ListConnectionsReply
- type ListenArgs
- type ListeningPortsReply
- type LitRPC
- func (r *LitRPC) Address(args *AddressArgs, reply *AddressReply) error
- func (r *LitRPC) Bal(args *NoArgs, reply *BalReply) error
- func (r *LitRPC) BreakChannel(args ChanArgs, reply *StatusReply) error
- func (r *LitRPC) ChannelList(args ChanArgs, reply *ChannelListReply) error
- func (r *LitRPC) CloseChannel(args ChanArgs, reply *StatusReply) error
- func (r *LitRPC) Connect(args ConnectArgs, reply *StatusReply) error
- func (r *LitRPC) Fanout(args FanArgs, reply *TxidsReply) error
- func (r *LitRPC) FundChannel(args FundArgs, reply *StatusReply) error
- func (r *LitRPC) GetListeningPorts(args NoArgs, reply *ListeningPortsReply) error
- func (r *LitRPC) GetMessages(args NoArgs, reply *StatusReply) error
- func (r *LitRPC) ListConnections(args NoArgs, reply *ListConnectionsReply) error
- func (r *LitRPC) Listen(args ListenArgs, reply *StatusReply) error
- func (r *LitRPC) Push(args PushArgs, reply *PushReply) error
- func (r *LitRPC) Say(args SayArgs, reply *StatusReply) error
- func (r *LitRPC) Send(args SendArgs, reply *TxidsReply) error
- func (r *LitRPC) Stop(args NoArgs, reply *StatusReply) error
- func (r *LitRPC) Sweep(args SweepArgs, reply *TxidsReply) error
- func (r *LitRPC) SyncHeight(args *NoArgs, reply *SyncHeightReply) error
- func (r *LitRPC) TxoList(args *NoArgs, reply *TxoListReply) error
- type NoArgs
- type PushArgs
- type PushReply
- type SayArgs
- type SendArgs
- type StatusReply
- type SweepArgs
- type SyncHeightReply
- type TxidsReply
- type TxoInfo
- type TxoListReply
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdrStringToOutscript ¶
AdrStringToOutscript converts an address string into an output script byte slice
func CoinTypeFromBechAdr ¶
Types ¶
type AddressReply ¶
type BalReply ¶
type BalReply struct {
ChanTotal int64 // total balance in channels
TxoTotal int64 // all utxos
MatureWitty int64 // confirmed, spendable and witness
}
------------------------- balance BalReply is the reply when the user asks about their balance. This is a Non-Channel
type ChannelInfo ¶
type ChannelListReply ¶
type ChannelListReply struct {
Channels []ChannelInfo
}
type FundArgs ¶
type FundArgs struct {
Peer uint32 // who to make the channel with
Capacity int64 // later can be minimum capacity
Roundup int64 // ignore for now; can be used to round-up capacity
InitialSend int64 // Initial send of -1 means "ALL"
}
------------------------- fund
type ListConnectionsReply ¶
type ListenArgs ¶
type ListenArgs struct {
Port string
}
type ListeningPortsReply ¶
type LitRPC ¶
func (*LitRPC) Address ¶
func (r *LitRPC) Address(args *AddressArgs, reply *AddressReply) error
func (*LitRPC) BreakChannel ¶
func (r *LitRPC) BreakChannel(args ChanArgs, reply *StatusReply) error
------------------------- break
func (*LitRPC) ChannelList ¶
func (r *LitRPC) ChannelList(args ChanArgs, reply *ChannelListReply) error
ChannelList sends back a list of every (open?) channel with some info for each.
func (*LitRPC) CloseChannel ¶
func (r *LitRPC) CloseChannel(args ChanArgs, reply *StatusReply) error
reply with status string CloseChannel is a cooperative closing of a channel to a specified address.
func (*LitRPC) Connect ¶
func (r *LitRPC) Connect(args ConnectArgs, reply *StatusReply) error
func (*LitRPC) FundChannel ¶
func (r *LitRPC) FundChannel(args FundArgs, reply *StatusReply) error
func (*LitRPC) GetListeningPorts ¶
func (r *LitRPC) GetListeningPorts(args NoArgs, reply *ListeningPortsReply) error
func (*LitRPC) GetMessages ¶
func (r *LitRPC) GetMessages(args NoArgs, reply *StatusReply) error
------- receive chat
func (*LitRPC) ListConnections ¶
func (r *LitRPC) ListConnections(args NoArgs, reply *ListConnectionsReply) error
func (*LitRPC) Listen ¶
func (r *LitRPC) Listen(args ListenArgs, reply *StatusReply) error
func (*LitRPC) SyncHeight ¶
func (r *LitRPC) SyncHeight(args *NoArgs, reply *SyncHeightReply) error
type StatusReply ¶
type StatusReply struct {
Status string
}
type SyncHeightReply ¶
type TxidsReply ¶
type TxidsReply struct {
Txids []string
}
type TxoListReply ¶
type TxoListReply struct {
Txos []TxoInfo
}
Click to show internal directories.
Click to hide internal directories.