Documentation
¶
Index ¶
- Variables
- func AddHopHint(n BreezClient, invoice string, lsp LspNode, chanid lntest.ShortChannelID, ...) string
- func AssertChannelCapacity(t *testing.T, outerAmountMsat uint64, capacityMsat uint64)
- func ChannelInformation(l LspNode) *lspd.ChannelInformationReply
- func ContainsHopHint(t *testing.T, invoice string) bool
- func GenerateInvoices(n BreezClient, req generateInvoicesRequest) (invoice, invoice)
- func GenerateLsps2Invoices(n BreezClient, req generateInvoicesRequest, scid string) (invoice, invoice)
- func GenerateRandomBytes(n int) ([]byte, error)
- func Lsps2Buy(c BreezClient, l LspNode, req lsps2.BuyRequest) lsps2.BuyResponse
- func Lsps2GetInfo(c BreezClient, l LspNode, req lsps2.GetInfoRequest) lsps2.GetInfoResponse
- func NewMempoolApi(h *lntest.TestHarness) *mempoolApi
- func RandStringBytes(n int) string
- func RegisterPayment(l LspNode, paymentInfo *lspd.PaymentInformation, continueOnError bool) error
- func SetFeeParams(l LspNode, settings []*FeeParamSetting) error
- func SubscribeNotifications(l LspNode, b BreezClient, url string, continueOnError bool) error
- func UnsubscribeNotifications(l LspNode, b BreezClient, url string, continueOnError bool) error
- type AddressTxsChangedPayload
- type BreezClient
- type ClientFunc
- type ClnLspNode
- func (c *ClnLspNode) EciesPublicKey() *ecies.PublicKey
- func (c *ClnLspNode) Harness() *lntest.TestHarness
- func (l *ClnLspNode) LightningNode() lntest.LightningNode
- func (l *ClnLspNode) NodeId() []byte
- func (c *ClnLspNode) NotificationsRpc() notifications.NotificationsClient
- func (l *ClnLspNode) PostgresBackend() *PostgresContainer
- func (c *ClnLspNode) PublicKey() *btcec.PublicKey
- func (c *ClnLspNode) Rpc() lspd.ChannelOpenerClient
- func (c *ClnLspNode) Start()
- func (c *ClnLspNode) Stop() error
- type FeeParamSetting
- type LndLspNode
- func (c *LndLspNode) EciesPublicKey() *ecies.PublicKey
- func (c *LndLspNode) Harness() *lntest.TestHarness
- func (l *LndLspNode) LightningNode() lntest.LightningNode
- func (l *LndLspNode) NodeId() []byte
- func (c *LndLspNode) NotificationsRpc() notifications.NotificationsClient
- func (l *LndLspNode) PostgresBackend() *PostgresContainer
- func (c *LndLspNode) PublicKey() *btcec.PublicKey
- func (c *LndLspNode) Rpc() lspd.ChannelOpenerClient
- func (c *LndLspNode) Start()
- func (c *LndLspNode) Stop() error
- type LspFunc
- type LspNode
- type PaymentReceivedPayload
- type PostgresContainer
- type RecommendedFeesResponse
- type TxConfirmedPayload
Constants ¶
This section is empty.
Variables ¶
View Source
var WorkingToken = "hello"
Functions ¶
func AddHopHint ¶
func AddHopHint(n BreezClient, invoice string, lsp LspNode, chanid lntest.ShortChannelID, amountMsat *uint64, cltvDelta uint16) string
func AssertChannelCapacity ¶
func ChannelInformation ¶
func ChannelInformation(l LspNode) *lspd.ChannelInformationReply
func GenerateInvoices ¶
func GenerateInvoices(n BreezClient, req generateInvoicesRequest) (invoice, invoice)
func GenerateLsps2Invoices ¶
func GenerateLsps2Invoices(n BreezClient, req generateInvoicesRequest, scid string) (invoice, invoice)
func GenerateRandomBytes ¶
func Lsps2Buy ¶
func Lsps2Buy(c BreezClient, l LspNode, req lsps2.BuyRequest) lsps2.BuyResponse
func Lsps2GetInfo ¶
func Lsps2GetInfo(c BreezClient, l LspNode, req lsps2.GetInfoRequest) lsps2.GetInfoResponse
func NewMempoolApi ¶
func NewMempoolApi(h *lntest.TestHarness) *mempoolApi
func RandStringBytes ¶
func RegisterPayment ¶
func RegisterPayment(l LspNode, paymentInfo *lspd.PaymentInformation, continueOnError bool) error
func SetFeeParams ¶
func SetFeeParams(l LspNode, settings []*FeeParamSetting) error
func SubscribeNotifications ¶
func SubscribeNotifications(l LspNode, b BreezClient, url string, continueOnError bool) error
func UnsubscribeNotifications ¶
func UnsubscribeNotifications(l LspNode, b BreezClient, url string, continueOnError bool) error
Types ¶
type BreezClient ¶
type BreezClient interface { Name() string Harness() *lntest.TestHarness Node() lntest.LightningNode Start() Stop() error SetHtlcAcceptor(totalMsat uint64) ResetHtlcAcceptor() ReceiveCustomMessage() *lntest.CustomMsgRequest }
type ClientFunc ¶
type ClientFunc func(h *lntest.TestHarness, m *lntest.Miner) BreezClient
type ClnLspNode ¶
type ClnLspNode struct {
// contains filtered or unexported fields
}
func (*ClnLspNode) EciesPublicKey ¶
func (c *ClnLspNode) EciesPublicKey() *ecies.PublicKey
func (*ClnLspNode) Harness ¶
func (c *ClnLspNode) Harness() *lntest.TestHarness
func (*ClnLspNode) LightningNode ¶
func (l *ClnLspNode) LightningNode() lntest.LightningNode
func (*ClnLspNode) NodeId ¶
func (l *ClnLspNode) NodeId() []byte
func (*ClnLspNode) NotificationsRpc ¶
func (c *ClnLspNode) NotificationsRpc() notifications.NotificationsClient
func (*ClnLspNode) PostgresBackend ¶
func (l *ClnLspNode) PostgresBackend() *PostgresContainer
func (*ClnLspNode) PublicKey ¶
func (c *ClnLspNode) PublicKey() *btcec.PublicKey
func (*ClnLspNode) Rpc ¶
func (c *ClnLspNode) Rpc() lspd.ChannelOpenerClient
func (*ClnLspNode) Start ¶
func (c *ClnLspNode) Start()
func (*ClnLspNode) Stop ¶
func (c *ClnLspNode) Stop() error
type FeeParamSetting ¶
type LndLspNode ¶
type LndLspNode struct {
// contains filtered or unexported fields
}
func (*LndLspNode) EciesPublicKey ¶
func (c *LndLspNode) EciesPublicKey() *ecies.PublicKey
func (*LndLspNode) Harness ¶
func (c *LndLspNode) Harness() *lntest.TestHarness
func (*LndLspNode) LightningNode ¶
func (l *LndLspNode) LightningNode() lntest.LightningNode
func (*LndLspNode) NodeId ¶
func (l *LndLspNode) NodeId() []byte
func (*LndLspNode) NotificationsRpc ¶
func (c *LndLspNode) NotificationsRpc() notifications.NotificationsClient
func (*LndLspNode) PostgresBackend ¶
func (l *LndLspNode) PostgresBackend() *PostgresContainer
func (*LndLspNode) PublicKey ¶
func (c *LndLspNode) PublicKey() *btcec.PublicKey
func (*LndLspNode) Rpc ¶
func (c *LndLspNode) Rpc() lspd.ChannelOpenerClient
func (*LndLspNode) Start ¶
func (c *LndLspNode) Start()
func (*LndLspNode) Stop ¶
func (c *LndLspNode) Stop() error
type LspFunc ¶
type LspFunc func(h *lntest.TestHarness, m *lntest.Miner, mem *mempoolApi, c *config.NodeConfig) LspNode
type LspNode ¶
type LspNode interface { Start() Stop() error Harness() *lntest.TestHarness PublicKey() *btcec.PublicKey EciesPublicKey() *ecies.PublicKey Rpc() lspd.ChannelOpenerClient NotificationsRpc() notifications.NotificationsClient NodeId() []byte LightningNode() lntest.LightningNode PostgresBackend() *PostgresContainer }
func NewClnLspdNode ¶
func NewClnLspdNode(h *lntest.TestHarness, m *lntest.Miner, mem *mempoolApi, name string, nodeConfig *config.NodeConfig) LspNode
func NewLndLspdNode ¶
func NewLndLspdNode(h *lntest.TestHarness, m *lntest.Miner, mem *mempoolApi, name string, nodeConfig *config.NodeConfig) LspNode
type PaymentReceivedPayload ¶
type PostgresContainer ¶
type PostgresContainer struct {
// contains filtered or unexported fields
}
func NewPostgresContainer ¶
func NewPostgresContainer(logfile string) (*PostgresContainer, error)
func (*PostgresContainer) ConnectionString ¶
func (c *PostgresContainer) ConnectionString() string
func (*PostgresContainer) Pool ¶
func (p *PostgresContainer) Pool() *pgxpool.Pool
type RecommendedFeesResponse ¶
type TxConfirmedPayload ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.