UsageTracker records usage events. Always allows the action (no quota enforcement).
| 7 | |
| 8 | // UsageTracker records usage events. Always allows the action (no quota enforcement). |
| 9 | type UsageTracker interface { |
| 10 | // RecordAndCheck records a usage event. Always returns true. |
| 11 | RecordAndCheck(ctx context.Context, userID, agentID, domain, direction string) (allowed bool, err error) |
| 12 | } |
| 13 | |
| 14 | // LiveUsageTracker is the real implementation backed by the billing store. |
| 15 | type LiveUsageTracker struct { |
no outgoing calls
no test coverage detected