BalanceTracker tracks in-memory balance state and access frequency for hot-path optimization.
| 83 | |
| 84 | // BalanceTracker tracks in-memory balance state and access frequency for hot-path optimization. |
| 85 | type BalanceTracker struct { |
| 86 | Balances map[string]*Balance |
| 87 | Frequencies map[string]int |
| 88 | Mutex sync.Mutex |
| 89 | } |
| 90 | |
| 91 | // AlertCondition specifies the field, operator, value, and precision for a balance monitor alert threshold. |
| 92 | type AlertCondition struct { |
nothing calls this directly
no outgoing calls
no test coverage detected