Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accounts ¶
type Accounts interface { CreateAccount(context.Context, models.Account) (uuid.UUID, error) ListOfAccounts(context.Context, models.OffsetLimit) ([]models.Account, error) AccountByID(context.Context, uuid.UUID) (*models.Account, error) AccountByIDTx(context.Context, Tx, uuid.UUID) (*models.Account, error) UpdateAccount(context.Context, Tx, models.Account) error }
func NewAccountsRepository ¶
type Currencies ¶
type Currencies interface { AllCurrencies(context.Context) ([]models.Currency, error) CurrencyByNumericCode(context.Context, int) (*models.Currency, error) }
func NewCurrenciesRepository ¶
func NewCurrenciesRepository(db *pg.DB) Currencies
type ExchangeRates ¶
type ExchangeRates interface {
ExchangeRateForCurrencies(context.Context, models.ExchangeRateArgs) (decimal.Decimal, error)
}
func NewExchangeRatesRepository ¶
func NewExchangeRatesRepository(db *pg.DB) ExchangeRates
type Payments ¶
type Payments interface { AccountPayments(context.Context, uuid.UUID, models.OffsetLimit) ([]models.Payment, error) CreatePayment(context.Context, Tx, models.Payment) (uuid.UUID, error) }
func NewPaymentsRepository ¶
type WithTransactionFunc ¶
func NewWithTransactionFunc ¶
func NewWithTransactionFunc(db *pg.DB) WithTransactionFunc
Click to show internal directories.
Click to hide internal directories.