transact

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ConsumerTrackNexusName = "ConsumerTrackNexus"

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumerTrackNexus

type ConsumerTrackNexus struct {
	nexus.Nexus
	// contains filtered or unexported fields
}

func NewConsumerTransactNexus

func NewConsumerTransactNexus(belowNexus nexus.Nexus) ConsumerTrackNexus

func (ConsumerTrackNexus) HandleLayerNotification

func (c ConsumerTrackNexus) HandleLayerNotification()

func (ConsumerTrackNexus) IsLayerMessage

func (c ConsumerTrackNexus) IsLayerMessage(msg []byte) bool

func (ConsumerTrackNexus) OnBinMessage

func (c ConsumerTrackNexus) OnBinMessage(belowNexus nexus.Nexus, msg []byte)

func (*ConsumerTrackNexus) OnInvoice

func (c *ConsumerTrackNexus) OnInvoice(transactNexus nexus.Nexus, invoice string, requestReferenceUuid string)

call on invoice function

func (ConsumerTrackNexus) OnMessage

func (c ConsumerTrackNexus) OnMessage(belowNexus nexus.Nexus, message moneysocket_message.MoneysocketMessage)

func (*ConsumerTrackNexus) OnPreImage

func (c *ConsumerTrackNexus) OnPreImage(transactNexus nexus.Nexus, preimage string, requestReferenceUuid string)

call on preimage function

func (*ConsumerTrackNexus) OnProviderInfo

func (c *ConsumerTrackNexus) OnProviderInfo(consumerTransactNexus nexus.Nexus, msg moneysocket_message.MoneysocketMessage)

func (ConsumerTrackNexus) RequestInvoice

func (c ConsumerTrackNexus) RequestInvoice(msats int64, description string) (uuid string)

func (ConsumerTrackNexus) RequestPay

func (c ConsumerTrackNexus) RequestPay(bolt11 string) (uuid string)

func (*ConsumerTrackNexus) SetOnInvoice

func (c *ConsumerTrackNexus) SetOnInvoice(invoice OnInvoice)

set function to be called when on invoice is called

func (*ConsumerTrackNexus) SetOnPreimage

func (c *ConsumerTrackNexus) SetOnPreimage(preimage OnPreimage)

set function to be called when onPreImage is called

func (*ConsumerTrackNexus) SetOnProviderInfo

func (c *ConsumerTrackNexus) SetOnProviderInfo(info OnProviderInfo)

set function to be called when OnProviderInfo is called

type OnInvoice

type OnInvoice func(transactNexus nexus.Nexus, invoice string, requestReferenceUuid string)

TODO handle invoices

type OnPreimage

type OnPreimage func(transactNexus nexus.Nexus, preimage string, requestReferenceUuid string)

TODO handl epreimages

type OnProviderInfo

type OnProviderInfo func(consumerTransactNexus nexus.Nexus, msg moneysocket_message.MoneysocketMessage)

Jump to

Keyboard shortcuts

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