Documentation
¶
Index ¶
- type DBTX
- type ExchangeRate
- type Queries
- func (q *Queries) ListCurrencies(ctx context.Context) ([]string, error)
- func (q *Queries) ListSources(ctx context.Context) ([]string, error)
- func (q *Queries) RateAsOf(ctx context.Context, arg RateAsOfParams) ([]RateAsOfRow, error)
- func (q *Queries) SaveExchangeRate(ctx context.Context, arg SaveExchangeRateParams) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type RateAsOfParams
- type RateAsOfRow
- type SaveExchangeRateParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExchangeRate ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) ListCurrencies ¶
func (*Queries) RateAsOf ¶
func (q *Queries) RateAsOf(ctx context.Context, arg RateAsOfParams) ([]RateAsOfRow, error)
func (*Queries) SaveExchangeRate ¶
func (q *Queries) SaveExchangeRate(ctx context.Context, arg SaveExchangeRateParams) error
type RateAsOfParams ¶
type RateAsOfRow ¶
type SaveExchangeRateParams ¶
type SaveExchangeRateParams struct {
Base string
Target string
Rate pgtype.Numeric
RateType string
Source string
AsOf pgtype.Timestamptz
FetchedAt pgtype.Timestamptz
}
Click to show internal directories.
Click to hide internal directories.