BalanceFilter defines filter criteria for querying balances by range, currency, ledger, and time period.
| 71 | |
| 72 | // BalanceFilter defines filter criteria for querying balances by range, currency, ledger, and time period. |
| 73 | type 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. |
| 85 | type BalanceTracker struct { |
nothing calls this directly
no outgoing calls
no test coverage detected