Documentation
¶
Index ¶
- type AccountController
- func (ac *AccountController) CreateAccount(c *gin.Context)
- func (ac *AccountController) DeleteAccount(c *gin.Context)
- func (ac *AccountController) GetAccountById(c *gin.Context)
- func (ac *AccountController) GetAllAccounts(c *gin.Context)
- func (ac *AccountController) RecalculateAllBalances(c *gin.Context)
- func (ac *AccountController) UpdateAccount(c *gin.Context)
- type CategoryController
- type ReportsController
- type TransactionController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountController ¶
type AccountController struct {
// contains filtered or unexported fields
}
func NewAccountController ¶
func NewAccountController(db *mongo.Database, cfg *config.Config) *AccountController
func (*AccountController) CreateAccount ¶
func (ac *AccountController) CreateAccount(c *gin.Context)
func (*AccountController) DeleteAccount ¶
func (ac *AccountController) DeleteAccount(c *gin.Context)
func (*AccountController) GetAccountById ¶
func (ac *AccountController) GetAccountById(c *gin.Context)
func (*AccountController) GetAllAccounts ¶
func (ac *AccountController) GetAllAccounts(c *gin.Context)
func (*AccountController) RecalculateAllBalances ¶
func (ac *AccountController) RecalculateAllBalances(c *gin.Context)
func (*AccountController) UpdateAccount ¶
func (ac *AccountController) UpdateAccount(c *gin.Context)
type CategoryController ¶
type CategoryController struct {
// contains filtered or unexported fields
}
func NewCategoryController ¶
func NewCategoryController(db *mongo.Database, cfg *config.Config) *CategoryController
func (*CategoryController) CreateCategory ¶
func (cc *CategoryController) CreateCategory(c *gin.Context)
CreateCategory adds a new category
func (*CategoryController) DeleteCategory ¶
func (cc *CategoryController) DeleteCategory(c *gin.Context)
func (*CategoryController) GetAllCategories ¶
func (cc *CategoryController) GetAllCategories(c *gin.Context)
GetAllCategories returns all categories
func (*CategoryController) UpdateCategory ¶
func (cc *CategoryController) UpdateCategory(c *gin.Context)
type ReportsController ¶
type ReportsController struct {
// contains filtered or unexported fields
}
func NewReportsController ¶
func NewReportsController(db *mongo.Database, cfg *config.Config) *ReportsController
func (*ReportsController) AggregateTransactions ¶
func (rc *ReportsController) AggregateTransactions(c *gin.Context)
type TransactionController ¶
type TransactionController struct {
// contains filtered or unexported fields
}
func NewTransactionController ¶
func NewTransactionController(db *mongo.Database, cfg *config.Config) *TransactionController
func (*TransactionController) Create ¶
func (tc *TransactionController) Create(c *gin.Context)
Create adds a new transaction
func (*TransactionController) Delete ¶
func (tc *TransactionController) Delete(c *gin.Context)
Delete removes a transaction
func (*TransactionController) GetAll ¶
func (tc *TransactionController) GetAll(c *gin.Context)
GetAll returns all transactions
func (*TransactionController) GetByID ¶
func (tc *TransactionController) GetByID(c *gin.Context)
GetByID returns a single transaction by ID
func (*TransactionController) Update ¶
func (tc *TransactionController) Update(c *gin.Context)
Update modifies an existing transaction
Click to show internal directories.
Click to hide internal directories.