compat

package
v0.53.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: 4 Imported by: 0

Documentation

Overview

provides interfaces for nexuses imported by a lyer to avoid circular imports

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumeNexusInterface

type ConsumeNexusInterface interface {
	RequestInvoice(msats int64, overrideRequestUuid, description string)
	RequestPay(bolt11, overrideRequestUuid string)
}

type HandleInvoiceRequest

type HandleInvoiceRequest func(nexus nexus.Nexus, msats int64, requestUuid string)

type HandleOpinionInvoiceRequest

type HandleOpinionInvoiceRequest func(nx nexus.Nexus, itemId string, requestUuid string)

type HandlePayRequest

type HandlePayRequest func(nexus nexus.Nexus, bolt11 string, requestUuid string)

type HandleProviderInfoRequest

type HandleProviderInfoRequest func(seed beacon.SharedSeed) account.AccountDb

type NexusBySharedSeed

type NexusBySharedSeed map[string][]nexus.Nexus

type ProviderTransactLayerInterface

type ProviderTransactLayerInterface interface {
	layer.Layer
	HandleProviderInfoRequest(seed beacon.SharedSeed) account.AccountDb
	HandlePayRequest(nexus nexus.Nexus, bolt11 string, requestUuid string)
	HandleInvoiceRequest(nexus nexus.Nexus, msats int64, requestUuid string)
}

type RevokableNexus

type RevokableNexus interface {
	nexus.Nexus
	RevokeFromLayer()
}

revoke from a layer

type SellingLayerInterface

type SellingLayerInterface interface {
	NexusWaitingForApp(seed *beacon.SharedSeed, sellerNexus nexus.Nexus)
}

type WaitingForApp

type WaitingForApp map[string]nexus.Nexus

Jump to

Keyboard shortcuts

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