storage

package
v0.0.0-...-41eba85 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL