Documentation
¶
Index ¶
- type AmpSubInvoice
- type AmpSubInvoiceHtlc
- type DBTX
- type DeleteInvoiceParams
- type FetchAMPSubInvoiceHTLCsParams
- type FetchAMPSubInvoiceHTLCsRow
- type FetchAMPSubInvoicesParams
- type FetchSettledAMPSubInvoicesParams
- type FetchSettledAMPSubInvoicesRow
- type FilterInvoicesParams
- type GetInvoiceHTLCCustomRecordsRow
- type GetInvoiceParams
- type InsertAMPSubInvoiceHTLCParams
- type InsertInvoiceFeatureParams
- type InsertInvoiceHTLCCustomRecordParams
- type InsertInvoiceHTLCParams
- type InsertInvoiceParams
- type Invoice
- type InvoiceEvent
- type InvoiceEventType
- type InvoiceFeature
- type InvoiceHtlc
- type InvoiceHtlcCustomRecord
- type InvoiceSequence
- type OnAMPSubInvoiceCanceledParams
- type OnAMPSubInvoiceCreatedParams
- type OnAMPSubInvoiceSettledParams
- type OnInvoiceCanceledParams
- type OnInvoiceCreatedParams
- type OnInvoiceSettledParams
- type Querier
- type 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
- type UpdateAMPSubInvoiceStateParams
- type UpdateInvoiceAmountPaidParams
- type UpdateInvoiceHTLCParams
- type UpdateInvoiceHTLCsParams
- type UpdateInvoiceStateParams
- type UpsertAMPSubInvoiceParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmpSubInvoice ¶
type AmpSubInvoiceHtlc ¶
type DeleteInvoiceParams ¶
type FetchSettledAMPSubInvoicesRow ¶
type FetchSettledAMPSubInvoicesRow struct { SetID []byte AmpSettleIndex sql.NullInt64 AmpSettledAt sql.NullTime ID int64 Hash []byte Preimage []byte SettleIndex sql.NullInt64 SettledAt sql.NullTime Memo sql.NullString AmountMsat int64 CltvDelta sql.NullInt32 Expiry int32 PaymentAddr []byte PaymentRequest sql.NullString PaymentRequestHash []byte State int16 AmountPaidMsat int64 IsAmp bool IsHodl bool IsKeysend bool CreatedAt time.Time }
type FilterInvoicesParams ¶
type GetInvoiceParams ¶
type InsertInvoiceHTLCParams ¶
type InsertInvoiceParams ¶
type InsertInvoiceParams struct { Hash []byte Preimage []byte Memo sql.NullString AmountMsat int64 CltvDelta sql.NullInt32 Expiry int32 PaymentAddr []byte PaymentRequest sql.NullString PaymentRequestHash []byte State int16 AmountPaidMsat int64 IsAmp bool IsHodl bool IsKeysend bool CreatedAt time.Time }
type Invoice ¶
type Invoice struct { ID int64 Hash []byte Preimage []byte SettleIndex sql.NullInt64 SettledAt sql.NullTime Memo sql.NullString AmountMsat int64 CltvDelta sql.NullInt32 Expiry int32 PaymentAddr []byte PaymentRequest sql.NullString PaymentRequestHash []byte State int16 AmountPaidMsat int64 IsAmp bool IsHodl bool IsKeysend bool CreatedAt time.Time }
type InvoiceEvent ¶
type InvoiceEventType ¶
type InvoiceFeature ¶
type InvoiceHtlc ¶
type InvoiceHtlcCustomRecord ¶
type InvoiceSequence ¶
type OnInvoiceCanceledParams ¶
type OnInvoiceCreatedParams ¶
type OnInvoiceSettledParams ¶
type Querier ¶
type Querier interface { DeleteCanceledInvoices(ctx context.Context) (sql.Result, error) DeleteInvoice(ctx context.Context, arg DeleteInvoiceParams) (sql.Result, error) FetchAMPSubInvoiceHTLCs(ctx context.Context, arg FetchAMPSubInvoiceHTLCsParams) ([]FetchAMPSubInvoiceHTLCsRow, error) FetchAMPSubInvoices(ctx context.Context, arg FetchAMPSubInvoicesParams) ([]AmpSubInvoice, error) FetchSettledAMPSubInvoices(ctx context.Context, arg FetchSettledAMPSubInvoicesParams) ([]FetchSettledAMPSubInvoicesRow, error) FilterInvoices(ctx context.Context, arg FilterInvoicesParams) ([]Invoice, error) GetAMPInvoiceID(ctx context.Context, setID []byte) (int64, error) // This method may return more than one invoice if filter using multiple fields // from different invoices. It is the caller's responsibility to ensure that // we bubble up an error in those cases. GetInvoice(ctx context.Context, arg GetInvoiceParams) ([]Invoice, error) GetInvoiceFeatures(ctx context.Context, invoiceID int64) ([]InvoiceFeature, error) GetInvoiceHTLCCustomRecords(ctx context.Context, invoiceID int64) ([]GetInvoiceHTLCCustomRecordsRow, error) GetInvoiceHTLCs(ctx context.Context, invoiceID int64) ([]InvoiceHtlc, error) InsertAMPSubInvoiceHTLC(ctx context.Context, arg InsertAMPSubInvoiceHTLCParams) error InsertInvoice(ctx context.Context, arg InsertInvoiceParams) (int64, error) InsertInvoiceFeature(ctx context.Context, arg InsertInvoiceFeatureParams) error InsertInvoiceHTLC(ctx context.Context, arg InsertInvoiceHTLCParams) (int64, error) InsertInvoiceHTLCCustomRecord(ctx context.Context, arg InsertInvoiceHTLCCustomRecordParams) error NextInvoiceSettleIndex(ctx context.Context) (int64, error) OnAMPSubInvoiceCanceled(ctx context.Context, arg OnAMPSubInvoiceCanceledParams) error OnAMPSubInvoiceCreated(ctx context.Context, arg OnAMPSubInvoiceCreatedParams) error OnAMPSubInvoiceSettled(ctx context.Context, arg OnAMPSubInvoiceSettledParams) error OnInvoiceCanceled(ctx context.Context, arg OnInvoiceCanceledParams) error OnInvoiceCreated(ctx context.Context, arg OnInvoiceCreatedParams) error OnInvoiceSettled(ctx context.Context, arg OnInvoiceSettledParams) error UpdateAMPSubInvoiceHTLCPreimage(ctx context.Context, arg UpdateAMPSubInvoiceHTLCPreimageParams) (sql.Result, error) UpdateAMPSubInvoiceState(ctx context.Context, arg UpdateAMPSubInvoiceStateParams) error UpdateInvoiceAmountPaid(ctx context.Context, arg UpdateInvoiceAmountPaidParams) (sql.Result, error) UpdateInvoiceHTLC(ctx context.Context, arg UpdateInvoiceHTLCParams) error UpdateInvoiceHTLCs(ctx context.Context, arg UpdateInvoiceHTLCsParams) error UpdateInvoiceState(ctx context.Context, arg UpdateInvoiceStateParams) (sql.Result, error) UpsertAMPSubInvoice(ctx context.Context, arg UpsertAMPSubInvoiceParams) (sql.Result, error) }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) DeleteCanceledInvoices ¶
func (*Queries) DeleteInvoice ¶
func (*Queries) FetchAMPSubInvoiceHTLCs ¶
func (q *Queries) FetchAMPSubInvoiceHTLCs(ctx context.Context, arg FetchAMPSubInvoiceHTLCsParams) ([]FetchAMPSubInvoiceHTLCsRow, error)
func (*Queries) FetchAMPSubInvoices ¶
func (q *Queries) FetchAMPSubInvoices(ctx context.Context, arg FetchAMPSubInvoicesParams) ([]AmpSubInvoice, error)
func (*Queries) FetchSettledAMPSubInvoices ¶
func (q *Queries) FetchSettledAMPSubInvoices(ctx context.Context, arg FetchSettledAMPSubInvoicesParams) ([]FetchSettledAMPSubInvoicesRow, error)
func (*Queries) FilterInvoices ¶
func (*Queries) GetAMPInvoiceID ¶
func (*Queries) GetInvoice ¶
This method may return more than one invoice if filter using multiple fields from different invoices. It is the caller's responsibility to ensure that we bubble up an error in those cases.
func (*Queries) GetInvoiceFeatures ¶
func (*Queries) GetInvoiceHTLCCustomRecords ¶
func (*Queries) GetInvoiceHTLCs ¶
func (*Queries) InsertAMPSubInvoiceHTLC ¶
func (q *Queries) InsertAMPSubInvoiceHTLC(ctx context.Context, arg InsertAMPSubInvoiceHTLCParams) error
func (*Queries) InsertInvoice ¶
func (*Queries) InsertInvoiceFeature ¶
func (q *Queries) InsertInvoiceFeature(ctx context.Context, arg InsertInvoiceFeatureParams) error
func (*Queries) InsertInvoiceHTLC ¶
func (*Queries) InsertInvoiceHTLCCustomRecord ¶
func (q *Queries) InsertInvoiceHTLCCustomRecord(ctx context.Context, arg InsertInvoiceHTLCCustomRecordParams) error
func (*Queries) NextInvoiceSettleIndex ¶
func (*Queries) OnAMPSubInvoiceCanceled ¶
func (q *Queries) OnAMPSubInvoiceCanceled(ctx context.Context, arg OnAMPSubInvoiceCanceledParams) error
func (*Queries) OnAMPSubInvoiceCreated ¶
func (q *Queries) OnAMPSubInvoiceCreated(ctx context.Context, arg OnAMPSubInvoiceCreatedParams) error
func (*Queries) OnAMPSubInvoiceSettled ¶
func (q *Queries) OnAMPSubInvoiceSettled(ctx context.Context, arg OnAMPSubInvoiceSettledParams) error
func (*Queries) OnInvoiceCanceled ¶
func (q *Queries) OnInvoiceCanceled(ctx context.Context, arg OnInvoiceCanceledParams) error
func (*Queries) OnInvoiceCreated ¶
func (q *Queries) OnInvoiceCreated(ctx context.Context, arg OnInvoiceCreatedParams) error
func (*Queries) OnInvoiceSettled ¶
func (q *Queries) OnInvoiceSettled(ctx context.Context, arg OnInvoiceSettledParams) error
func (*Queries) UpdateAMPSubInvoiceHTLCPreimage ¶
func (*Queries) UpdateAMPSubInvoiceState ¶
func (q *Queries) UpdateAMPSubInvoiceState(ctx context.Context, arg UpdateAMPSubInvoiceStateParams) error
func (*Queries) UpdateInvoiceAmountPaid ¶
func (*Queries) UpdateInvoiceHTLC ¶
func (q *Queries) UpdateInvoiceHTLC(ctx context.Context, arg UpdateInvoiceHTLCParams) error
func (*Queries) UpdateInvoiceHTLCs ¶
func (q *Queries) UpdateInvoiceHTLCs(ctx context.Context, arg UpdateInvoiceHTLCsParams) error
func (*Queries) UpdateInvoiceState ¶
func (*Queries) UpsertAMPSubInvoice ¶
type UpdateInvoiceHTLCParams ¶
Click to show internal directories.
Click to hide internal directories.