Documentation
¶
Index ¶
- func CreateSummariesTable(screen tcell.Screen, displayItems []models.MerchantSummary, ...)
- func CreateTable(screen tcell.Screen, displayItems []models.Transaction, accountName string, ...)
- func MakeAccountsTable(accounts []models.Account, institutionName string) table.Table
- func MakeAccountsTableAllItems(accounts []database.Account) table.Table
- func MakeSingleAccountTable(acc database.Account) table.Table
- func MakeTableForMonetaryAggregate(data []models.MonetaryData, accountName string) (table.Table, error)
- func MakeTableForSummaries(summaries []models.MerchantSummary, accountName string) table.Table
- func PaginateSummariesTable(summaries []models.MerchantSummary, accountName, merchant string, pageSize int) error
- func PaginateTransactionsTable(txns []models.Transaction, accountName string, balances []float64, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSummariesTable ¶
func CreateSummariesTable(screen tcell.Screen, displayItems []models.MerchantSummary, accountName, merchant string)
Draws a table of transaction data onto the tcell screen
func CreateTable ¶
func CreateTable(screen tcell.Screen, displayItems []models.Transaction, accountName string, balances []float64, isFiltered bool)
Draws a table of transaction data onto the tcell screen
func MakeAccountsTable ¶
Format a table of accounts data to display of single item record
func MakeAccountsTableAllItems ¶
Make table of accounts data to display of all user items
func MakeSingleAccountTable ¶
Format a table for a single account record
func MakeTableForMonetaryAggregate ¶
func MakeTableForMonetaryAggregate(data []models.MonetaryData, accountName string) (table.Table, error)
Make monetary data aggregate table
func MakeTableForSummaries ¶
func MakeTableForSummaries(summaries []models.MerchantSummary, accountName string) table.Table
Make transaction summary table
func PaginateSummariesTable ¶
func PaginateSummariesTable(summaries []models.MerchantSummary, accountName, merchant string, pageSize int) error
func PaginateTransactionsTable ¶
func PaginateTransactionsTable(txns []models.Transaction, accountName string, balances []float64, pageSize int, isFiltered bool) error
Takes slice of transaction records, and paginates the results into a table, displaying a base number of 20 transaction records at a time. Listens for pgUp/pgDown key presses to view through record pages
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.