Documentation ¶
Index ¶
- type Layer
- func (o *Layer) AnnounceNexus(belowNexus nexus.Nexus)
- func (o *Layer) HandlerProvideInfoRequest(seed beacon.SharedSeed) account.DB
- func (o *Layer) NexusWaitingForApp(ss beacon.SharedSeed, providerNexus nexus.Nexus)
- func (o *Layer) ProviderFinishedCb(providerNexus nexus.Nexus)
- func (o *Layer) ProviderNowReadyFromApp()
- func (o *Layer) RegisterAboveLayer(belowLayer layer.Base)
- func (o *Layer) RevokeNexus(belowNexus nexus.Nexus)
- func (o *Layer) SetHandlerProvideInfoRequest(hpir compat.HandleProviderInfoRequest)
- type TransactLayer
- func (p *TransactLayer) AnnounceNexus(belowNexus nexus.Nexus)
- func (p *TransactLayer) FulfilRequestInvoice(nexusUUID, bolt11, requestReferenceUUID string) error
- func (p *TransactLayer) HandleInvoiceRequest(nexus nexus.Nexus, msats int64, requestUUID string)
- func (p *TransactLayer) HandlePayRequest(nexus nexus.Nexus, bolt11, requestUUID string)
- func (p *TransactLayer) HandleProviderInfoRequest(seed beacon.SharedSeed) account.DB
- func (p *TransactLayer) NotifyPreImage(sharedSeeds []beacon.SharedSeed, preimage, requestReferenceUUID string)
- func (p *TransactLayer) NotifyProviderInfo(sharedSeeds []beacon.SharedSeed)
- func (p *TransactLayer) RegisterAboveLayer(belowLayer layer.Base)
- func (p *TransactLayer) RevokeNexus(belowNexus nexus.Nexus)
- func (p *TransactLayer) SetHandleInvoiceRequest(request compat.HandleInvoiceRequest)
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
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
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
RegisterAboveLayer registers the current nexuses announce/revoke nexuses to the below layer.
func (*Layer) RevokeNexus ¶ added in v0.54.0
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 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.