Documentation
¶
Index ¶
- type CoinType
- type CryptoAddress
- type CryptoCache
- type CryptoDatum
- type DBTX
- type FindJoinedCryptoDataByUserIdRow
- type Invoice
- type InvoiceStatusType
- type NullCoinType
- type NullInvoiceStatusType
- type Queries
- func (q *Queries) FindAllInvoices(ctx context.Context) ([]Invoice, error)
- func (q *Queries) FindAllInvoicesByIds(ctx context.Context, dollar_1 []pgtype.UUID) ([]Invoice, error)
- func (q *Queries) FindCryptoAddressByAddress(ctx context.Context, address string) (CryptoAddress, error)
- func (q *Queries) FindInvoiceById(ctx context.Context, id pgtype.UUID) (Invoice, error)
- func (q *Queries) FindJoinedCryptoDataByUserId(ctx context.Context, userID pgtype.UUID) (FindJoinedCryptoDataByUserIdRow, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type User
- type XmrCryptoDatum
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CryptoAddress ¶
type CryptoCache ¶
type CryptoCache struct {
Coin CoinType
LastSyncedBlockHeight pgtype.Int8
SyncedTimestamp pgtype.Timestamptz
}
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) FindAllInvoices ¶
func (*Queries) FindAllInvoicesByIds ¶
func (*Queries) FindCryptoAddressByAddress ¶
func (*Queries) FindInvoiceById ¶
func (*Queries) FindJoinedCryptoDataByUserId ¶
Click to show internal directories.
Click to hide internal directories.