Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( NewExchangeRateRepository, NewExchangeRateHistoryRepository, )
Functions ¶
This section is empty.
Types ¶
type ExchangeRateDTO ¶
type ExchangeRateHistoryDTO ¶
type ExchangeRateHistoryRepository ¶
type ExchangeRateHistoryRepository interface { InsertRateHistory(ctx context.Context, baseCurrency string, targetCurrency string, exchangeRate float64) error GetRateHistory(ctx context.Context, baseCurrency string, targetCurrency string, startTime time.Time, endTime time.Time) ([]ExchangeRateHistoryDTO, error) }
func NewExchangeRateHistoryRepository ¶
func NewExchangeRateHistoryRepository(db *db.Database) ExchangeRateHistoryRepository
type ExchangeRateRepository ¶
type ExchangeRateRepository interface { GetSupportedCurrencies(ctx context.Context) ([]string, error) GetExchangeRate(ctx context.Context, baseCurrency string, targetCurrent string) (*ExchangeRateDTO, error) UpdateExchangeRates(ctx context.Context, baseCurrency string, rates map[string]float64) error }
func NewExchangeRateRepository ¶
func NewExchangeRateRepository(db *db.Database) ExchangeRateRepository
type UserRepository ¶
type UserRepository interface{}
func NewUserRepository ¶
func NewUserRepository(db *db.Database) UserRepository
Click to show internal directories.
Click to hide internal directories.