Documentation ¶
Index ¶
- type AmpInvoiceHtlc
- type AmpInvoicePayment
- type DBTX
- type DeleteInvoiceParams
- type FilterInvoicePaymentsParams
- type FilterInvoicePaymentsRow
- type FilterInvoicesParams
- type GetInvoiceHTLCCustomRecordsRow
- type GetInvoiceParams
- type GetSetIDHTLCsCustomRecordsRow
- type InsertAMPInvoiceHTLCParams
- type InsertAMPInvoicePaymentParams
- type InsertInvoiceEventParams
- type InsertInvoiceFeatureParams
- type InsertInvoiceHTLCCustomRecordParams
- type InsertInvoiceHTLCParams
- type InsertInvoiceParams
- type InsertInvoicePaymentParams
- type Invoice
- type InvoiceEvent
- type InvoiceEventType
- type InvoiceFeature
- type InvoiceHtlc
- type InvoiceHtlcCustomRecord
- type InvoicePayment
- type Querier
- type Queries
- func (q *Queries) DeleteAMPHTLCCustomRecords(ctx context.Context, invoiceID int32) error
- func (q *Queries) DeleteAMPHTLCs(ctx context.Context, invoiceID int32) error
- func (q *Queries) DeleteAMPInvoiceHTLC(ctx context.Context, setID []byte) error
- func (q *Queries) DeleteInvoice(ctx context.Context, arg DeleteInvoiceParams) error
- func (q *Queries) DeleteInvoiceEvents(ctx context.Context, invoiceID int32) error
- func (q *Queries) DeleteInvoiceFeatures(ctx context.Context, invoiceID int32) error
- func (q *Queries) DeleteInvoiceHTLC(ctx context.Context, htlcID int64) error
- func (q *Queries) DeleteInvoiceHTLCCustomRecords(ctx context.Context, invoiceID int32) error
- func (q *Queries) DeleteInvoiceHTLCs(ctx context.Context, invoiceID int32) error
- func (q *Queries) FilterInvoicePayments(ctx context.Context, arg FilterInvoicePaymentsParams) ([]FilterInvoicePaymentsRow, error)
- func (q *Queries) FilterInvoices(ctx context.Context, arg FilterInvoicesParams) ([]Invoice, error)
- func (q *Queries) GetAMPInvoiceHTLCsByInvoiceID(ctx context.Context, invoiceID int32) ([]AmpInvoiceHtlc, error)
- func (q *Queries) GetAMPInvoiceHTLCsBySetID(ctx context.Context, setID []byte) ([]AmpInvoiceHtlc, error)
- func (q *Queries) GetInvoice(ctx context.Context, arg GetInvoiceParams) ([]Invoice, error)
- func (q *Queries) GetInvoiceFeatures(ctx context.Context, invoiceID int32) ([]InvoiceFeature, error)
- func (q *Queries) GetInvoiceHTLCCustomRecords(ctx context.Context, invoiceID int32) ([]GetInvoiceHTLCCustomRecordsRow, error)
- func (q *Queries) GetInvoiceHTLCs(ctx context.Context, invoiceID int32) ([]InvoiceHtlc, error)
- func (q *Queries) GetInvoicePayments(ctx context.Context, invoiceID int32) ([]InvoicePayment, error)
- func (q *Queries) GetSetIDHTLCsCustomRecords(ctx context.Context, setID []byte) ([]GetSetIDHTLCsCustomRecordsRow, error)
- func (q *Queries) InsertAMPInvoiceHTLC(ctx context.Context, arg InsertAMPInvoiceHTLCParams) error
- func (q *Queries) InsertAMPInvoicePayment(ctx context.Context, arg InsertAMPInvoicePaymentParams) error
- func (q *Queries) InsertInvoice(ctx context.Context, arg InsertInvoiceParams) (int32, error)
- func (q *Queries) InsertInvoiceEvent(ctx context.Context, arg InsertInvoiceEventParams) error
- func (q *Queries) InsertInvoiceFeature(ctx context.Context, arg InsertInvoiceFeatureParams) error
- func (q *Queries) InsertInvoiceHTLC(ctx context.Context, arg InsertInvoiceHTLCParams) error
- func (q *Queries) InsertInvoiceHTLCCustomRecord(ctx context.Context, arg InsertInvoiceHTLCCustomRecordParams) error
- func (q *Queries) InsertInvoicePayment(ctx context.Context, arg InsertInvoicePaymentParams) (int32, error)
- func (q *Queries) SelectAMPInvoicePayments(ctx context.Context, arg SelectAMPInvoicePaymentsParams) ([]SelectAMPInvoicePaymentsRow, error)
- func (q *Queries) SelectInvoiceEvents(ctx context.Context, arg SelectInvoiceEventsParams) ([]InvoiceEvent, error)
- func (q *Queries) UpdateAMPInvoiceHTLC(ctx context.Context, arg UpdateAMPInvoiceHTLCParams) error
- func (q *Queries) UpdateAMPPayment(ctx context.Context, arg UpdateAMPPaymentParams) error
- func (q *Queries) UpdateInvoice(ctx context.Context, arg UpdateInvoiceParams) error
- func (q *Queries) UpdateInvoiceHTLC(ctx context.Context, arg UpdateInvoiceHTLCParams) error
- func (q *Queries) UpdateInvoiceHTLCs(ctx context.Context, arg UpdateInvoiceHTLCsParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type SelectAMPInvoicePaymentsParams
- type SelectAMPInvoicePaymentsRow
- type SelectInvoiceEventsParams
- type UpdateAMPInvoiceHTLCParams
- type UpdateAMPPaymentParams
- type UpdateInvoiceHTLCParams
- type UpdateInvoiceHTLCsParams
- type UpdateInvoiceParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmpInvoiceHtlc ¶
type AmpInvoicePayment ¶
type DeleteInvoiceParams ¶
type FilterInvoicePaymentsRow ¶
type FilterInvoicePaymentsRow struct { SettleIndex int32 AmountPaidMsat int64 SettleDate time.Time ID int32 Hash []byte Preimage []byte Memo sql.NullString AmountMsat int64 CltvDelta sql.NullInt32 Expiry int32 PaymentAddr []byte PaymentRequest sql.NullString State int16 AmountPaidMsat_2 int64 IsAmp bool IsHodl bool IsKeysend bool CreatedAt time.Time }
type FilterInvoicesParams ¶
type GetInvoiceParams ¶
type InsertInvoiceHTLCParams ¶
type InsertInvoiceParams ¶
type InvoiceEvent ¶
type InvoiceEventType ¶
type InvoiceFeature ¶
type InvoiceHtlc ¶
type InvoiceHtlcCustomRecord ¶
type InvoicePayment ¶
type Querier ¶
type Querier interface { DeleteAMPHTLCCustomRecords(ctx context.Context, invoiceID int32) error DeleteAMPHTLCs(ctx context.Context, invoiceID int32) error DeleteAMPInvoiceHTLC(ctx context.Context, setID []byte) error DeleteInvoice(ctx context.Context, arg DeleteInvoiceParams) error DeleteInvoiceEvents(ctx context.Context, invoiceID int32) error DeleteInvoiceFeatures(ctx context.Context, invoiceID int32) error DeleteInvoiceHTLC(ctx context.Context, htlcID int64) error DeleteInvoiceHTLCCustomRecords(ctx context.Context, invoiceID int32) error DeleteInvoiceHTLCs(ctx context.Context, invoiceID int32) error FilterInvoicePayments(ctx context.Context, arg FilterInvoicePaymentsParams) ([]FilterInvoicePaymentsRow, error) FilterInvoices(ctx context.Context, arg FilterInvoicesParams) ([]Invoice, error) GetAMPInvoiceHTLCsByInvoiceID(ctx context.Context, invoiceID int32) ([]AmpInvoiceHtlc, error) GetAMPInvoiceHTLCsBySetID(ctx context.Context, setID []byte) ([]AmpInvoiceHtlc, 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 int32) ([]InvoiceFeature, error) GetInvoiceHTLCCustomRecords(ctx context.Context, invoiceID int32) ([]GetInvoiceHTLCCustomRecordsRow, error) GetInvoiceHTLCs(ctx context.Context, invoiceID int32) ([]InvoiceHtlc, error) GetInvoicePayments(ctx context.Context, invoiceID int32) ([]InvoicePayment, error) GetSetIDHTLCsCustomRecords(ctx context.Context, setID []byte) ([]GetSetIDHTLCsCustomRecordsRow, error) InsertAMPInvoiceHTLC(ctx context.Context, arg InsertAMPInvoiceHTLCParams) error InsertAMPInvoicePayment(ctx context.Context, arg InsertAMPInvoicePaymentParams) error InsertInvoice(ctx context.Context, arg InsertInvoiceParams) (int32, error) InsertInvoiceEvent(ctx context.Context, arg InsertInvoiceEventParams) error InsertInvoiceFeature(ctx context.Context, arg InsertInvoiceFeatureParams) error InsertInvoiceHTLC(ctx context.Context, arg InsertInvoiceHTLCParams) error InsertInvoiceHTLCCustomRecord(ctx context.Context, arg InsertInvoiceHTLCCustomRecordParams) error InsertInvoicePayment(ctx context.Context, arg InsertInvoicePaymentParams) (int32, error) SelectAMPInvoicePayments(ctx context.Context, arg SelectAMPInvoicePaymentsParams) ([]SelectAMPInvoicePaymentsRow, error) SelectInvoiceEvents(ctx context.Context, arg SelectInvoiceEventsParams) ([]InvoiceEvent, error) UpdateAMPInvoiceHTLC(ctx context.Context, arg UpdateAMPInvoiceHTLCParams) error UpdateAMPPayment(ctx context.Context, arg UpdateAMPPaymentParams) error UpdateInvoice(ctx context.Context, arg UpdateInvoiceParams) error UpdateInvoiceHTLC(ctx context.Context, arg UpdateInvoiceHTLCParams) error UpdateInvoiceHTLCs(ctx context.Context, arg UpdateInvoiceHTLCsParams) error }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) DeleteAMPHTLCCustomRecords ¶
func (*Queries) DeleteAMPHTLCs ¶
func (*Queries) DeleteAMPInvoiceHTLC ¶
func (*Queries) DeleteInvoice ¶
func (q *Queries) DeleteInvoice(ctx context.Context, arg DeleteInvoiceParams) error
func (*Queries) DeleteInvoiceEvents ¶
func (*Queries) DeleteInvoiceFeatures ¶
func (*Queries) DeleteInvoiceHTLC ¶
func (*Queries) DeleteInvoiceHTLCCustomRecords ¶
func (*Queries) DeleteInvoiceHTLCs ¶
func (*Queries) FilterInvoicePayments ¶
func (q *Queries) FilterInvoicePayments(ctx context.Context, arg FilterInvoicePaymentsParams) ([]FilterInvoicePaymentsRow, error)
func (*Queries) FilterInvoices ¶
func (*Queries) GetAMPInvoiceHTLCsByInvoiceID ¶
func (*Queries) GetAMPInvoiceHTLCsBySetID ¶
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) GetInvoicePayments ¶
func (*Queries) GetSetIDHTLCsCustomRecords ¶
func (*Queries) InsertAMPInvoiceHTLC ¶
func (q *Queries) InsertAMPInvoiceHTLC(ctx context.Context, arg InsertAMPInvoiceHTLCParams) error
func (*Queries) InsertAMPInvoicePayment ¶
func (q *Queries) InsertAMPInvoicePayment(ctx context.Context, arg InsertAMPInvoicePaymentParams) error
func (*Queries) InsertInvoice ¶
func (*Queries) InsertInvoiceEvent ¶
func (q *Queries) InsertInvoiceEvent(ctx context.Context, arg InsertInvoiceEventParams) error
func (*Queries) InsertInvoiceFeature ¶
func (q *Queries) InsertInvoiceFeature(ctx context.Context, arg InsertInvoiceFeatureParams) error
func (*Queries) InsertInvoiceHTLC ¶
func (q *Queries) InsertInvoiceHTLC(ctx context.Context, arg InsertInvoiceHTLCParams) error
func (*Queries) InsertInvoiceHTLCCustomRecord ¶
func (q *Queries) InsertInvoiceHTLCCustomRecord(ctx context.Context, arg InsertInvoiceHTLCCustomRecordParams) error
func (*Queries) InsertInvoicePayment ¶
func (*Queries) SelectAMPInvoicePayments ¶
func (q *Queries) SelectAMPInvoicePayments(ctx context.Context, arg SelectAMPInvoicePaymentsParams) ([]SelectAMPInvoicePaymentsRow, error)
func (*Queries) SelectInvoiceEvents ¶
func (q *Queries) SelectInvoiceEvents(ctx context.Context, arg SelectInvoiceEventsParams) ([]InvoiceEvent, error)
func (*Queries) UpdateAMPInvoiceHTLC ¶
func (q *Queries) UpdateAMPInvoiceHTLC(ctx context.Context, arg UpdateAMPInvoiceHTLCParams) error
func (*Queries) UpdateAMPPayment ¶
func (q *Queries) UpdateAMPPayment(ctx context.Context, arg UpdateAMPPaymentParams) error
func (*Queries) UpdateInvoice ¶
func (q *Queries) UpdateInvoice(ctx context.Context, arg UpdateInvoiceParams) error
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
type UpdateAMPPaymentParams ¶
type UpdateInvoiceHTLCParams ¶
Click to show internal directories.
Click to hide internal directories.