Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountsRepository ¶
type AccountsRepository interface { GetAccountByID(accID string) (*models.Account, error) ListAccounts() ([]models.Account, error) ListAccountsByType(typ models.AccountType) ([]models.Account, error) AddNewAccount(account *models.Account) error UpdateAccountBalance(accID string, txnAmount float64) error DeleteAccount(accID string) error }
type EventRepository ¶
type ExpenseRepository ¶
type TransactionRepository ¶
type TransactionRepository interface { AddTransaction(txn models.Transaction) error ListTransactionsByCategory(catID string) ([]models.Transaction, error) ListTransactions(filter models.Transaction) ([]models.Transaction, error) ListTransactionsByTime(txnType models.TransactionType, startTime, endTime int64) ([]models.Transaction, error) GetTxnCategoryName(catID string) (string, error) ListTxnCategories() ([]models.TxnCategory, error) GetTxnSubcategoryName(subcatID string) (string, error) ListTxnSubcategories(catID string) ([]models.TxnSubcategory, error) UpdateTxnCategories() error }
type UserRepository ¶
Click to show internal directories.
Click to hide internal directories.