converters

package
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2024 License: MIT Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL