Documentation
¶
Index ¶
- type LedgerUseCase
- func (l *LedgerUseCase) CreateTransaction(ctx context.Context, transaction entities.Transaction) error
- func (l *LedgerUseCase) GetAccountBalance(ctx context.Context, account vos.AccountPath) (vos.AccountBalance, error)
- func (l *LedgerUseCase) GetAccountHistory(ctx context.Context, account vos.AccountPath, fn func(vos.EntryHistory) error) error
- func (l *LedgerUseCase) GetAnalyticalData(ctx context.Context, query vos.AccountQuery, fn func(vos.Statement) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LedgerUseCase ¶
type LedgerUseCase struct {
// contains filtered or unexported fields
}
func NewLedgerUseCase ¶
func NewLedgerUseCase(log *logrus.Logger, repository domain.Repository) *LedgerUseCase
func (*LedgerUseCase) CreateTransaction ¶
func (l *LedgerUseCase) CreateTransaction(ctx context.Context, transaction entities.Transaction) error
func (*LedgerUseCase) GetAccountBalance ¶
func (l *LedgerUseCase) GetAccountBalance(ctx context.Context, account vos.AccountPath) (vos.AccountBalance, error)
func (*LedgerUseCase) GetAccountHistory ¶ added in v0.2.0
func (l *LedgerUseCase) GetAccountHistory(ctx context.Context, account vos.AccountPath, fn func(vos.EntryHistory) error) error
func (*LedgerUseCase) GetAnalyticalData ¶
func (l *LedgerUseCase) GetAnalyticalData(ctx context.Context, query vos.AccountQuery, fn func(vos.Statement) error) error
Click to show internal directories.
Click to hide internal directories.