Documentation
¶
Index ¶
- func CreateNewCustomPlainTextDataTable(dataTable datatable.BasicDataTable, ...) *customPlainTextDataTable
- func CreateNewCustomTransactionDataDsvFileImporter(fileType string, fileEncoding string, ...) (converter.TransactionDataImporter, error)
- func CreateNewCustomTransactionDataExcelFileImporter(fileType string, ...) (converter.TransactionDataImporter, error)
- func IsCustomExcelFileType(fileType string) bool
- func IsDelimiterSeparatedValuesFileType(fileType string) bool
- type CustomTransactionDataParser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNewCustomPlainTextDataTable ¶
func CreateNewCustomPlainTextDataTable(dataTable datatable.BasicDataTable, columnIndexMapping map[datatable.TransactionDataTableColumn]int, transactionTypeNameMapping map[string]models.TransactionType, timeFormat string, timezoneFormat string, amountDecimalSeparator string, amountDigitGroupingSymbol string) *customPlainTextDataTable
CreateNewCustomPlainTextDataTable returns transaction data table from imported data table
func CreateNewCustomTransactionDataDsvFileImporter ¶
func CreateNewCustomTransactionDataDsvFileImporter(fileType string, fileEncoding string, columnIndexMapping map[datatable.TransactionDataTableColumn]int, transactionTypeNameMapping map[string]models.TransactionType, hasHeaderLine bool, timeFormat string, timezoneFormat string, amountDecimalSeparator string, amountDigitGroupingSymbol string, geoLocationSeparator string, geoLocationOrder string, transactionTagSeparator string) (converter.TransactionDataImporter, error)
CreateNewCustomTransactionDataDsvFileImporter returns a new custom dsv importer for transaction data
func CreateNewCustomTransactionDataExcelFileImporter ¶
func CreateNewCustomTransactionDataExcelFileImporter(fileType string, columnIndexMapping map[datatable.TransactionDataTableColumn]int, transactionTypeNameMapping map[string]models.TransactionType, hasHeaderLine bool, timeFormat string, timezoneFormat string, amountDecimalSeparator string, amountDigitGroupingSymbol string, geoLocationSeparator string, geoLocationOrder string, transactionTagSeparator string) (converter.TransactionDataImporter, error)
CreateNewCustomTransactionDataExcelFileImporter returns a new custom excel importer for transaction data
func IsCustomExcelFileType ¶
IsCustomExcelFileType returns whether the file type is the custom excel file type
func IsDelimiterSeparatedValuesFileType ¶
IsDelimiterSeparatedValuesFileType returns whether the file type is the delimiter-separated values file type
Types ¶
type CustomTransactionDataParser ¶
type CustomTransactionDataParser interface {
ParseDataLines(ctx core.Context, data []byte) ([][]string, error)
}
CustomTransactionDataParser represents the parser for custom transaction data files
func CreateNewCustomTransactionDataDsvFileParser ¶
func CreateNewCustomTransactionDataDsvFileParser(fileType string, fileEncoding string) (CustomTransactionDataParser, error)
CreateNewCustomTransactionDataDsvFileParser returns a new custom transaction data parser
func CreateNewCustomTransactionDataExcelFileParser ¶
func CreateNewCustomTransactionDataExcelFileParser(fileType string) (CustomTransactionDataParser, error)
CreateNewCustomTransactionDataExcelFileParser returns a new custom transaction data parser