Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(repositories ...Repository) *balanceService
Types ¶
type Repository ¶
type Service ¶
type Service interface { Balance(ctx context.Context, from, to time.Time) (*aggregate.Balance, error) BalanceByDivision(ctx context.Context, from, to time.Time) (*aggregate.BalanceByDivision, error) BalanceByType(ctx context.Context, from, to time.Time) (*aggregate.BalanceByType, error) BalanceByDayByDivisionByType(ctx context.Context, from, to time.Time) ([]*aggregate.BalanceByDivisionByType, error) }
Click to show internal directories.
Click to hide internal directories.