Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) CountUnusedInvoices ¶
func (*DB) CreateInvoice ¶
func (*DB) FindFirstUnusedInvoice ¶
func (*DB) SaveInvoice ¶
type Invoice ¶
type Invoice struct { gorm.Model Preimage []byte PaymentHash []byte PaymentSecret []byte KeyPath string ShortChanId uint64 AmountSat int64 State InvoiceState Metadata string UsedAt *time.Time }
TODO: probably rename to InvoiceSecrets or similar
type InvoiceState ¶
type InvoiceState string
const ( InvoiceStateRegistered InvoiceState = "registered" InvoiceStateUsed InvoiceState = "used" )
Click to show internal directories.
Click to hide internal directories.