feat(api): add traffic log details filtering and enhance traffic log structures

This commit is contained in:
Chang lue Tsen
2025-08-26 02:29:25 -04:00
parent ad4f3df74e
commit 9b3cdbbb4f
43 changed files with 384 additions and 1481 deletions
+1
View File
@@ -352,6 +352,7 @@ type ServerTraffic struct {
ServerId int64 `json:"server_id"` // Server ID
Upload int64 `json:"upload"` // Upload traffic in bytes
Download int64 `json:"download"` // Download traffic in bytes
Total int64 `json:"total"` // Total traffic in bytes (Upload + Download)
}
// Marshal implements the json.Marshaler interface for ServerTraffic.