track.go 640 B

12345678910111213141516171819202122232425262728
  1. package archive
  2. import (
  3. "go-common/library/time"
  4. )
  5. //Track archive track info
  6. type Track struct {
  7. // common values
  8. Timestamp time.Time `json:"timestamp"`
  9. // archive stat
  10. State int `json:"state"`
  11. Round int `json:"round"`
  12. // AID int64 `json:"aid,omitempty"`
  13. Remark string `json:"remark,omitempty"`
  14. Attribute int32 `json:"attribute"`
  15. }
  16. //VideoTrack video track info
  17. type VideoTrack struct {
  18. // common values
  19. Timestamp time.Time `json:"timestamp"`
  20. XCodeState int8 `json:"xcode_state"`
  21. // video status
  22. Status int16 `json:"status"`
  23. AID int64 `json:"aid,omitempty"`
  24. Remark string `json:"remark,omitempty"`
  25. }