Documentation
¶
Index ¶
- Variables
- type Storage
- func (s *Storage) ListCurrencies(ctx context.Context) ([]types.Currency, error)
- func (s *Storage) ListSources(ctx context.Context) ([]types.Source, error)
- func (s *Storage) RateAsOf(ctx context.Context, query *types.RateQuery, t time.Time) (*types.Page[*types.ExchangeRate], error)
- func (s *Storage) SaveExchangeRate(ctx context.Context, rate *types.ExchangeRate) error
Constants ¶
This section is empty.
Variables ¶
View Source
var SchemaFS embed.FS
SchemaFS contains all SQL migration files under db/sql/schema/
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func (*Storage) ListCurrencies ¶
func (*Storage) ListSources ¶
func (*Storage) SaveExchangeRate ¶
Click to show internal directories.
Click to hide internal directories.