Add stats collection

This commit is contained in:
Viktor Liu
2024-12-23 22:18:04 +01:00
parent ad9f044aad
commit f57bc604a8
19 changed files with 630 additions and 125 deletions
+3
View File
@@ -100,6 +100,9 @@ type Manager interface {
// Flush the changes to firewall controller
Flush() error
// CollectStats returns the statistics of the firewall manager
CollectStats() []*FlowStats
}
func GenKey(format string, pair RouterPair) string {