Documentation
¶
Index ¶
- type CreateSwapParams
- type DBTX
- type GetSwapRow
- type InsertVHTLCParams
- type ListSwapsRow
- type Queries
- func (q *Queries) CreateSwap(ctx context.Context, arg CreateSwapParams) error
- func (q *Queries) DeleteSettings(ctx context.Context) error
- func (q *Queries) DeleteSubscribedScript(ctx context.Context, script string) error
- func (q *Queries) DeleteVtxoRollover(ctx context.Context, address string) error
- func (q *Queries) GetSettings(ctx context.Context) (Setting, error)
- func (q *Queries) GetSubscribedScript(ctx context.Context, script string) (string, error)
- func (q *Queries) GetSwap(ctx context.Context, id string) (GetSwapRow, error)
- func (q *Queries) GetVHTLC(ctx context.Context, preimageHash string) (Vhtlc, error)
- func (q *Queries) GetVtxoRollover(ctx context.Context, address string) (VtxoRollover, error)
- func (q *Queries) InsertSubscribedScript(ctx context.Context, script string) error
- func (q *Queries) InsertVHTLC(ctx context.Context, arg InsertVHTLCParams) error
- func (q *Queries) ListSubscribedScript(ctx context.Context) ([]string, error)
- func (q *Queries) ListSwaps(ctx context.Context) ([]ListSwapsRow, error)
- func (q *Queries) ListVHTLC(ctx context.Context) ([]Vhtlc, error)
- func (q *Queries) ListVtxoRollover(ctx context.Context) ([]VtxoRollover, error)
- func (q *Queries) UpsertSettings(ctx context.Context, arg UpsertSettingsParams) error
- func (q *Queries) UpsertVtxoRollover(ctx context.Context, arg UpsertVtxoRolloverParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Setting
- type SubscribedScript
- type Swap
- type UpsertSettingsParams
- type UpsertVtxoRolloverParams
- type Vhtlc
- type VtxoRollover
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateSwapParams ¶ added in v0.1.12
type GetSwapRow ¶ added in v0.1.12
type InsertVHTLCParams ¶
type InsertVHTLCParams struct { PreimageHash string Sender string Receiver string Server string RefundLocktime int64 UnilateralClaimDelayType int64 UnilateralClaimDelayValue int64 UnilateralRefundDelayType int64 UnilateralRefundDelayValue int64 UnilateralRefundWithoutReceiverDelayType int64 UnilateralRefundWithoutReceiverDelayValue int64 }
type ListSwapsRow ¶ added in v0.1.12
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateSwap ¶ added in v0.1.12
func (q *Queries) CreateSwap(ctx context.Context, arg CreateSwapParams) error
Swap queries
func (*Queries) DeleteSubscribedScript ¶ added in v0.1.13
func (*Queries) DeleteVtxoRollover ¶
func (*Queries) GetSubscribedScript ¶ added in v0.1.13
func (*Queries) GetVtxoRollover ¶
func (*Queries) InsertSubscribedScript ¶ added in v0.1.13
SubscribedScript queries
func (*Queries) InsertVHTLC ¶
func (q *Queries) InsertVHTLC(ctx context.Context, arg InsertVHTLCParams) error
VHTLC queries
func (*Queries) ListSubscribedScript ¶ added in v0.1.13
func (*Queries) ListSwaps ¶ added in v0.1.12
func (q *Queries) ListSwaps(ctx context.Context) ([]ListSwapsRow, error)
func (*Queries) ListVtxoRollover ¶
func (q *Queries) ListVtxoRollover(ctx context.Context) ([]VtxoRollover, error)
func (*Queries) UpsertSettings ¶
func (q *Queries) UpsertSettings(ctx context.Context, arg UpsertSettingsParams) error
Settings queries
func (*Queries) UpsertVtxoRollover ¶
func (q *Queries) UpsertVtxoRollover(ctx context.Context, arg UpsertVtxoRolloverParams) error
VtxoRollover queries
type SubscribedScript ¶ added in v0.1.13
type SubscribedScript struct {
Script string
}
type UpsertSettingsParams ¶
type UpsertSettingsParams struct { ApiRoot string ServerUrl string EsploraUrl sql.NullString Currency string EventServer string FullNode string LnUrl sql.NullString Unit string }
type Vhtlc ¶
type Vhtlc struct { PreimageHash string Sender string Receiver string Server string RefundLocktime int64 UnilateralClaimDelayType int64 UnilateralClaimDelayValue int64 UnilateralRefundDelayType int64 UnilateralRefundDelayValue int64 UnilateralRefundWithoutReceiverDelayType int64 UnilateralRefundWithoutReceiverDelayValue int64 }
type VtxoRollover ¶
Click to show internal directories.
Click to hide internal directories.