MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / BalanceFilter

Struct BalanceFilter

model/balance.go:73–82  ·  view source on GitHub ↗

BalanceFilter defines filter criteria for querying balances by range, currency, ledger, and time period.

Source from the content-addressed store, hash-verified

71
72// BalanceFilter defines filter criteria for querying balances by range, currency, ledger, and time period.
73type BalanceFilter struct {
74 ID int64 `json:"id"`
75 BalanceRange string `json:"balance_range"`
76 CreditBalanceRange string `json:"credit_balance_range"`
77 DebitBalanceRange string `json:"debit_balance_range"`
78 Currency string `json:"currency"`
79 LedgerID string `json:"ledger_id"`
80 From time.Time `json:"from"`
81 To time.Time `json:"to"`
82}
83
84// BalanceTracker tracks in-memory balance state and access frequency for hot-path optimization.
85type BalanceTracker struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected