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 FindIndicesAndLockBTCCryptoDataByIdRow
- type FindIndicesAndLockXMRCryptoDataByIdRow
- type FindKeysAndLockXMRCryptoDataByIdRow
- type FindNonOccupiedCryptoAddressAndLockByUserIdAndCoinParams
- type Invoice
- type InvoiceStatusType
- 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) CreateInvoice(ctx context.Context, arg CreateInvoiceParams) (Invoice, 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) FindIndicesAndLockXMRCryptoDataById(ctx context.Context, id pgtype.UUID) (FindIndicesAndLockXMRCryptoDataByIdRow, error)
- func (q *Queries) FindKeysAndLockBTCCryptoDataById(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) 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) 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) 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 SetXMRCryptoDataByUserIdParams
- type UpdateCryptoCacheByCoinParams
- type UpdateIndicesBTCCryptoDataByIdParams
- type UpdateIndicesXMRCryptoDataByIdParams
- type UpdateIsOccupiedByCryptoAddressParams
- type UpdateKeysBTCCryptoDataByIdParams
- 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 CreateCryptoDataParams ¶
type CreateInvoiceParams ¶
type CryptoAddress ¶
type CryptoCache ¶
type CryptoCache struct { Coin CoinType LastSyncedBlockHeight pgtype.Int8 SyncedTimestamp pgtype.Timestamptz }
type CryptoDatum ¶
type FindIndicesAndLockBTCCryptoDataByIdRow ¶ added in v0.5.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 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) CreateInvoice ¶
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) FindIndicesAndLockXMRCryptoDataById ¶
func (*Queries) FindKeysAndLockBTCCryptoDataById ¶ added in v0.5.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) 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) 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) UpdateKeysXMRCryptoDataById ¶
func (q *Queries) UpdateKeysXMRCryptoDataById(ctx context.Context, arg UpdateKeysXMRCryptoDataByIdParams) (XmrCryptoDatum, error)
func (*Queries) UserExistsById ¶
type SetBTCCryptoDataByUserIdParams ¶ added in v0.5.0
type UpdateIndicesBTCCryptoDataByIdParams ¶ added in v0.5.0
type UpdateKeysBTCCryptoDataByIdParams ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.