Documentation
¶
Index ¶
- func GetAllocation(db *gorm.DB) gin.H
- func GetExpense(db *gorm.DB) gin.H
- func GetGain(db *gorm.DB) gin.H
- func GetIncome(db *gorm.DB) gin.H
- func GetInvestment(db *gorm.DB) gin.H
- func GetLedger(db *gorm.DB) gin.H
- func GetOverview(db *gorm.DB) gin.H
- func Listen(db *gorm.DB)
- type Aggregate
- type AllocationTarget
- type AllocationTargetConfig
- type Breakdown
- type Gain
- type Income
- type Overview
- type Tax
- type YearlyCard
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AllocationTarget ¶ added in v0.1.3
type AllocationTargetConfig ¶ added in v0.1.3
type Breakdown ¶
type Breakdown struct { Group string `json:"group"` InvestmentAmount float64 `json:"investment_amount"` WithdrawalAmount float64 `json:"withdrawal_amount"` MarketAmount float64 `json:"market_amount"` BalanceUnits float64 `json:"balance_units"` LatestPrice float64 `json:"latest_price"` XIRR float64 `json:"xirr"` }
type YearlyCard ¶ added in v0.1.5
type YearlyCard struct { StartDate time.Time `json:"start_date"` EndDate time.Time `json:"end_date"` Postings []posting.Posting `json:"postings"` GrossSalaryIncome float64 `json:"gross_salary_income"` GrossOtherIncome float64 `json:"gross_other_income"` NetTax float64 `json:"net_tax"` NetIncome float64 `json:"net_income"` NetInvestment float64 `json:"net_investment"` NetExpense float64 `json:"net_expense"` }
Click to show internal directories.
Click to hide internal directories.