Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
PairNotFoundError = errors.New("currency pair not found")
)
Functions ¶
This section is empty.
Types ¶
type PostgresRepository ¶
type PostgresRepository struct {
// contains filtered or unexported fields
}
func NewPostgresRepository ¶
func NewPostgresRepository( repo *pgxpool.Pool, logger *zerolog.Logger, ) *PostgresRepository
func (*PostgresRepository) GetExchangeRate ¶
func (*PostgresRepository) UpdateExchangeRate ¶
func (r *PostgresRepository) UpdateExchangeRate(ctx context.Context, er *entity.ExchangeRate) error
func (*PostgresRepository) Upsert ¶
func (r *PostgresRepository) Upsert(ctx context.Context, er *entity.ExchangeRate) error
Click to show internal directories.
Click to hide internal directories.