Documentation
¶
Index ¶
- Constants
- Variables
- func DeleteBackups(file LedgerFile) gin.H
- func GetAccountGain(db *gorm.DB, account string) gin.H
- func GetAllocation(db *gorm.DB) gin.H
- func GetCapitalGains(db *gorm.DB) gin.H
- func GetDiagnosis(db *gorm.DB) gin.H
- func GetExpense(db *gorm.DB) gin.H
- func GetFile(file LedgerFile) gin.H
- func GetFiles(db *gorm.DB) gin.H
- func GetGain(db *gorm.DB) gin.H
- func GetHarvest(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 GetPortfolioAllocation(db *gorm.DB) gin.H
- func GetPrices(db *gorm.DB) gin.H
- func GetScheduleAL(db *gorm.DB) gin.H
- func GetTransactions(db *gorm.DB) gin.H
- func Listen(db *gorm.DB)
- func SaveFile(db *gorm.DB, file LedgerFile) gin.H
- func Sync(db *gorm.DB, request SyncRequest) gin.H
- func ValidateFile(file LedgerFile) gin.H
- type AccountGain
- type Aggregate
- type AllocationTarget
- type AllocationTargetConfig
- type CapitalGain
- type CommodityBreakdown
- type FYCapitalGain
- type Gain
- type Graph
- type HarvestBreakdown
- type Harvestable
- type Income
- type IncomeYearlyCard
- type InvestmentYearlyCard
- type Issue
- type LedgerFile
- type Level
- type Link
- type Node
- type Overview
- type Pair
- type PortfolioAggregate
- type PortfolioAllocationGroups
- type PortfolioDimension
- type PostingPair
- type Rule
- type ScheduleAL
- type ScheduleALEntry
- type ScheduleALSection
- type SyncRequest
- type Tax
- type Transaction
Constants ¶
View Source
const DATE_FORMAT string = "02 Jan 2006"
Variables ¶
View Source
var Sections []ScheduleALSection
Functions ¶
func DeleteBackups ¶ added in v0.3.2
func DeleteBackups(file LedgerFile) gin.H
func GetFile ¶ added in v0.3.2
func GetFile(file LedgerFile) gin.H
func ValidateFile ¶ added in v0.3.1
func ValidateFile(file LedgerFile) gin.H
Types ¶
type AccountGain ¶ added in v0.4.0
type AllocationTarget ¶ added in v0.1.3
type AllocationTargetConfig ¶ added in v0.1.3
type CapitalGain ¶ added in v0.2.2
type CapitalGain struct { Account string `json:"account"` TaxCategory string `json:"tax_category"` FY map[string]FYCapitalGain `json:"fy"` }
type CommodityBreakdown ¶ added in v0.3.0
type CommodityBreakdown struct { ParentCommodityID string `json:"parent_commodity_id"` CommodityName string `json:"commodity_name"` SecurityName string `json:"security_name"` SecurityRating string `json:"security_rating"` SecurityIndustry string `json:"security_industry"` Percentage float64 `json:"percentage"` SecurityID string `json:"security_id"` SecurityType string `json:"security_type"` Amount float64 `json:"amount"` }
type FYCapitalGain ¶ added in v0.2.2
type HarvestBreakdown ¶ added in v0.2.2
type Harvestable ¶ added in v0.2.2
type Harvestable struct { Account string `json:"account"` TaxCategory string `json:"tax_category"` TotalUnits float64 `json:"total_units"` HarvestableUnits float64 `json:"harvestable_units"` UnrealizedGain float64 `json:"unrealized_gain"` TaxableUnrealizedGain float64 `json:"taxable_unrealized_gain"` HarvestBreakdown []HarvestBreakdown `json:"harvest_breakdown"` CurrentUnitPrice float64 `json:"current_unit_price"` CurrentUnitDate time.Time `json:"current_unit_date"` }
type IncomeYearlyCard ¶ added in v0.3.4
type InvestmentYearlyCard ¶ added in v0.3.4
type InvestmentYearlyCard 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"` SavingsRate float64 `json:"savings_rate"` }
type LedgerFile ¶ added in v0.3.1
type Overview ¶
type Overview struct { Date time.Time `json:"date"` InvestmentAmount float64 `json:"investment_amount"` WithdrawalAmount float64 `json:"withdrawal_amount"` GainAmount float64 `json:"gain_amount"` BalanceAmount float64 `json:"balance_amount"` NetInvestmentAmount float64 `json:"net_investment_amount"` }
type PortfolioAggregate ¶ added in v0.3.0
type PortfolioAllocationGroups ¶ added in v0.4.0
type PortfolioAllocationGroups struct { Commomdities []string `json:"commodities"` NameAndSecurityType []PortfolioAggregate `json:"name_and_security_type"` SecurityType []PortfolioAggregate `json:"security_type"` Rating []PortfolioAggregate `json:"rating"` Industry []PortfolioAggregate `json:"industry"` }
func GetAccountPortfolioAllocation ¶ added in v0.4.0
func GetAccountPortfolioAllocation(db *gorm.DB, account string) PortfolioAllocationGroups
type PortfolioDimension ¶ added in v0.3.0
type PortfolioDimension struct { Group string GroupFn func(CommodityBreakdown) string SubGroup string SubGroupFn func(CommodityBreakdown) string FilterFn func(CommodityBreakdown, int) bool }
type PostingPair ¶ added in v0.2.6
type ScheduleAL ¶ added in v0.3.4
type ScheduleAL struct { Entries []ScheduleALEntry `json:"entries"` Date time.Time `json:"date"` }
type ScheduleALEntry ¶ added in v0.2.5
type ScheduleALEntry struct { Section ScheduleALSection `json:"section"` Amount float64 `json:"amount"` }
type ScheduleALSection ¶ added in v0.2.5
type SyncRequest ¶ added in v0.3.0
Source Files
¶
Click to show internal directories.
Click to hide internal directories.