Documentation ¶
Index ¶
- type CoinType
- type ConfirmInvoiceStatusMempoolByIdParams
- type CreateCryptoAddressParams
- type CreateCryptoDataParams
- type CreateInvoiceParams
- type CreateXMRCryptoDataParams
- type CryptoAddress
- type CryptoCache
- type CryptoDatum
- type DBTX
- type DeleteAllCryptoAddressByUserIdAndCoinParams
- type FindCryptoKeysByUserIdRow
- 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) 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) FindAllInvoicesByIds(ctx context.Context, dollar_1 []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) FindCryptoKeysByUserId(ctx context.Context, userID pgtype.UUID) (FindCryptoKeysByUserIdRow, error)
- func (q *Queries) FindIndicesAndLockXMRCryptoDataById(ctx context.Context, id pgtype.UUID) (FindIndicesAndLockXMRCryptoDataByIdRow, 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) 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) UpdateIndicesXMRCryptoDataById(ctx context.Context, arg UpdateIndicesXMRCryptoDataByIdParams) (XmrCryptoDatum, error)
- func (q *Queries) UpdateIsOccupiedByCryptoAddress(ctx context.Context, arg UpdateIsOccupiedByCryptoAddressParams) (CryptoAddress, 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 SetXMRCryptoDataByUserIdParams
- type UpdateCryptoCacheByCoinParams
- type UpdateIndicesXMRCryptoDataByIdParams
- type UpdateIsOccupiedByCryptoAddressParams
- type UpdateKeysXMRCryptoDataByIdParams
- type User
- type XmrCryptoDatum
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateCryptoDataParams ¶
type CreateInvoiceParams ¶
type CryptoAddress ¶
type CryptoCache ¶
type CryptoCache struct { Coin CoinType LastSyncedBlockHeight pgtype.Int8 SyncedTimestamp pgtype.Timestamptz }
type FindCryptoKeysByUserIdRow ¶ added in v0.3.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) 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) FindAllInvoicesByIds ¶
func (*Queries) FindAllPendingInvoices ¶
func (*Queries) FindCryptoCacheByCoin ¶
func (*Queries) FindCryptoDataByUserId ¶
func (*Queries) FindCryptoKeysByUserId ¶ added in v0.3.0
func (*Queries) FindIndicesAndLockXMRCryptoDataById ¶
func (*Queries) FindKeysAndLockXMRCryptoDataById ¶
func (*Queries) FindNonOccupiedCryptoAddressAndLockByUserIdAndCoin ¶
func (q *Queries) FindNonOccupiedCryptoAddressAndLockByUserIdAndCoin(ctx context.Context, arg FindNonOccupiedCryptoAddressAndLockByUserIdAndCoinParams) (CryptoAddress, 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) 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) UpdateKeysXMRCryptoDataById ¶
func (q *Queries) UpdateKeysXMRCryptoDataById(ctx context.Context, arg UpdateKeysXMRCryptoDataByIdParams) (XmrCryptoDatum, error)
func (*Queries) UserExistsById ¶
Click to show internal directories.
Click to hide internal directories.