Documentation ¶
Index ¶
- Constants
- type ConsumerTrackNexus
- func (c ConsumerTrackNexus) HandleLayerNotification(msg notification.MoneysocketNotification)
- func (c ConsumerTrackNexus) IsLayerMessage(msg moneysocket_message.MoneysocketMessage) bool
- func (c ConsumerTrackNexus) OnBinMessage(belowNexus nexus.Nexus, msg []byte)
- func (c *ConsumerTrackNexus) OnInvoice(transactNexus nexus.Nexus, invoice string, requestReferenceUUID string)
- func (c ConsumerTrackNexus) OnMessage(belowNexus nexus.Nexus, message moneysocket_message.MoneysocketMessage)
- func (c *ConsumerTrackNexus) OnPreImage(transactNexus nexus.Nexus, preimage string, requestReferenceUUID string)
- func (c *ConsumerTrackNexus) OnProviderInfo(consumerTransactNexus nexus.Nexus, msg moneysocket_message.MoneysocketMessage)
- func (c ConsumerTrackNexus) RequestInvoice(msats int64, description string) (uuid string)
- func (c ConsumerTrackNexus) RequestPay(bolt11 string) (uuid string)
- func (c *ConsumerTrackNexus) SetOnInvoice(invoice OnInvoice)
- func (c *ConsumerTrackNexus) SetOnPreimage(preimage OnPreimage)
- func (c *ConsumerTrackNexus) SetOnProviderInfo(info OnProviderInfo)
- type OnInvoice
- type OnPreimage
- type OnProviderInfo
Constants ¶
const ConsumerTrackNexusName = "ConsumerTrackNexus"
ConsumerTrackNexusName is the name of the ConsumerTrackNexusName.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsumerTrackNexus ¶
ConsumerTrackNexus is used for interacting with a consumer via the ConsumerLayer.
func NewConsumerTransactNexus ¶
func NewConsumerTransactNexus(belowNexus nexus.Nexus) *ConsumerTrackNexus
NewConsumerTransactNexus creates a ConsumerTrackNexus.
func (ConsumerTrackNexus) HandleLayerNotification ¶
func (c ConsumerTrackNexus) HandleLayerNotification(msg notification.MoneysocketNotification)
HandleLayerNotification handles Opinion specific notifications.
func (ConsumerTrackNexus) IsLayerMessage ¶
func (c ConsumerTrackNexus) IsLayerMessage(msg moneysocket_message.MoneysocketMessage) bool
IsLayerMessage determines if a message needs to be handled by this layer.
func (ConsumerTrackNexus) OnBinMessage ¶
func (c ConsumerTrackNexus) OnBinMessage(belowNexus nexus.Nexus, msg []byte)
OnBinMessage is a callback for a binary message.
func (*ConsumerTrackNexus) OnInvoice ¶
func (c *ConsumerTrackNexus) OnInvoice(transactNexus nexus.Nexus, invoice string, requestReferenceUUID string)
OnInvoice calls on invoice function.
func (ConsumerTrackNexus) OnMessage ¶
func (c ConsumerTrackNexus) OnMessage(belowNexus nexus.Nexus, message moneysocket_message.MoneysocketMessage)
OnMessage handles the message if relevant to this alyer.
func (*ConsumerTrackNexus) OnPreImage ¶
func (c *ConsumerTrackNexus) OnPreImage(transactNexus nexus.Nexus, preimage string, requestReferenceUUID string)
OnPreImage calls on preimage function.
func (*ConsumerTrackNexus) OnProviderInfo ¶
func (c *ConsumerTrackNexus) OnProviderInfo(consumerTransactNexus nexus.Nexus, msg moneysocket_message.MoneysocketMessage)
OnProviderInfo calls onProviderInfo callback.
func (ConsumerTrackNexus) RequestInvoice ¶
func (c ConsumerTrackNexus) RequestInvoice(msats int64, description string) (uuid string)
RequestInvoice requests an invoice from the ConsumerTrackNexus.
func (ConsumerTrackNexus) RequestPay ¶
func (c ConsumerTrackNexus) RequestPay(bolt11 string) (uuid string)
RequestPay requests a invoice from a callback.
func (*ConsumerTrackNexus) SetOnInvoice ¶
func (c *ConsumerTrackNexus) SetOnInvoice(invoice OnInvoice)
SetOnInvoice sets a function to be called when on invoice is called.
func (*ConsumerTrackNexus) SetOnPreimage ¶
func (c *ConsumerTrackNexus) SetOnPreimage(preimage OnPreimage)
SetOnPreimage sets function to be called when onPreImage is called.
func (*ConsumerTrackNexus) SetOnProviderInfo ¶
func (c *ConsumerTrackNexus) SetOnProviderInfo(info OnProviderInfo)
SetOnProviderInfo sets a function to be called when OnProviderInfo is called.
type OnPreimage ¶
OnPreimage handles a preimage request.
type OnProviderInfo ¶
type OnProviderInfo func(consumerTransactNexus nexus.Nexus, msg moneysocket_message.MoneysocketMessage)
OnProviderInfo handles a provider info request.