traffic.go 443 B

1234567891011
  1. package xray
  2. // Traffic represents network traffic statistics for Xray connections.
  3. // It tracks upload and download bytes for inbound or outbound traffic.
  4. type Traffic struct {
  5. IsInbound bool `json:"IsInbound" example:"true"`
  6. IsOutbound bool `json:"IsOutbound" example:"false"`
  7. Tag string `json:"Tag" example:"inbound-443"`
  8. Up int64 `json:"Up" example:"1048576"`
  9. Down int64 `json:"Down" example:"2097152"`
  10. }