Documentation
¶
Index ¶
- func WithProgressReporter(ctx context.Context, reporter ProgressReporter) context.Context
- type ProgressReporter
- type ScanResult
- type Service
- func (s *Service) ExecuteForPlaylist(ctx context.Context, bdmvPath string, playlistFile string, outputPath string, ...) (string, error)
- func (s *Service) ExecuteFullScan(ctx context.Context, bdmvPath string, outputDir string) (ScanResult, error)
- func (s *Service) ParseOutput(filePath string) (map[string]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithProgressReporter ¶
func WithProgressReporter(ctx context.Context, reporter ProgressReporter) context.Context
WithProgressReporter attaches a progress reporter to context.
Types ¶
type ProgressReporter ¶
type ProgressReporter func(line string)
ProgressReporter receives raw BDInfo progress lines.
type ScanResult ¶
ScanResult contains the rendered report payload and its persisted location.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service handles BDInfo execution and parsing for BDMV discs
func (*Service) ExecuteForPlaylist ¶
func (s *Service) ExecuteForPlaylist(ctx context.Context, bdmvPath string, playlistFile string, outputPath string, summaryOnly bool) (string, error)
ExecuteForPlaylist runs the embedded Go BDInfo scanner for a specific playlist and writes to the caller-provided path.
func (*Service) ExecuteFullScan ¶
func (s *Service) ExecuteFullScan(ctx context.Context, bdmvPath string, outputDir string) (ScanResult, error)
ExecuteFullScan runs the embedded Go BDInfo scanner for the full disc and returns the raw report.
Click to show internal directories.
Click to hide internal directories.