Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountsService ¶
type AccountsService interface { GetAccountByID(accID string) (*models.Account, error) ListAccounts() ([]models.Account, error) ListAccountsByType(typ models.AccountType) ([]models.Account, error) CreateAccount(account *models.Account) error UpdateAccountBalance(accID string, amount float64) error DeleteAccount(accID string) error }
type EventService ¶
type ExpenseService ¶
type TransactionService ¶
type TransactionService interface { AddTransaction(txn models.Transaction) error ListTransactions() ([]models.Transaction, error) ListTransactionsByType(txnType models.TransactionType) ([]models.Transaction, error) ListTransactionsByCategory(catID string) ([]models.Transaction, error) ListTransactionsBySubcategory(subcatID string) ([]models.Transaction, error) ListTransactionsByTime(txnType models.TransactionType, startTime, endTime int64) ([]models.Transaction, error) ListTransactionsBySourceID(srcID string) ([]models.Transaction, error) ListTransactionsByDestinationID(dstID string) ([]models.Transaction, error) ListTransactionsByUser(username string) ([]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 }
Click to show internal directories.
Click to hide internal directories.