provider

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 NewProviderNexus(belowNexus nexus.Nexus) *Nexus

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 (o *Nexus) OnBinMessage(belowNexus nexus.Nexus, msg []byte)

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

func (o *Nexus) WaitForConsumer(providerFinishedCb func(nexus2 nexus.Nexus))

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)

Jump to

Keyboard shortcuts

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