Documentation ¶
Index ¶
- func CountLimitOffset(contentLength, concurrent int) map[int]LimitOffsetData
- func CreateFile(filename string) (*os.File, error)
- func DeletePartFile() error
- func GetContentLenght(resp *http.Response) (int, error)
- func HandleCancelation(filename string, limitOffsetData map[int]LimitOffsetData) map[int]int
- func HasPartFile(filename string, concurrent int) bool
- func IsDownloadComplete(filename string, tracker map[int]int, limitOffsetData map[int]LimitOffsetData) (bool, error)
- func NewWriter(w io.WriterAt, off, writerID int, counterStream chan CounterStream) *writer
- func ParsePartFile(filename string, concurrent int) (map[int]LimitOffsetData, error)
- func SetupProgressBar(concurrent int, limitOffsetData map[int]LimitOffsetData) []*uiprogress.Bar
- func WritePartFile(tracker map[int]int, filename string, limitfOffsetData map[int]LimitOffsetData) error
- type CounterStream
- type LimitOffsetData
- type WriteCounter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountLimitOffset ¶
func CountLimitOffset(contentLength, concurrent int) map[int]LimitOffsetData
func DeletePartFile ¶
func DeletePartFile() error
func HandleCancelation ¶
func HandleCancelation(filename string, limitOffsetData map[int]LimitOffsetData) map[int]int
func HasPartFile ¶
func IsDownloadComplete ¶
func NewWriter ¶
func NewWriter(w io.WriterAt, off, writerID int, counterStream chan CounterStream) *writer
func ParsePartFile ¶
func ParsePartFile(filename string, concurrent int) (map[int]LimitOffsetData, error)
func SetupProgressBar ¶
func SetupProgressBar(concurrent int, limitOffsetData map[int]LimitOffsetData) []*uiprogress.Bar
func WritePartFile ¶
Types ¶
type CounterStream ¶
type LimitOffsetData ¶
type WriteCounter ¶
type WriteCounter struct {
Total uint
}
Click to show internal directories.
Click to hide internal directories.