2023-02-09 11:18:06 -08:00
|
|
|
package xray
|
|
|
|
|
|
2025-09-20 00:35:50 -07:00
|
|
|
// Traffic represents network traffic statistics for Xray connections.
|
|
|
|
|
// It tracks upload and download bytes for inbound or outbound traffic.
|
2023-02-09 11:18:06 -08:00
|
|
|
type Traffic struct {
|
2024-01-29 12:37:20 -08:00
|
|
|
IsInbound bool
|
|
|
|
|
IsOutbound bool
|
|
|
|
|
Tag string
|
|
|
|
|
Up int64
|
|
|
|
|
Down int64
|
2023-02-09 11:18:06 -08:00
|
|
|
}
|