Documentation
¶
Index ¶
- Constants
- type AccountController
- type AccountDTO
- type AccountFormDTO
- type AccountsPageDTO
- type ApiServer
- type BalanceController
- type BalanceDTO
- type BalanceFormDTO
- type BalancesPageDTO
- type BudgetController
- type BudgetDTO
- type BudgetDataByMonthDTO
- type BudgetDetailDTO
- type BudgetFormDTO
- type BudgetsPageDTO
- type CashFlowDto
- type CashFlowReportHandler
- type CategoriesPageDTO
- type CategoryController
- type CategoryDTO
- type CategoryFormDTO
- type DashbaordController
- type ExpenseData
- type ImportController
- type ImportStatementFormDTO
- type ImportStatusPageDTO
- type IncomeAndExpensesDTO
- type IncomeAndExpensesDataSet
- type NetIncomeController
- type NetWorthController
- type SettingsController
- type SettingsPageDTO
- type SpendingByCategoryDTO
- type SpendingController
- type TransactionController
- type TransactionDTO
- type TransactionFormDTO
- type TransactionsPageDto
Constants ¶
View Source
const ColorGreen string = "#198754"
View Source
const ColorRed string = "#dc3545"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountController ¶
type AccountController struct { AccountManager *services.AccountManager AccountRepository *models.AccountRepository AccountTypeRepository *models.AccountTypeRepository BalanceRepository *models.BalanceRepository TransactionRepository *models.TransactionRepository }
type AccountDTO ¶
type AccountFormDTO ¶
type AccountFormDTO struct { ActivePage string // This is used to highlight the active page in the navigation // If we're updating an existing account in the form, Updating will be true // If we're creating a new account, Updating will be false Updating bool AccountID string AccountName string AccountTypeName string AccountTypes []models.AccountType // the DTO probably shouldn't be using the models DefaultParser string }
type AccountsPageDTO ¶
type AccountsPageDTO struct { ActivePage string Accounts []AccountDTO AccountUpdated bool AccountUpdatedMessage string }
type ApiServer ¶
type ApiServer struct { AccountController *AccountController BalanceController *BalanceController BudgetController *BudgetController CategoryController *CategoryController ImportController *ImportController NetIncomeController *NetIncomeController NetWorthController *NetWorthController SpendingController *SpendingController TransactionController *TransactionController SettingsController *SettingsController CashFlowController *CashFlowReportHandler }
func (*ApiServer) StartApiServer ¶
type BalanceController ¶
type BalanceController struct { AccountRepository *models.AccountRepository BalanceRepository *models.BalanceRepository }
type BalanceDTO ¶
type BalanceFormDTO ¶
type BalanceFormDTO struct { ActivePage string // This is used to highlight the active page in the navigation // If we're editing an existing account, Editing will be true // If we're creating a new account, Editing will be false Editing bool // we set the AccountID for the to populate the balanceForm with the accountID // in HTML forms, so the account ID can be passed in the form submission even // if there is no Balance object set AccountID uint BalanceDTO BalanceDTO ErrorMessage string }
type BalancesPageDTO ¶
type BalancesPageDTO struct { ActivePage string // This is used to highlight the active page in the navigation AccountID uint Balances []BalanceDTO BalanceSaved bool BalanceSavedMessage string }
type BudgetController ¶
type BudgetController struct { BudgetRepository *models.BudgetRepository BudgetService *services.BudgetService CategoryRepository *models.CategoryRepository TransactionRepository *models.TransactionRepository }
type BudgetDataByMonthDTO ¶
type BudgetDetailDTO ¶
type BudgetFormDTO ¶
type BudgetFormDTO struct { ActivePage string // This is used to highlight the active page in the navigation // If we're updating an existing budget in the form, Updating will be true // If we're creating a new budget, Updating will be false Updating bool BudgetID string CategoryName string Amount string Categories []models.Category }
type BudgetsPageDTO ¶
type CashFlowDto ¶ added in v1.2.0
type CashFlowDto struct { ActivePage string NetIncome string NetIncomeHumanReadable string NetIncomeLabel string TotalIncome string TotalIncomeHumanReadable string TotalExpenses string TotalExpensesHumanReadable string Expenses []ExpenseData StartDate string // YYYY-MM-DD for date input EndDate string // YYYY-MM-DD for date input }
type CashFlowReportHandler ¶ added in v1.2.0
type CashFlowReportHandler struct {
// contains filtered or unexported fields
}
func NewCashFlowReportHandler ¶ added in v1.2.0
func NewCashFlowReportHandler(cfs *services.CashFlowService) *CashFlowReportHandler
func (*CashFlowReportHandler) ServeHTTP ¶ added in v1.2.0
func (h *CashFlowReportHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type CategoriesPageDTO ¶
type CategoriesPageDTO struct { ActivePage string Categories []CategoryDTO CategorySaved bool CreatedCategoryName string }
type CategoryController ¶
type CategoryController struct { CategoryRepository *models.CategoryRepository BalanceRepository *models.BalanceRepository BudgetRepository *models.BudgetRepository }
type CategoryDTO ¶
type CategoryFormDTO ¶
type CategoryFormDTO struct { ActivePage string // This is used to highlight the active page in the navigation // If we're updating an existing category in the form, Updating will be true // If we're creating a new category, Updating will be false Updating bool CategoryID string CategoryName string }
type DashbaordController ¶
type DashbaordController struct{}
type ExpenseData ¶ added in v1.2.0
type ImportController ¶
type ImportController struct { AccountManager *services.AccountManager ImportService *services.ImportService TransactionRepository *models.TransactionRepository }
type ImportStatementFormDTO ¶
type ImportStatementFormDTO struct { ActivePage string AccountNamesAndIDs []services.AccountNameAndID }
type ImportStatusPageDTO ¶
type ImportStatusPageDTO struct { ActivePage string Submission *models.ImportSubmission Transactions []TransactionDTO }
type IncomeAndExpensesDTO ¶
type NetIncomeController ¶
type NetIncomeController struct {
TransactionRepository *models.TransactionRepository
}
type NetWorthController ¶
type NetWorthController struct {
BalanceRepository *models.BalanceRepository
}
type SettingsController ¶ added in v1.1.0
type SettingsController struct {
SettingsRepository *models.SettingsRepository
}
type SettingsPageDTO ¶ added in v1.1.0
type SpendingByCategoryDTO ¶
type SpendingController ¶
type SpendingController struct {
TransactionRepository *models.TransactionRepository
}
type TransactionController ¶
type TransactionController struct { AccountRepository *models.AccountRepository CategoryRepository *models.CategoryRepository TransactionRepository *models.TransactionRepository }
type TransactionDTO ¶
type TransactionFormDTO ¶
type TransactionFormDTO struct { ActivePage string // This is used to highlight the active page in the navigation // If we're editing an existing transaction, Editing will be true // If we're creating a new transaction, Editing will be false Editing bool TransactionID uint Date string Description string Amount string Excluded bool AccountName string CategoryName string ImportSubmissionID string Accounts []models.Account Categories []models.Category }
type TransactionsPageDto ¶
Click to show internal directories.
Click to hide internal directories.