Documentation
¶
Index ¶
- type Storage
- func (s *Storage) ListCurrencies(_ context.Context) ([]types.Currency, error)
- func (s *Storage) ListSources(_ context.Context) ([]types.Source, error)
- func (s *Storage) RateAsOf(_ context.Context, query *types.RateQuery, asOf time.Time) (*types.Page[*types.ExchangeRate], error)
- func (s *Storage) SaveExchangeRate(_ context.Context, r *types.ExchangeRate) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func NewStorage() *Storage
func (*Storage) ListCurrencies ¶
func (*Storage) ListSources ¶
func (*Storage) SaveExchangeRate ¶
Click to show internal directories.
Click to hide internal directories.