Documentation ¶
Index ¶
- func QueryBalance(ctx context.Context, writer io.Writer, tx *sql.Tx, year int, ...) error
- func QueryTransactions(ctx context.Context, writer io.Writer, tx *sql.Tx, year int, ...) error
- func QueryWalletBalance(ctx context.Context, w io.Writer, tx *sql.Tx, baseCurrency, source string, ...) error
- type Balance
- type OutputFormat
- type TableWriter
- type WalletBalance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QueryBalance ¶
func QueryTransactions ¶
Types ¶
type OutputFormat ¶
type OutputFormat string
const ( OutputFormatTable OutputFormat = "table" OutputFormatCSV OutputFormat = "csv" )
type TableWriter ¶
type TableWriter struct {
// contains filtered or unexported fields
}
func NewTableWriter ¶
func NewTableWriter(w io.Writer) *TableWriter
func (*TableWriter) PrintBalances ¶
func (t *TableWriter) PrintBalances(bs models.BalanceSlice)
func (*TableWriter) PrintEvents ¶
func (t *TableWriter) PrintEvents(es models.EventSlice)
func (*TableWriter) Write ¶
func (t *TableWriter) Write(value interface{}) error
type WalletBalance ¶
type WalletBalance struct {
Wallet []Balance
}
Click to show internal directories.
Click to hide internal directories.