tables

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

func MakeAccountsTable(accounts []models.Account, institutionName string) table.Table

Format a table of accounts data to display of single item record

func MakeAccountsTableAllItems

func MakeAccountsTableAllItems(accounts []database.Account) table.Table

Make table of accounts data to display of all user items

func MakeSingleAccountTable

func MakeSingleAccountTable(acc database.Account) table.Table

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.

Jump to

Keyboard shortcuts

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