downloadstatus

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean

func Clean()

Clean removes all expires status objects

func DeleteAll

func DeleteAll()

DeleteAll removes all download status

func GetAll

func GetAll() map[string]models.DownloadStatus

GetAll returns all download states

func IsCurrentlyDownloading

func IsCurrentlyDownloading(file models.File) bool

IsCurrentlyDownloading returns true if file is currently being downloaded

func SetComplete

func SetComplete(id string)

SetComplete removes the download object

func SetDownload

func SetDownload(file models.File) string

SetDownload creates a new DownloadStatus struct and returns its Id

Types

This section is empty.

Jump to

Keyboard shortcuts

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