Versions in this module Expand all Collapse all v0 v0.0.3 Sep 11, 2024 Changes in this version + type AmpSubInvoice struct + CreatedAt time.Time + InvoiceID int64 + SetID []byte + SettleIndex sql.NullInt64 + SettledAt sql.NullTime + State int16 + type AmpSubInvoiceHtlc struct + ChildIndex int64 + Hash []byte + HtlcID int64 + InvoiceID int64 + Preimage []byte + RootShare []byte + SetID []byte + type DBTX interface + ExecContext func(context.Context, string, ...interface{}) (sql.Result, error) + PrepareContext func(context.Context, string) (*sql.Stmt, error) + QueryContext func(context.Context, string, ...interface{}) (*sql.Rows, error) + QueryRowContext func(context.Context, string, ...interface{}) *sql.Row + type DeleteInvoiceParams struct + AddIndex sql.NullInt64 + Hash []byte + PaymentAddr []byte + SettleIndex sql.NullInt64 + type FetchAMPSubInvoiceHTLCsParams struct + InvoiceID int64 + SetID []byte + type FetchAMPSubInvoiceHTLCsRow struct + AcceptHeight int32 + AcceptTime time.Time + AmountMsat int64 + ChanID string + ChildIndex int64 + ExpiryHeight int32 + Hash []byte + HtlcID int64 + ID int64 + InvoiceID int64 + Preimage []byte + ResolveTime sql.NullTime + RootShare []byte + SetID []byte + State int16 + TotalMppMsat sql.NullInt64 + type FetchAMPSubInvoicesParams struct + InvoiceID int64 + SetID []byte + type FetchSettledAMPSubInvoicesParams struct + SettleIndexGet sql.NullInt64 + SettleIndexLet sql.NullInt64 + type FetchSettledAMPSubInvoicesRow struct + AmountMsat int64 + AmountPaidMsat int64 + AmpSettleIndex sql.NullInt64 + AmpSettledAt sql.NullTime + CltvDelta sql.NullInt32 + CreatedAt time.Time + Expiry int32 + Hash []byte + ID int64 + IsAmp bool + IsHodl bool + IsKeysend bool + Memo sql.NullString + PaymentAddr []byte + PaymentRequest sql.NullString + PaymentRequestHash []byte + Preimage []byte + SetID []byte + SettleIndex sql.NullInt64 + SettledAt sql.NullTime + State int16 + type FilterInvoicesParams struct + AddIndexGet sql.NullInt64 + AddIndexLet sql.NullInt64 + CreatedAfter sql.NullTime + CreatedBefore sql.NullTime + NumLimit int32 + NumOffset int32 + PendingOnly interface{} + Reverse interface{} + SettleIndexGet sql.NullInt64 + SettleIndexLet sql.NullInt64 + State sql.NullInt16 + type GetInvoiceHTLCCustomRecordsRow struct + HtlcID int64 + Key int64 + Value []byte + type GetInvoiceParams struct + AddIndex sql.NullInt64 + Hash []byte + PaymentAddr []byte + Preimage []byte + SetID []byte + type InsertAMPSubInvoiceHTLCParams struct + ChildIndex int64 + Hash []byte + HtlcID int64 + InvoiceID int64 + Preimage []byte + RootShare []byte + SetID []byte + type InsertInvoiceFeatureParams struct + Feature int32 + InvoiceID int64 + type InsertInvoiceHTLCCustomRecordParams struct + HtlcID int64 + Key int64 + Value []byte + type InsertInvoiceHTLCParams struct + AcceptHeight int32 + AcceptTime time.Time + AmountMsat int64 + ChanID string + ExpiryHeight int32 + HtlcID int64 + InvoiceID int64 + ResolveTime sql.NullTime + State int16 + TotalMppMsat sql.NullInt64 + type InsertInvoiceParams struct + AmountMsat int64 + AmountPaidMsat int64 + CltvDelta sql.NullInt32 + CreatedAt time.Time + Expiry int32 + Hash []byte + IsAmp bool + IsHodl bool + IsKeysend bool + Memo sql.NullString + PaymentAddr []byte + PaymentRequest sql.NullString + PaymentRequestHash []byte + Preimage []byte + State int16 + type Invoice struct + AmountMsat int64 + AmountPaidMsat int64 + CltvDelta sql.NullInt32 + CreatedAt time.Time + Expiry int32 + Hash []byte + ID int64 + IsAmp bool + IsHodl bool + IsKeysend bool + Memo sql.NullString + PaymentAddr []byte + PaymentRequest sql.NullString + PaymentRequestHash []byte + Preimage []byte + SettleIndex sql.NullInt64 + SettledAt sql.NullTime + State int16 + type InvoiceEvent struct + AddedAt time.Time + EventType int32 + ID int64 + InvoiceID int64 + SetID []byte + type InvoiceEventType struct + Description string + ID int32 + type InvoiceFeature struct + Feature int32 + InvoiceID int64 + type InvoiceHtlc struct + AcceptHeight int32 + AcceptTime time.Time + AmountMsat int64 + ChanID string + ExpiryHeight int32 + HtlcID int64 + ID int64 + InvoiceID int64 + ResolveTime sql.NullTime + State int16 + TotalMppMsat sql.NullInt64 + type InvoiceHtlcCustomRecord struct + HtlcID int64 + Key int64 + Value []byte + type InvoiceSequence struct + CurrentValue int64 + Name string + type OnAMPSubInvoiceCanceledParams struct + AddedAt time.Time + InvoiceID int64 + SetID []byte + type OnAMPSubInvoiceCreatedParams struct + AddedAt time.Time + InvoiceID int64 + SetID []byte + type OnAMPSubInvoiceSettledParams struct + AddedAt time.Time + InvoiceID int64 + SetID []byte + type OnInvoiceCanceledParams struct + AddedAt time.Time + InvoiceID int64 + type OnInvoiceCreatedParams struct + AddedAt time.Time + InvoiceID int64 + type OnInvoiceSettledParams struct + AddedAt time.Time + InvoiceID int64 + type Querier interface + DeleteCanceledInvoices func(ctx context.Context) (sql.Result, error) + DeleteInvoice func(ctx context.Context, arg DeleteInvoiceParams) (sql.Result, error) + FetchAMPSubInvoiceHTLCs func(ctx context.Context, arg FetchAMPSubInvoiceHTLCsParams) ([]FetchAMPSubInvoiceHTLCsRow, error) + FetchAMPSubInvoices func(ctx context.Context, arg FetchAMPSubInvoicesParams) ([]AmpSubInvoice, error) + FetchSettledAMPSubInvoices func(ctx context.Context, arg FetchSettledAMPSubInvoicesParams) ([]FetchSettledAMPSubInvoicesRow, error) + FilterInvoices func(ctx context.Context, arg FilterInvoicesParams) ([]Invoice, error) + GetAMPInvoiceID func(ctx context.Context, setID []byte) (int64, error) + GetInvoice func(ctx context.Context, arg GetInvoiceParams) ([]Invoice, error) + GetInvoiceFeatures func(ctx context.Context, invoiceID int64) ([]InvoiceFeature, error) + GetInvoiceHTLCCustomRecords func(ctx context.Context, invoiceID int64) ([]GetInvoiceHTLCCustomRecordsRow, error) + GetInvoiceHTLCs func(ctx context.Context, invoiceID int64) ([]InvoiceHtlc, error) + InsertAMPSubInvoiceHTLC func(ctx context.Context, arg InsertAMPSubInvoiceHTLCParams) error + InsertInvoice func(ctx context.Context, arg InsertInvoiceParams) (int64, error) + InsertInvoiceFeature func(ctx context.Context, arg InsertInvoiceFeatureParams) error + InsertInvoiceHTLC func(ctx context.Context, arg InsertInvoiceHTLCParams) (int64, error) + InsertInvoiceHTLCCustomRecord func(ctx context.Context, arg InsertInvoiceHTLCCustomRecordParams) error + NextInvoiceSettleIndex func(ctx context.Context) (int64, error) + OnAMPSubInvoiceCanceled func(ctx context.Context, arg OnAMPSubInvoiceCanceledParams) error + OnAMPSubInvoiceCreated func(ctx context.Context, arg OnAMPSubInvoiceCreatedParams) error + OnAMPSubInvoiceSettled func(ctx context.Context, arg OnAMPSubInvoiceSettledParams) error + OnInvoiceCanceled func(ctx context.Context, arg OnInvoiceCanceledParams) error + OnInvoiceCreated func(ctx context.Context, arg OnInvoiceCreatedParams) error + OnInvoiceSettled func(ctx context.Context, arg OnInvoiceSettledParams) error + UpdateAMPSubInvoiceHTLCPreimage func(ctx context.Context, arg UpdateAMPSubInvoiceHTLCPreimageParams) (sql.Result, error) + UpdateAMPSubInvoiceState func(ctx context.Context, arg UpdateAMPSubInvoiceStateParams) error + UpdateInvoiceAmountPaid func(ctx context.Context, arg UpdateInvoiceAmountPaidParams) (sql.Result, error) + UpdateInvoiceHTLC func(ctx context.Context, arg UpdateInvoiceHTLCParams) error + UpdateInvoiceHTLCs func(ctx context.Context, arg UpdateInvoiceHTLCsParams) error + UpdateInvoiceState func(ctx context.Context, arg UpdateInvoiceStateParams) (sql.Result, error) + UpsertAMPSubInvoice func(ctx context.Context, arg UpsertAMPSubInvoiceParams) (sql.Result, error) + type Queries struct + func New(db DBTX) *Queries + func (q *Queries) DeleteCanceledInvoices(ctx context.Context) (sql.Result, error) + func (q *Queries) DeleteInvoice(ctx context.Context, arg DeleteInvoiceParams) (sql.Result, error) + func (q *Queries) FetchAMPSubInvoiceHTLCs(ctx context.Context, arg FetchAMPSubInvoiceHTLCsParams) ([]FetchAMPSubInvoiceHTLCsRow, error) + func (q *Queries) FetchAMPSubInvoices(ctx context.Context, arg FetchAMPSubInvoicesParams) ([]AmpSubInvoice, error) + func (q *Queries) FetchSettledAMPSubInvoices(ctx context.Context, arg FetchSettledAMPSubInvoicesParams) ([]FetchSettledAMPSubInvoicesRow, error) + func (q *Queries) FilterInvoices(ctx context.Context, arg FilterInvoicesParams) ([]Invoice, error) + func (q *Queries) GetAMPInvoiceID(ctx context.Context, setID []byte) (int64, error) + func (q *Queries) GetInvoice(ctx context.Context, arg GetInvoiceParams) ([]Invoice, error) + func (q *Queries) GetInvoiceFeatures(ctx context.Context, invoiceID int64) ([]InvoiceFeature, error) + func (q *Queries) GetInvoiceHTLCCustomRecords(ctx context.Context, invoiceID int64) ([]GetInvoiceHTLCCustomRecordsRow, error) + func (q *Queries) GetInvoiceHTLCs(ctx context.Context, invoiceID int64) ([]InvoiceHtlc, error) + func (q *Queries) InsertAMPSubInvoiceHTLC(ctx context.Context, arg InsertAMPSubInvoiceHTLCParams) error + func (q *Queries) InsertInvoice(ctx context.Context, arg InsertInvoiceParams) (int64, error) + func (q *Queries) InsertInvoiceFeature(ctx context.Context, arg InsertInvoiceFeatureParams) error + func (q *Queries) InsertInvoiceHTLC(ctx context.Context, arg InsertInvoiceHTLCParams) (int64, error) + func (q *Queries) InsertInvoiceHTLCCustomRecord(ctx context.Context, arg InsertInvoiceHTLCCustomRecordParams) error + func (q *Queries) NextInvoiceSettleIndex(ctx context.Context) (int64, error) + func (q *Queries) OnAMPSubInvoiceCanceled(ctx context.Context, arg OnAMPSubInvoiceCanceledParams) error + func (q *Queries) OnAMPSubInvoiceCreated(ctx context.Context, arg OnAMPSubInvoiceCreatedParams) error + func (q *Queries) OnAMPSubInvoiceSettled(ctx context.Context, arg OnAMPSubInvoiceSettledParams) error + func (q *Queries) OnInvoiceCanceled(ctx context.Context, arg OnInvoiceCanceledParams) error + func (q *Queries) OnInvoiceCreated(ctx context.Context, arg OnInvoiceCreatedParams) error + func (q *Queries) OnInvoiceSettled(ctx context.Context, arg OnInvoiceSettledParams) error + func (q *Queries) UpdateAMPSubInvoiceHTLCPreimage(ctx context.Context, arg UpdateAMPSubInvoiceHTLCPreimageParams) (sql.Result, error) + func (q *Queries) UpdateAMPSubInvoiceState(ctx context.Context, arg UpdateAMPSubInvoiceStateParams) error + func (q *Queries) UpdateInvoiceAmountPaid(ctx context.Context, arg UpdateInvoiceAmountPaidParams) (sql.Result, error) + func (q *Queries) UpdateInvoiceHTLC(ctx context.Context, arg UpdateInvoiceHTLCParams) error + func (q *Queries) UpdateInvoiceHTLCs(ctx context.Context, arg UpdateInvoiceHTLCsParams) error + func (q *Queries) UpdateInvoiceState(ctx context.Context, arg UpdateInvoiceStateParams) (sql.Result, error) + func (q *Queries) UpsertAMPSubInvoice(ctx context.Context, arg UpsertAMPSubInvoiceParams) (sql.Result, error) + func (q *Queries) WithTx(tx *sql.Tx) *Queries + type UpdateAMPSubInvoiceHTLCPreimageParams struct + HtlcID int64 + InvoiceID int64 + Preimage []byte + SetID []byte + type UpdateAMPSubInvoiceStateParams struct + SetID []byte + SettleIndex sql.NullInt64 + SettledAt sql.NullTime + State int16 + type UpdateInvoiceAmountPaidParams struct + AmountPaidMsat int64 + ID int64 + type UpdateInvoiceHTLCParams struct + ChanID string + HtlcID int64 + InvoiceID int64 + ResolveTime sql.NullTime + State int16 + type UpdateInvoiceHTLCsParams struct + InvoiceID int64 + ResolveTime sql.NullTime + State int16 + type UpdateInvoiceStateParams struct + ID int64 + Preimage []byte + SettleIndex sql.NullInt64 + SettledAt sql.NullTime + State int16 + type UpsertAMPSubInvoiceParams struct + CreatedAt time.Time + InvoiceID int64 + SetID []byte + State int16