mirror of https://github.com/edouardparis/lntop
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
735 B
Go
29 lines
735 B
Go
package backend
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/edouardparis/lntop/network/models"
|
|
"github.com/edouardparis/lntop/network/options"
|
|
)
|
|
|
|
type Backend interface {
|
|
SubscribeInvoice(context.Context, chan *models.Invoice) error
|
|
|
|
NodeName() string
|
|
|
|
GetWalletBalance(context.Context) (*models.WalletBalance, error)
|
|
|
|
GetChannelBalance(context.Context) (*models.ChannelBalance, error)
|
|
|
|
ListChannels(context.Context, ...options.Channel) ([]*models.Channel, error)
|
|
|
|
CreateInvoice(context.Context, int64, string) (*models.Invoice, error)
|
|
|
|
GetInvoice(context.Context, string) (*models.Invoice, error)
|
|
|
|
DecodePayReq(context.Context, string) (*models.PayReq, error)
|
|
|
|
SendPayment(context.Context, *models.PayReq) (*models.Payment, error)
|
|
}
|