Documentation
¶
Index ¶
- type DBTX
- type GetLoopInSwapRow
- type GetLoopInSwapsRow
- type GetLoopOutSwapRow
- type GetLoopOutSwapsRow
- type HtlcKey
- type InsertHtlcKeysParams
- type InsertLoopInParams
- type InsertLoopOutParams
- type InsertSwapParams
- type InsertSwapUpdateParams
- type LiquidityParam
- type LoopinSwap
- type LoopoutSwap
- type Querier
- type Queries
- func (q *Queries) FetchLiquidityParams(ctx context.Context) ([]byte, error)
- func (q *Queries) GetLoopInSwap(ctx context.Context, swapHash []byte) (GetLoopInSwapRow, error)
- func (q *Queries) GetLoopInSwaps(ctx context.Context) ([]GetLoopInSwapsRow, error)
- func (q *Queries) GetLoopOutSwap(ctx context.Context, swapHash []byte) (GetLoopOutSwapRow, error)
- func (q *Queries) GetLoopOutSwaps(ctx context.Context) ([]GetLoopOutSwapsRow, error)
- func (q *Queries) GetSwapUpdates(ctx context.Context, swapHash []byte) ([]SwapUpdate, error)
- func (q *Queries) InsertHtlcKeys(ctx context.Context, arg InsertHtlcKeysParams) error
- func (q *Queries) InsertLoopIn(ctx context.Context, arg InsertLoopInParams) error
- func (q *Queries) InsertLoopOut(ctx context.Context, arg InsertLoopOutParams) error
- func (q *Queries) InsertSwap(ctx context.Context, arg InsertSwapParams) error
- func (q *Queries) InsertSwapUpdate(ctx context.Context, arg InsertSwapUpdateParams) error
- func (q *Queries) UpsertLiquidityParams(ctx context.Context, params []byte) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Swap
- type SwapUpdate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetLoopInSwapRow ¶
type GetLoopInSwapRow struct { ID int32 SwapHash []byte Preimage []byte InitiationTime time.Time AmountRequested int64 CltvExpiry int32 MaxMinerFee int64 MaxSwapFee int64 InitiationHeight int32 ProtocolVersion int32 Label string SwapHash_2 []byte HtlcConfTarget int32 LastHop []byte ExternalHtlc bool SwapHash_3 []byte SenderScriptPubkey []byte ReceiverScriptPubkey []byte SenderInternalPubkey []byte ReceiverInternalPubkey []byte ClientKeyFamily int32 ClientKeyIndex int32 }
type GetLoopInSwapsRow ¶
type GetLoopInSwapsRow struct { ID int32 SwapHash []byte Preimage []byte InitiationTime time.Time AmountRequested int64 CltvExpiry int32 MaxMinerFee int64 MaxSwapFee int64 InitiationHeight int32 ProtocolVersion int32 Label string SwapHash_2 []byte HtlcConfTarget int32 LastHop []byte ExternalHtlc bool SwapHash_3 []byte SenderScriptPubkey []byte ReceiverScriptPubkey []byte SenderInternalPubkey []byte ReceiverInternalPubkey []byte ClientKeyFamily int32 ClientKeyIndex int32 }
type GetLoopOutSwapRow ¶
type GetLoopOutSwapRow struct { ID int32 SwapHash []byte Preimage []byte InitiationTime time.Time AmountRequested int64 CltvExpiry int32 MaxMinerFee int64 MaxSwapFee int64 InitiationHeight int32 ProtocolVersion int32 Label string SwapHash_2 []byte DestAddress string SwapInvoice string MaxSwapRoutingFee int64 SweepConfTarget int32 HtlcConfirmations int32 OutgoingChanSet string PrepayInvoice string MaxPrepayRoutingFee int64 PublicationDeadline time.Time SwapHash_3 []byte SenderScriptPubkey []byte ReceiverScriptPubkey []byte SenderInternalPubkey []byte ReceiverInternalPubkey []byte ClientKeyFamily int32 ClientKeyIndex int32 }
type GetLoopOutSwapsRow ¶
type GetLoopOutSwapsRow struct { ID int32 SwapHash []byte Preimage []byte InitiationTime time.Time AmountRequested int64 CltvExpiry int32 MaxMinerFee int64 MaxSwapFee int64 InitiationHeight int32 ProtocolVersion int32 Label string SwapHash_2 []byte DestAddress string SwapInvoice string MaxSwapRoutingFee int64 SweepConfTarget int32 HtlcConfirmations int32 OutgoingChanSet string PrepayInvoice string MaxPrepayRoutingFee int64 PublicationDeadline time.Time SwapHash_3 []byte SenderScriptPubkey []byte ReceiverScriptPubkey []byte SenderInternalPubkey []byte ReceiverInternalPubkey []byte ClientKeyFamily int32 ClientKeyIndex int32 }
type InsertHtlcKeysParams ¶
type InsertLoopInParams ¶
type InsertLoopOutParams ¶
type InsertSwapParams ¶
type InsertSwapUpdateParams ¶
type LiquidityParam ¶
type LoopinSwap ¶
type LoopoutSwap ¶
type Querier ¶
type Querier interface { FetchLiquidityParams(ctx context.Context) ([]byte, error) GetLoopInSwap(ctx context.Context, swapHash []byte) (GetLoopInSwapRow, error) GetLoopInSwaps(ctx context.Context) ([]GetLoopInSwapsRow, error) GetLoopOutSwap(ctx context.Context, swapHash []byte) (GetLoopOutSwapRow, error) GetLoopOutSwaps(ctx context.Context) ([]GetLoopOutSwapsRow, error) GetSwapUpdates(ctx context.Context, swapHash []byte) ([]SwapUpdate, error) InsertHtlcKeys(ctx context.Context, arg InsertHtlcKeysParams) error InsertLoopIn(ctx context.Context, arg InsertLoopInParams) error InsertLoopOut(ctx context.Context, arg InsertLoopOutParams) error InsertSwap(ctx context.Context, arg InsertSwapParams) error InsertSwapUpdate(ctx context.Context, arg InsertSwapUpdateParams) error UpsertLiquidityParams(ctx context.Context, params []byte) error }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) FetchLiquidityParams ¶
func (*Queries) GetLoopInSwap ¶
func (*Queries) GetLoopInSwaps ¶
func (q *Queries) GetLoopInSwaps(ctx context.Context) ([]GetLoopInSwapsRow, error)
func (*Queries) GetLoopOutSwap ¶
func (*Queries) GetLoopOutSwaps ¶
func (q *Queries) GetLoopOutSwaps(ctx context.Context) ([]GetLoopOutSwapsRow, error)
func (*Queries) GetSwapUpdates ¶
func (*Queries) InsertHtlcKeys ¶
func (q *Queries) InsertHtlcKeys(ctx context.Context, arg InsertHtlcKeysParams) error
func (*Queries) InsertLoopIn ¶
func (q *Queries) InsertLoopIn(ctx context.Context, arg InsertLoopInParams) error
func (*Queries) InsertLoopOut ¶
func (q *Queries) InsertLoopOut(ctx context.Context, arg InsertLoopOutParams) error
func (*Queries) InsertSwap ¶
func (q *Queries) InsertSwap(ctx context.Context, arg InsertSwapParams) error
func (*Queries) InsertSwapUpdate ¶
func (q *Queries) InsertSwapUpdate(ctx context.Context, arg InsertSwapUpdateParams) error
func (*Queries) UpsertLiquidityParams ¶
Click to show internal directories.
Click to hide internal directories.