interceptor

package
v0.0.0-...-fd58d5e Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HtlcInterceptor

type HtlcInterceptor interface {
	Start() error
	Stop() error
	WaitStarted()
}

type InterceptStore

type InterceptStore interface {
	PaymentInfo(htlcPaymentHash []byte) (string, *common.OpeningFeeParams, []byte, []byte, []byte, int64, int64, *wire.OutPoint, *string, error)
	SetFundingTx(paymentHash []byte, channelPoint *wire.OutPoint) error
	RegisterPayment(token string, params *common.OpeningFeeParams, destination, paymentHash, paymentSecret []byte, incomingAmountMsat, outgoingAmountMsat int64, tag string) error
}

type Interceptor

type Interceptor struct {
	// contains filtered or unexported fields
}

func NewInterceptHandler

func NewInterceptHandler(
	client lightning.Client,
	config *config.NodeConfig,
	store InterceptStore,
	historyStore history.Store,
	openingService common.OpeningService,
	feeEstimator chain.FeeEstimator,
	feeStrategy chain.FeeStrategy,
	notificationService *notifications.NotificationService,
) *Interceptor

func (*Interceptor) Intercept

Jump to

Keyboard shortcuts

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