Documentation
¶
Index ¶
- type ListCurrenciesDelegate
- type ListSourcesDelegate
- type RateAsOfDelegate
- type SaveExchangeRateDelegate
- type Storage
- func (m *Storage) ListCurrencies(ctx context.Context) ([]types.Currency, error)
- func (m *Storage) ListSources(ctx context.Context) ([]types.Source, error)
- func (m *Storage) RateAsOf(ctx context.Context, query *types.RateQuery, at time.Time) (*types.Page[*types.ExchangeRate], error)
- func (m *Storage) SaveExchangeRate(ctx context.Context, rate *types.ExchangeRate) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListCurrenciesDelegate ¶
type RateAsOfDelegate ¶
type SaveExchangeRateDelegate ¶
type SaveExchangeRateDelegate func(context.Context, *types.ExchangeRate) error
type Storage ¶
type Storage struct {
SaveExchangeRateFn SaveExchangeRateDelegate
RateAsOfFn RateAsOfDelegate
ListSourcesFn ListSourcesDelegate
ListCurrenciesFn ListCurrenciesDelegate
}
func (*Storage) ListCurrencies ¶
func (*Storage) ListSources ¶
func (*Storage) SaveExchangeRate ¶
Click to show internal directories.
Click to hide internal directories.