Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Expense ¶
type Expense interface { GetAllByPeriod(period times.Period) int GetBaseByPeriod(period times.Period) int GetLastExpenses() ([]*model.Expense, error) AddExpense(rawMessage string) (*model.Expense, error) DeleteByID(id int) error }
Expense service.
func NewExpense ¶
NewExpense creates a new instance of Expense.
type Manager ¶
Manager of services.
func NewManager ¶
func NewManager(ctx context.Context, repo *repository.Repository) (*Manager, error)
NewManager creates a new Manager instance.
Click to show internal directories.
Click to hide internal directories.