Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataConverter ¶
type DataConverter interface { // ToExportedContent returns the exported data ToExportedContent(uid int64, timezone *time.Location, transactions []*models.Transaction, accountMap map[int64]*models.Account, categoryMap map[int64]*models.TransactionCategory, tagMap map[int64]*models.TransactionTag, allTagIndexs map[int64][]int64) ([]byte, error) }
DataConverter defines the structure of data exporter
type EzBookKeepingCSVFileExporter ¶
type EzBookKeepingCSVFileExporter struct {
EzBookKeepingPlainFileExporter
}
EzBookKeepingCSVFileExporter defines the structure of CSV file exporter
func (*EzBookKeepingCSVFileExporter) ToExportedContent ¶
func (e *EzBookKeepingCSVFileExporter) ToExportedContent(uid int64, timezone *time.Location, transactions []*models.Transaction, accountMap map[int64]*models.Account, categoryMap map[int64]*models.TransactionCategory, tagMap map[int64]*models.TransactionTag, allTagIndexs map[int64][]int64) ([]byte, error)
ToExportedContent returns the exported CSV data
type EzBookKeepingPlainFileExporter ¶
type EzBookKeepingPlainFileExporter struct { }
EzBookKeepingPlainFileExporter defines the structure of plain file exporter
type EzBookKeepingTSVFileExporter ¶
type EzBookKeepingTSVFileExporter struct {
EzBookKeepingPlainFileExporter
}
EzBookKeepingTSVFileExporter defines the structure of TSV file exporter
func (*EzBookKeepingTSVFileExporter) ToExportedContent ¶
func (e *EzBookKeepingTSVFileExporter) ToExportedContent(uid int64, timezone *time.Location, transactions []*models.Transaction, accountMap map[int64]*models.Account, categoryMap map[int64]*models.TransactionCategory, tagMap map[int64]*models.TransactionTag, allTagIndexs map[int64][]int64) ([]byte, error)
ToExportedContent returns the exported TSV data
Click to show internal directories.
Click to hide internal directories.