Documentation
¶
Index ¶
- Constants
- type Nexus
- func (o *Nexus) IsLayerMessage(message message_base.MoneysocketMessage) bool
- func (o *Nexus) NotifyPong()
- func (o *Nexus) NotifyProvider()
- func (o *Nexus) NotifyProviderNotReady()
- func (o *Nexus) NotifyProviderReady()
- func (o *Nexus) OnBinMessage(belowNexus nexus.Nexus, msg []byte)
- func (o *Nexus) OnMessage(belowNexus nexus.Nexus, msg message_base.MoneysocketMessage)
- func (o *Nexus) ProviderNowReady()
- func (o *Nexus) WaitForConsumer(providerFinishedCb func(nexus2 nexus.Nexus))
- type TransactNexus
- func (p *TransactNexus) HandleLayerRequest(req request.MoneysocketRequest)
- func (p *TransactNexus) IsLayerMessage(message msg.MoneysocketMessage) bool
- func (p *TransactNexus) NotifyInvoice(bolt11, requestReferenceUUID string) error
- func (p *TransactNexus) NotifyPreimage(preimage, requestReferenceUUID string) error
- func (p *TransactNexus) NotifyProviderInfo(seed beacon.SharedSeed) error
- func (p *TransactNexus) OnBinMessage(baseNexus nexus.Nexus, msg []byte)
- func (p *TransactNexus) OnMessage(belowNexus nexus.Nexus, message msg.MoneysocketMessage)
Constants ¶
View Source
const NexusName = "ProviderNexus"
View Source
const TransactNexusName = "ProviderTransactNexus"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Nexus ¶ added in v0.54.0
type Nexus struct { *base.NexusBase RequestReferenceUUID string ProviderFinishedCb func(nx nexus.Nexus) // contains filtered or unexported fields }
func NewProviderNexus ¶
func (*Nexus) IsLayerMessage ¶ added in v0.54.0
func (o *Nexus) IsLayerMessage(message message_base.MoneysocketMessage) bool
func (*Nexus) NotifyPong ¶ added in v0.54.0
func (o *Nexus) NotifyPong()
func (*Nexus) NotifyProvider ¶ added in v0.54.0
func (o *Nexus) NotifyProvider()
func (*Nexus) NotifyProviderNotReady ¶ added in v0.54.0
func (o *Nexus) NotifyProviderNotReady()
func (*Nexus) NotifyProviderReady ¶ added in v0.54.0
func (o *Nexus) NotifyProviderReady()
func (*Nexus) OnBinMessage ¶ added in v0.54.0
func (*Nexus) OnMessage ¶ added in v0.54.0
func (o *Nexus) OnMessage(belowNexus nexus.Nexus, msg message_base.MoneysocketMessage)
func (*Nexus) ProviderNowReady ¶ added in v0.54.0
func (o *Nexus) ProviderNowReady()
func (*Nexus) WaitForConsumer ¶ added in v0.54.0
type TransactNexus ¶ added in v0.54.0
type TransactNexus struct { *base.NexusBase HandleInvoiceRequest compat.HandleInvoiceRequest HandlePayRequest compat.HandlePayRequest }
func NewProviderTransactNexus ¶
func NewProviderTransactNexus(belowNexus nexus.Nexus, layer layer.Layer) *TransactNexus
func (*TransactNexus) HandleLayerRequest ¶ added in v0.54.0
func (p *TransactNexus) HandleLayerRequest(req request.MoneysocketRequest)
handle layer request
func (*TransactNexus) IsLayerMessage ¶ added in v0.54.0
func (p *TransactNexus) IsLayerMessage(message msg.MoneysocketMessage) bool
func (*TransactNexus) NotifyInvoice ¶ added in v0.54.0
func (p *TransactNexus) NotifyInvoice(bolt11, requestReferenceUUID string) error
func (*TransactNexus) NotifyPreimage ¶ added in v0.54.0
func (p *TransactNexus) NotifyPreimage(preimage, requestReferenceUUID string) error
func (*TransactNexus) NotifyProviderInfo ¶ added in v0.54.0
func (p *TransactNexus) NotifyProviderInfo(seed beacon.SharedSeed) error
func (*TransactNexus) OnBinMessage ¶ added in v0.54.0
func (p *TransactNexus) OnBinMessage(baseNexus nexus.Nexus, msg []byte)
func (*TransactNexus) OnMessage ¶ added in v0.54.0
func (p *TransactNexus) OnMessage(belowNexus nexus.Nexus, message msg.MoneysocketMessage)
Click to show internal directories.
Click to hide internal directories.