Documentation ¶
Index ¶
- Variables
- type AccountService
- type AccountsRepository
- type BalanceCalculator
- type ErrorUnitPanic
- type InvoicesChecker
- type InvoicesRepository
- type Payload
- type PeriodExtender
- type PeriodsRepository
- type Request
- type ResultSaver
- type TransactionsExtender
- type TransactionsRepository
- type Transactor
- type Unit
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrPayloadCheckFailed = errors.New("payload check failed")
)
Functions ¶
This section is empty.
Types ¶
type AccountService ¶
type AccountsRepository ¶
type BalanceCalculator ¶
type BalanceCalculator struct {
// contains filtered or unexported fields
}
func NewBalanceCalculator ¶
func NewBalanceCalculator(accountService AccountService) *BalanceCalculator
func (*BalanceCalculator) GetName ¶
func (u *BalanceCalculator) GetName() string
type ErrorUnitPanic ¶
type ErrorUnitPanic string
func (ErrorUnitPanic) Error ¶
func (e ErrorUnitPanic) Error() string
type InvoicesChecker ¶
type InvoicesChecker struct {
// contains filtered or unexported fields
}
func NewInvoicesChecker ¶
func NewInvoicesChecker(repo InvoicesRepository) *InvoicesChecker
func (*InvoicesChecker) GetName ¶
func (u *InvoicesChecker) GetName() string
type InvoicesRepository ¶
type Payload ¶
type Payload struct { ActivePeriod *entities.Period Transactions []entities.Transaction Accounts []entities.Account }
func NewPayload ¶
func NewPayload() *Payload
type PeriodExtender ¶
type PeriodExtender struct {
// contains filtered or unexported fields
}
func NewPeriodExtender ¶
func NewPeriodExtender(repo PeriodsRepository) *PeriodExtender
func (*PeriodExtender) GetName ¶
func (u *PeriodExtender) GetName() string
type PeriodsRepository ¶
type ResultSaver ¶
type ResultSaver struct {
// contains filtered or unexported fields
}
func NewResultSaver ¶
func NewResultSaver(accountsRepo AccountsRepository, periodsRepo PeriodsRepository) *ResultSaver
func (*ResultSaver) GetName ¶
func (u *ResultSaver) GetName() string
type TransactionsExtender ¶
type TransactionsExtender struct {
// contains filtered or unexported fields
}
func NewTransactionsExtender ¶
func NewTransactionsExtender(repo TransactionsRepository) *TransactionsExtender
func (*TransactionsExtender) GetName ¶
func (u *TransactionsExtender) GetName() string
type TransactionsRepository ¶
type TransactionsRepository interface {
GetAllByPeriodID(periodID uint64) ([]entities.Transaction, error)
}
type Transactor ¶
Click to show internal directories.
Click to hide internal directories.