provider

package
v0.67.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Layer added in v0.54.0

type Layer struct {
	layer.BaseLayer

	WaitingForApp compat.WaitingForApp
	// contains filtered or unexported fields
}

Layer handles app waiting TODO this needs to be fully implemented.

func NewProviderLayer

func NewProviderLayer() *Layer

NewProviderLayer creates a new provider layer.

func (*Layer) AnnounceNexus added in v0.54.0

func (o *Layer) AnnounceNexus(belowNexus nexus.Nexus)

AnnounceNexus creates a new provider.ProviderNexus and registers it also registers the providerFinishedCb (cb = callback).

func (*Layer) HandlerProvideInfoRequest added in v0.54.0

func (o *Layer) HandlerProvideInfoRequest(seed beacon.SharedSeed) account.DB

nolint

func (*Layer) NexusWaitingForApp added in v0.54.0

func (o *Layer) NexusWaitingForApp(ss beacon.SharedSeed, providerNexus nexus.Nexus)

NexusWaitingForApp sets the for the shared seed.

func (*Layer) ProviderFinishedCb added in v0.54.0

func (o *Layer) ProviderFinishedCb(providerNexus nexus.Nexus)

ProviderFinishedCb is the callback for the provider finished callback.

func (*Layer) ProviderNowReadyFromApp added in v0.54.0

func (o *Layer) ProviderNowReadyFromApp()

nolint

func (*Layer) RegisterAboveLayer added in v0.54.0

func (o *Layer) RegisterAboveLayer(belowLayer layer.Base)

RegisterAboveLayer registers the current nexuses announce/revoke nexuses to the below layer.

func (*Layer) RevokeNexus added in v0.54.0

func (o *Layer) RevokeNexus(belowNexus nexus.Nexus)

RevokeNexus revokes a nexus from the layer.

func (*Layer) SetHandlerProvideInfoRequest added in v0.54.0

func (o *Layer) SetHandlerProvideInfoRequest(hpir compat.HandleProviderInfoRequest)

nolint

type TransactLayer added in v0.54.0

type TransactLayer struct {
	layer.BaseLayer

	// NexusBySharedSeed tracks nexuses by shared seed
	NexusBySharedSeed compat.NexusBySharedSeed
	// contains filtered or unexported fields
}

TransactLayer handles transactions.

func NewProviderTransactLayer

func NewProviderTransactLayer() *TransactLayer

NewProviderTransactLayer creates a TransactLayer.

func (*TransactLayer) AnnounceNexus added in v0.54.0

func (p *TransactLayer) AnnounceNexus(belowNexus nexus.Nexus)

AnnounceNexus announces a nexus.

func (*TransactLayer) FulfilRequestInvoice added in v0.54.0

func (p *TransactLayer) FulfilRequestInvoice(nexusUUID, bolt11, requestReferenceUUID string) error

FulfilRequestInvoice pays a request invoice.

func (*TransactLayer) HandleInvoiceRequest added in v0.54.0

func (p *TransactLayer) HandleInvoiceRequest(nexus nexus.Nexus, msats int64, requestUUID string)

HandleInvoiceRequest gets an invoice.

func (*TransactLayer) HandlePayRequest added in v0.54.0

func (p *TransactLayer) HandlePayRequest(nexus nexus.Nexus, bolt11, requestUUID string)

HandlePayRequest handles payment requests.

func (*TransactLayer) HandleProviderInfoRequest added in v0.54.0

func (p *TransactLayer) HandleProviderInfoRequest(seed beacon.SharedSeed) account.DB

HandleProviderInfoRequest handles info requests.

func (*TransactLayer) NotifyPreImage added in v0.54.0

func (p *TransactLayer) NotifyPreImage(sharedSeeds []beacon.SharedSeed, preimage, requestReferenceUUID string)

NotifyPreImage notifies a preimage.

func (*TransactLayer) NotifyProviderInfo added in v0.54.0

func (p *TransactLayer) NotifyProviderInfo(sharedSeeds []beacon.SharedSeed)

NotifyProviderInfo notifies a provider info.

func (*TransactLayer) RegisterAboveLayer added in v0.54.0

func (p *TransactLayer) RegisterAboveLayer(belowLayer layer.Base)

RegisterAboveLayer registers the current nexuses announce/revoke nexuses to the below layer.

func (*TransactLayer) RevokeNexus added in v0.54.0

func (p *TransactLayer) RevokeNexus(belowNexus nexus.Nexus)

RevokeNexus revokes a nexus.

func (*TransactLayer) SetHandleInvoiceRequest added in v0.54.0

func (p *TransactLayer) SetHandleInvoiceRequest(request compat.HandleInvoiceRequest)

SetHandleInvoiceRequest sets an invoice request.

Jump to

Keyboard shortcuts

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