Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExchangeRateCache ¶
type ExchangeRateCache interface {
Get(key string) (*domain.ExchangeRate, error)
Set(key string, rate *domain.ExchangeRate, ttl time.Duration) error
Delete(key string) error
GetLastUpdate(key string) (time.Time, error)
SetLastUpdate(key string, t time.Time) error
}
ExchangeRateCache defines the interface for caching exchange rates.
Click to show internal directories.
Click to hide internal directories.