Documentation ¶
Index ¶
- Constants
- Variables
- func Execute()
- func InstallDLLs()
- func MultiDownload(a *sdk.Allocation, jsonMultiDownloadOptions string, statusBar *StatusBar, ...) error
- func PrintError(v ...interface{})
- func PrintInfo(v ...interface{})
- type M3u8Downloader
- type MediaItem
- type MultiDownloadOption
- type MultiUploadOption
- type SortedListResult
- type StatusBar
- func (s *StatusBar) Completed(allocationId, filePath string, filename string, mimetype string, size int, ...)
- func (s *StatusBar) Error(allocationID string, filePath string, op int, err error)
- func (s *StatusBar) InProgress(allocationId, filePath string, op int, completedBytes int, data []byte)
- func (s *StatusBar) RepairCompleted(filesRepaired int)
- func (s *StatusBar) Started(allocationId, filePath string, op int, totalBytes int)
- type ZCNStatus
Constants ¶
View Source
const ( ZCNStatusSuccess int = 0 ZCNStatusError int = 1 )
View Source
const ( PageLimit = 100 Layout = "2006-01-02 15:04:05" )
View Source
const ( KB = 1024 MB = 1024 * KB GB = 1024 * MB )
Variables ¶
View Source
var VersionStr string
Functions ¶
func InstallDLLs ¶ added in v1.9.0
func InstallDLLs()
func MultiDownload ¶ added in v1.9.0
func PrintError ¶
func PrintError(v ...interface{})
Types ¶
type M3u8Downloader ¶ added in v1.0.3
M3u8Downloader download files from blobber's dir, and build them into a local m3u8 playlist
func (*M3u8Downloader) Start ¶ added in v1.0.3
func (d *M3u8Downloader) Start() error
Start start to download ,and build playlist
type MultiDownloadOption ¶ added in v1.9.0
type MultiDownloadOption struct { RemotePath string `json:"remotePath"` LocalPath string `json:"localPath"` DownloadOp int `json:"downloadOp"` RemoteFileName string `json:"remoteFileName,omitempty"` //Required only for file download with auth ticket RemoteLookupHash string `json:"remoteLookupHash,omitempty"` //Required only for file download with auth ticket }
type MultiUploadOption ¶ added in v1.9.0
type MultiUploadOption struct { FilePath string `json:"filePath,omitempty"` FileName string `json:"fileName,omitempty"` RemotePath string `json:"remotePath,omitempty"` ThumbnailPath string `json:"thumbnailPath,omitempty"` Encrypt bool `json:"encrypt,omitempty"` ChunkNumber int `json:"chunkNumber,omitempty"` IsUpdate bool `json:"isUpdate,omitempty"` IsWebstreaming bool `json:"isWebstreaming,omitempty"` }
type SortedListResult ¶ added in v1.0.3
type SortedListResult []*sdk.ListResult
SortedListResult sort files order by time
func (SortedListResult) Len ¶ added in v1.0.3
func (a SortedListResult) Len() int
func (SortedListResult) Less ¶ added in v1.0.3
func (a SortedListResult) Less(i, j int) bool
func (SortedListResult) Swap ¶ added in v1.0.3
func (a SortedListResult) Swap(i, j int)
type StatusBar ¶
type StatusBar struct {
// contains filtered or unexported fields
}
func (*StatusBar) InProgress ¶
func (*StatusBar) RepairCompleted ¶ added in v1.0.3
Source Files ¶
- add.go
- challengepool.go
- collect_reward.go
- common.go
- copy.go
- createdir.go
- delete.go
- download.go
- download_m3u8.go
- feed.go
- fileRefs.go
- filemeta.go
- filestats.go
- finalizeallocation.go
- get_download_cost.go
- get_upload_cost.go
- getallocation.go
- getmpt.go
- install.go
- kill_blobber.go
- kill_validator.go
- list.go
- listallocations.go
- move.go
- newallocation.go
- readpool.go
- removecurator.go
- rename.go
- repair.go
- rolllback.go
- root.go
- share.go
- shutdown_blobber.go
- shutdown_validator.go
- stakepool.go
- storage.go
- stream.go
- sync.go
- transferallocation.go
- update.go
- updateallocation.go
- upload.go
- validator.go
- version.go
- walletinfo.go
- writepool.go
Click to show internal directories.
Click to hide internal directories.