github.com/puellanivis/breton@v0.2.16/lib/net/hls/m3u8/daterange.go (about) 1 package m3u8 2 3 import ( 4 "time" 5 ) 6 7 // DateRange implements the DATE-RANGE m3u8 field. 8 type DateRange struct { 9 ID string `m3u8:"ID"` 10 Class string `m3u8:"CLASS,optional"` 11 12 StartDate time.Time `m3u8:"START-DATE" format:"2006-01-02T15:04:05.999Z07:00"` 13 EndDate time.Time `m3u8:"END-DATE,optional" format:"2006-01-02T15:04:05.999Z07:00"` 14 15 Duration time.Duration `m3u8:"DURATION,optional"` 16 PlannedDuration time.Duration `m3u8:"PLANNED-DURATION,optional"` 17 18 // SCTE35-CMD 19 // SCTE35-OUT 20 // SCTE35-IN 21 22 EndOnNext bool `m3u8:"END-ON-NEXT,optional" enum:",YES"` 23 24 ClientAttribute map[string]interface{} `m3u8:"X-,optional"` 25 }