v0.11.0 external formatter and sanitizer integrated, refactored

This commit is contained in:
2025-12-10 08:37:26 -05:00
parent 46a436baa0
commit 61d0269dcf
44 changed files with 1623 additions and 1501 deletions
+3 -2
View File
@@ -1,4 +1,3 @@
// FILE: src/internal/flow/rate.go
package flow
import (
@@ -89,6 +88,8 @@ func (l *RateLimiter) GetStats() map[string]any {
stats := map[string]any{
"enabled": true,
"rate": l.bucket.Rate(),
"burst": l.bucket.Capacity(),
"dropped_total": l.droppedCount.Load(),
"dropped_by_size_total": l.droppedBySizeCount.Load(),
"policy": policyString(l.policy),
@@ -96,7 +97,7 @@ func (l *RateLimiter) GetStats() map[string]any {
}
if l.bucket != nil {
stats["tokens"] = l.bucket.Tokens()
stats["available_tokens"] = l.bucket.Tokens()
}
return stats