Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveVideoInfo ¶
func SaveVideoInfo(response_body_data io.ReadCloser, filename string, file_index int) error
Receives file names and file order as parameters and saves them into a JSON file.
Types ¶
type ProgressReader ¶
type ProgressReader struct {
// contains filtered or unexported fields
}
func NewProgress ¶
func NewProgress(Reader io.Reader, TotalSize int64) *ProgressReader
Creating the ProgressReader struct.
func (*ProgressReader) Read ¶
func (pr *ProgressReader) Read(p []byte) (n int, err error)
Method used during video copying.
func (*ProgressReader) SaveVideoWithProgress ¶
func (pr *ProgressReader) SaveVideoWithProgress(filename string, video_number int) error
Executes the actual file saving with the filename as a parameter.
Click to show internal directories.
Click to hide internal directories.