Documentation ¶
Index ¶
- type ChainPrefix
- type Db
- func (db Db) GetFundingReceiptByUsernameAndChainPrefix(ctx context.Context, username string, chainPrefix string) (*FundingReceipt, error)
- func (db Db) PruneExpiredReceipts(ctx context.Context, beforeFundingTime time.Time) (int, error)
- func (db Db) SaveFundingReceipt(ctx context.Context, newReceipt FundingReceipt) error
- type FundingReceipt
- type FundingReceipts
- type Username
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainPrefix ¶
type ChainPrefix = string
type Db ¶
type Db struct {
// contains filtered or unexported fields
}
Db represents the application interface for accessing the database
func (Db) GetFundingReceiptByUsernameAndChainPrefix ¶
func (Db) PruneExpiredReceipts ¶
func (Db) SaveFundingReceipt ¶
func (db Db) SaveFundingReceipt(ctx context.Context, newReceipt FundingReceipt) error
type FundingReceipt ¶
type FundingReceipt struct { ChainPrefix ChainPrefix `firestore:"chainPrefix"` Username Username `firestore:"username"` FundedAt time.Time `firestore:"fundedAt"` Amount cosmostypes.Coins `firestore:"amount"` }
type FundingReceipts ¶
type FundingReceipts []FundingReceipt
Click to show internal directories.
Click to hide internal directories.