Documentation ¶
Index ¶
- type ContentFormat
- type ILogger
- type Scanner
- func (s *Scanner) Download(directory string, maxConcurrency int64) error
- func (s *Scanner) EmulatePlayback() error
- func (s *Scanner) Files() map[string][]SegmentDownload
- func (s *Scanner) Random() error
- func (s *Scanner) Scan() (map[Segment]bool, error)
- func (s *Scanner) Segments() (Segments, error)
- func (s *Scanner) Streams() (Streams, error)
- type Segment
- type SegmentDownload
- type Segments
- type Stream
- type Streams
- type TestingLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ILogger ¶
type ILogger interface { Debug(value ...any) Debugf(message string, value ...any) Info(value ...any) Infof(message string, value ...any) }
func NewTestingLogger ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
func (*Scanner) Download ¶
Download downloads the segments and stores the ABR stream names and their corresponding segments. Retrieve the stream names and the downloaded file locations by calling scanner.Files().
func (*Scanner) EmulatePlayback ¶
TODO EmulatePlayback will select a stream then download segments in a buffer from the live edge.
func (*Scanner) Files ¶
func (s *Scanner) Files() map[string][]SegmentDownload
Files returns a map of stream name and the corresponding segment file locations for that steam.
func (*Scanner) Scan ¶
Scan will do a head request on each segment and verify 200 response code and return a map of the segment scanned and if it was scanned successfully.
type SegmentDownload ¶
type SegmentDownload struct {
// contains filtered or unexported fields
}
func (*SegmentDownload) Error ¶
func (sd *SegmentDownload) Error() error
func (*SegmentDownload) File ¶
func (sd *SegmentDownload) File() string
type TestingLogger ¶
type TestingLogger struct {
// contains filtered or unexported fields
}
func (*TestingLogger) Debug ¶
func (tl *TestingLogger) Debug(value ...any)
func (*TestingLogger) Debugf ¶
func (tl *TestingLogger) Debugf(message string, value ...any)
func (*TestingLogger) Info ¶
func (tl *TestingLogger) Info(value ...any)
func (*TestingLogger) Infof ¶
func (tl *TestingLogger) Infof(message string, value ...any)
Click to show internal directories.
Click to hide internal directories.