3x-ui/xray/traffic.go

12 lines
270 B
Go
Raw Normal View History

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 {
IsInbound bool
IsOutbound bool
Tag string
Up int64
Down int64
2023-02-09 11:18:06 -08:00
}