Documentation
¶
Index ¶
- type BtcCryptoDatum
- type CoinType
- type ConfirmInvoiceStatusMempoolByIdParams
- type CreateCryptoAddressParams
- type CreateCryptoDataParams
- type CreateInvoiceParams
- type CreateXMRCryptoDataParams
- type CryptoAddress
- type CryptoCache
- type CryptoDatum
- type DBTX
- type DeleteAllCryptoAddressByUserIdAndCoinParams
- type EthCryptoDatum
- type FindIndicesAndLockBTCCryptoDataByIdRow
- type FindIndicesAndLockETHCryptoDataByIdRow
- type FindIndicesAndLockLTCCryptoDataByIdRow
- type FindIndicesAndLockXMRCryptoDataByIdRow
- type FindKeysAndLockXMRCryptoDataByIdRow
- type FindNonOccupiedCryptoAddressAndLockByUserIdAndCoinParams
- type Invoice
- type InvoiceStatusType
- type LtcCryptoDatum
- type NullCoinType
- type NullInvoiceStatusType
- type Queries
- func (q *Queries) ConfirmInvoiceById(ctx context.Context, id pgtype.UUID) (Invoice, error)
- func (q *Queries) ConfirmInvoiceStatusMempoolById(ctx context.Context, arg ConfirmInvoiceStatusMempoolByIdParams) (Invoice, error)
- func (q *Queries) CreateBTCCryptoData(ctx context.Context, masterPubKey string) (BtcCryptoDatum, error)
- func (q *Queries) CreateCryptoAddress(ctx context.Context, arg CreateCryptoAddressParams) (CryptoAddress, error)
- func (q *Queries) CreateCryptoData(ctx context.Context, arg CreateCryptoDataParams) (CryptoDatum, error)
- func (q *Queries) CreateETHCryptoData(ctx context.Context, masterPubKey string) (EthCryptoDatum, error)
- func (q *Queries) CreateInvoice(ctx context.Context, arg CreateInvoiceParams) (Invoice, error)
- func (q *Queries) CreateLTCCryptoData(ctx context.Context, masterPubKey string) (LtcCryptoDatum, error)
- func (q *Queries) CreateUser(ctx context.Context) (pgtype.UUID, error)
- func (q *Queries) CreateUserWithId(ctx context.Context, id pgtype.UUID) (pgtype.UUID, error)
- func (q *Queries) CreateXMRCryptoData(ctx context.Context, arg CreateXMRCryptoDataParams) (XmrCryptoDatum, error)
- func (q *Queries) DeleteAllCryptoAddressByUserIdAndCoin(ctx context.Context, arg DeleteAllCryptoAddressByUserIdAndCoinParams) ([]CryptoAddress, error)
- func (q *Queries) ExpireInvoiceById(ctx context.Context, id pgtype.UUID) (Invoice, error)
- func (q *Queries) FindAllPendingInvoices(ctx context.Context) ([]Invoice, error)
- func (q *Queries) FindCryptoCacheByCoin(ctx context.Context, coin CoinType) (CryptoCache, error)
- func (q *Queries) FindCryptoDataByUserId(ctx context.Context, userID pgtype.UUID) (CryptoDatum, error)
- func (q *Queries) FindIndicesAndLockBTCCryptoDataById(ctx context.Context, id pgtype.UUID) (FindIndicesAndLockBTCCryptoDataByIdRow, error)
- func (q *Queries) FindIndicesAndLockETHCryptoDataById(ctx context.Context, id pgtype.UUID) (FindIndicesAndLockETHCryptoDataByIdRow, error)
- func (q *Queries) FindIndicesAndLockLTCCryptoDataById(ctx context.Context, id pgtype.UUID) (FindIndicesAndLockLTCCryptoDataByIdRow, error)
- func (q *Queries) FindIndicesAndLockXMRCryptoDataById(ctx context.Context, id pgtype.UUID) (FindIndicesAndLockXMRCryptoDataByIdRow, error)
- func (q *Queries) FindKeysAndLockBTCCryptoDataById(ctx context.Context, id pgtype.UUID) (string, error)
- func (q *Queries) FindKeysAndLockETHCryptoDataById(ctx context.Context, id pgtype.UUID) (string, error)
- func (q *Queries) FindKeysAndLockLTCCryptoDataById(ctx context.Context, id pgtype.UUID) (string, error)
- func (q *Queries) FindKeysAndLockXMRCryptoDataById(ctx context.Context, id pgtype.UUID) (FindKeysAndLockXMRCryptoDataByIdRow, error)
- func (q *Queries) FindNonOccupiedCryptoAddressAndLockByUserIdAndCoin(ctx context.Context, ...) (CryptoAddress, error)
- func (q *Queries) SetBTCCryptoDataByUserId(ctx context.Context, arg SetBTCCryptoDataByUserIdParams) (CryptoDatum, error)
- func (q *Queries) SetETHCryptoDataByUserId(ctx context.Context, arg SetETHCryptoDataByUserIdParams) (CryptoDatum, error)
- func (q *Queries) SetLTCCryptoDataByUserId(ctx context.Context, arg SetLTCCryptoDataByUserIdParams) (CryptoDatum, error)
- func (q *Queries) SetXMRCryptoDataByUserId(ctx context.Context, arg SetXMRCryptoDataByUserIdParams) (CryptoDatum, error)
- func (q *Queries) ShiftExpiresAtForNonConfirmedInvoices(ctx context.Context) ([]Invoice, error)
- func (q *Queries) UpdateCryptoCacheByCoin(ctx context.Context, arg UpdateCryptoCacheByCoinParams) (CryptoCache, error)
- func (q *Queries) UpdateIndicesBTCCryptoDataById(ctx context.Context, arg UpdateIndicesBTCCryptoDataByIdParams) (BtcCryptoDatum, error)
- func (q *Queries) UpdateIndicesETHCryptoDataById(ctx context.Context, arg UpdateIndicesETHCryptoDataByIdParams) (EthCryptoDatum, error)
- func (q *Queries) UpdateIndicesLTCCryptoDataById(ctx context.Context, arg UpdateIndicesLTCCryptoDataByIdParams) (LtcCryptoDatum, error)
- func (q *Queries) UpdateIndicesXMRCryptoDataById(ctx context.Context, arg UpdateIndicesXMRCryptoDataByIdParams) (XmrCryptoDatum, error)
- func (q *Queries) UpdateIsOccupiedByCryptoAddress(ctx context.Context, arg UpdateIsOccupiedByCryptoAddressParams) (CryptoAddress, error)
- func (q *Queries) UpdateKeysBTCCryptoDataById(ctx context.Context, arg UpdateKeysBTCCryptoDataByIdParams) (BtcCryptoDatum, error)
- func (q *Queries) UpdateKeysETHCryptoDataById(ctx context.Context, arg UpdateKeysETHCryptoDataByIdParams) (EthCryptoDatum, error)
- func (q *Queries) UpdateKeysLTCCryptoDataById(ctx context.Context, arg UpdateKeysLTCCryptoDataByIdParams) (LtcCryptoDatum, error)
- func (q *Queries) UpdateKeysXMRCryptoDataById(ctx context.Context, arg UpdateKeysXMRCryptoDataByIdParams) (XmrCryptoDatum, error)
- func (q *Queries) UserExistsById(ctx context.Context, id pgtype.UUID) (bool, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type SetBTCCryptoDataByUserIdParams
- type SetETHCryptoDataByUserIdParams
- type SetLTCCryptoDataByUserIdParams
- type SetXMRCryptoDataByUserIdParams
- type UpdateCryptoCacheByCoinParams
- type UpdateIndicesBTCCryptoDataByIdParams
- type UpdateIndicesETHCryptoDataByIdParams
- type UpdateIndicesLTCCryptoDataByIdParams
- type UpdateIndicesXMRCryptoDataByIdParams
- type UpdateIsOccupiedByCryptoAddressParams
- type UpdateKeysBTCCryptoDataByIdParams
- type UpdateKeysETHCryptoDataByIdParams
- type UpdateKeysLTCCryptoDataByIdParams
- type UpdateKeysXMRCryptoDataByIdParams
- type User
- type XmrCryptoDatum
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BtcCryptoDatum ¶ added in v0.5.0
type CoinType ¶
type CoinType string
const ( CoinTypeXMR CoinType = "XMR" CoinTypeBTC CoinType = "BTC" CoinTypeLTC CoinType = "LTC" CoinTypeETH CoinType = "ETH" CoinTypeTON CoinType = "TON" CoinTypeUSDTERC20 CoinType = "USDT_ERC20" CoinTypeUSDCERC20 CoinType = "USDC_ERC20" CoinTypeDAIERC20 CoinType = "DAI_ERC20" CoinTypeWBTCERC20 CoinType = "WBTC_ERC20" CoinTypeUNIERC20 CoinType = "UNI_ERC20" CoinTypeLINKERC20 CoinType = "LINK_ERC20" CoinTypeAAVEERC20 CoinType = "AAVE_ERC20" CoinTypeCRVERC20 CoinType = "CRV_ERC20" CoinTypeMATICERC20 CoinType = "MATIC_ERC20" CoinTypeSHIBERC20 CoinType = "SHIB_ERC20" CoinTypeBNBERC20 CoinType = "BNB_ERC20" CoinTypeATOMERC20 CoinType = "ATOM_ERC20" CoinTypeARBERC20 CoinType = "ARB_ERC20" )
type CreateCryptoDataParams ¶
type CreateInvoiceParams ¶
type CryptoAddress ¶
type CryptoCache ¶
type CryptoCache struct { Coin CoinType LastSyncedBlockHeight pgtype.Int8 SyncedTimestamp pgtype.Timestamptz }
type CryptoDatum ¶
type EthCryptoDatum ¶ added in v0.7.0
type FindIndicesAndLockBTCCryptoDataByIdRow ¶ added in v0.5.0
type FindIndicesAndLockETHCryptoDataByIdRow ¶ added in v0.7.0
type FindIndicesAndLockLTCCryptoDataByIdRow ¶ added in v0.6.0
type Invoice ¶
type Invoice struct { ID pgtype.UUID CryptoAddress string Coin CoinType RequiredAmount float64 ActualAmount pgtype.Float8 ConfirmationsRequired int16 CreatedAt pgtype.Timestamptz ConfirmedAt pgtype.Timestamptz Status InvoiceStatusType ExpiresAt pgtype.Timestamptz TxID pgtype.Text UserID pgtype.UUID }
type InvoiceStatusType ¶
type InvoiceStatusType string
const ( InvoiceStatusTypePENDING InvoiceStatusType = "PENDING" InvoiceStatusTypePENDINGMEMPOOL InvoiceStatusType = "PENDING_MEMPOOL" InvoiceStatusTypeEXPIRED InvoiceStatusType = "EXPIRED" InvoiceStatusTypeCONFIRMED InvoiceStatusType = "CONFIRMED" )
func (*InvoiceStatusType) Scan ¶
func (e *InvoiceStatusType) Scan(src interface{}) error
type LtcCryptoDatum ¶ added in v0.6.0
type NullCoinType ¶
func (*NullCoinType) Scan ¶
func (ns *NullCoinType) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullInvoiceStatusType ¶
type NullInvoiceStatusType struct { InvoiceStatusType InvoiceStatusType Valid bool // Valid is true if InvoiceStatusType is not NULL }
func (*NullInvoiceStatusType) Scan ¶
func (ns *NullInvoiceStatusType) Scan(value interface{}) error
Scan implements the Scanner interface.
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) ConfirmInvoiceById ¶
func (*Queries) ConfirmInvoiceStatusMempoolById ¶
func (*Queries) CreateBTCCryptoData ¶ added in v0.5.0
func (q *Queries) CreateBTCCryptoData(ctx context.Context, masterPubKey string) (BtcCryptoDatum, error)
BTC
func (*Queries) CreateCryptoAddress ¶
func (q *Queries) CreateCryptoAddress(ctx context.Context, arg CreateCryptoAddressParams) (CryptoAddress, error)
func (*Queries) CreateCryptoData ¶
func (q *Queries) CreateCryptoData(ctx context.Context, arg CreateCryptoDataParams) (CryptoDatum, error)
func (*Queries) CreateETHCryptoData ¶ added in v0.7.0
func (q *Queries) CreateETHCryptoData(ctx context.Context, masterPubKey string) (EthCryptoDatum, error)
ETH
func (*Queries) CreateInvoice ¶
func (*Queries) CreateLTCCryptoData ¶ added in v0.6.0
func (q *Queries) CreateLTCCryptoData(ctx context.Context, masterPubKey string) (LtcCryptoDatum, error)
LTC
func (*Queries) CreateUserWithId ¶ added in v0.2.0
func (*Queries) CreateXMRCryptoData ¶
func (q *Queries) CreateXMRCryptoData(ctx context.Context, arg CreateXMRCryptoDataParams) (XmrCryptoDatum, error)
XMR
func (*Queries) DeleteAllCryptoAddressByUserIdAndCoin ¶
func (q *Queries) DeleteAllCryptoAddressByUserIdAndCoin(ctx context.Context, arg DeleteAllCryptoAddressByUserIdAndCoinParams) ([]CryptoAddress, error)
func (*Queries) ExpireInvoiceById ¶
func (*Queries) FindAllPendingInvoices ¶
func (*Queries) FindCryptoCacheByCoin ¶
func (*Queries) FindCryptoDataByUserId ¶
func (*Queries) FindIndicesAndLockBTCCryptoDataById ¶ added in v0.5.0
func (*Queries) FindIndicesAndLockETHCryptoDataById ¶ added in v0.7.0
func (*Queries) FindIndicesAndLockLTCCryptoDataById ¶ added in v0.6.0
func (*Queries) FindIndicesAndLockXMRCryptoDataById ¶
func (*Queries) FindKeysAndLockBTCCryptoDataById ¶ added in v0.5.0
func (*Queries) FindKeysAndLockETHCryptoDataById ¶ added in v0.7.0
func (*Queries) FindKeysAndLockLTCCryptoDataById ¶ added in v0.6.0
func (*Queries) FindKeysAndLockXMRCryptoDataById ¶
func (*Queries) FindNonOccupiedCryptoAddressAndLockByUserIdAndCoin ¶
func (q *Queries) FindNonOccupiedCryptoAddressAndLockByUserIdAndCoin(ctx context.Context, arg FindNonOccupiedCryptoAddressAndLockByUserIdAndCoinParams) (CryptoAddress, error)
func (*Queries) SetBTCCryptoDataByUserId ¶ added in v0.5.0
func (q *Queries) SetBTCCryptoDataByUserId(ctx context.Context, arg SetBTCCryptoDataByUserIdParams) (CryptoDatum, error)
func (*Queries) SetETHCryptoDataByUserId ¶ added in v0.7.0
func (q *Queries) SetETHCryptoDataByUserId(ctx context.Context, arg SetETHCryptoDataByUserIdParams) (CryptoDatum, error)
func (*Queries) SetLTCCryptoDataByUserId ¶ added in v0.6.0
func (q *Queries) SetLTCCryptoDataByUserId(ctx context.Context, arg SetLTCCryptoDataByUserIdParams) (CryptoDatum, error)
func (*Queries) SetXMRCryptoDataByUserId ¶
func (q *Queries) SetXMRCryptoDataByUserId(ctx context.Context, arg SetXMRCryptoDataByUserIdParams) (CryptoDatum, error)
func (*Queries) ShiftExpiresAtForNonConfirmedInvoices ¶
func (*Queries) UpdateCryptoCacheByCoin ¶
func (q *Queries) UpdateCryptoCacheByCoin(ctx context.Context, arg UpdateCryptoCacheByCoinParams) (CryptoCache, error)
func (*Queries) UpdateIndicesBTCCryptoDataById ¶ added in v0.5.0
func (q *Queries) UpdateIndicesBTCCryptoDataById(ctx context.Context, arg UpdateIndicesBTCCryptoDataByIdParams) (BtcCryptoDatum, error)
func (*Queries) UpdateIndicesETHCryptoDataById ¶ added in v0.7.0
func (q *Queries) UpdateIndicesETHCryptoDataById(ctx context.Context, arg UpdateIndicesETHCryptoDataByIdParams) (EthCryptoDatum, error)
func (*Queries) UpdateIndicesLTCCryptoDataById ¶ added in v0.6.0
func (q *Queries) UpdateIndicesLTCCryptoDataById(ctx context.Context, arg UpdateIndicesLTCCryptoDataByIdParams) (LtcCryptoDatum, error)
func (*Queries) UpdateIndicesXMRCryptoDataById ¶
func (q *Queries) UpdateIndicesXMRCryptoDataById(ctx context.Context, arg UpdateIndicesXMRCryptoDataByIdParams) (XmrCryptoDatum, error)
func (*Queries) UpdateIsOccupiedByCryptoAddress ¶
func (q *Queries) UpdateIsOccupiedByCryptoAddress(ctx context.Context, arg UpdateIsOccupiedByCryptoAddressParams) (CryptoAddress, error)
func (*Queries) UpdateKeysBTCCryptoDataById ¶ added in v0.5.0
func (q *Queries) UpdateKeysBTCCryptoDataById(ctx context.Context, arg UpdateKeysBTCCryptoDataByIdParams) (BtcCryptoDatum, error)
func (*Queries) UpdateKeysETHCryptoDataById ¶ added in v0.7.0
func (q *Queries) UpdateKeysETHCryptoDataById(ctx context.Context, arg UpdateKeysETHCryptoDataByIdParams) (EthCryptoDatum, error)
func (*Queries) UpdateKeysLTCCryptoDataById ¶ added in v0.6.0
func (q *Queries) UpdateKeysLTCCryptoDataById(ctx context.Context, arg UpdateKeysLTCCryptoDataByIdParams) (LtcCryptoDatum, error)
func (*Queries) UpdateKeysXMRCryptoDataById ¶
func (q *Queries) UpdateKeysXMRCryptoDataById(ctx context.Context, arg UpdateKeysXMRCryptoDataByIdParams) (XmrCryptoDatum, error)
func (*Queries) UserExistsById ¶
type SetBTCCryptoDataByUserIdParams ¶ added in v0.5.0
type SetETHCryptoDataByUserIdParams ¶ added in v0.7.0
type SetLTCCryptoDataByUserIdParams ¶ added in v0.6.0
type UpdateIndicesBTCCryptoDataByIdParams ¶ added in v0.5.0
type UpdateIndicesETHCryptoDataByIdParams ¶ added in v0.7.0
type UpdateIndicesLTCCryptoDataByIdParams ¶ added in v0.6.0
type UpdateKeysBTCCryptoDataByIdParams ¶ added in v0.5.0
type UpdateKeysETHCryptoDataByIdParams ¶ added in v0.7.0
type UpdateKeysLTCCryptoDataByIdParams ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.