Documentation ¶
Index ¶
- Constants
- Variables
- func Execute()
- func PrintError(v ...interface{})
- func PrintInfo(v ...interface{})
- type M3u8Downloader
- type MediaItem
- type SortedListResult
- type StatusBar
- func (s *StatusBar) CommitMetaCompleted(request, response string, txn *transaction.Transaction, err error)
- 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 ( KB = 1024 MB = 1024 * KB GB = 1024 * MB )
Variables ¶
View Source
var VersionStr string
Functions ¶
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 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) CommitMetaCompleted ¶ added in v1.0.3
func (s *StatusBar) CommitMetaCompleted(request, response string, txn *transaction.Transaction, err error)
func (*StatusBar) InProgress ¶
func (*StatusBar) RepairCompleted ¶ added in v1.0.3
Source Files ¶
- add.go
- addcurator.go
- challengepool.go
- collaborators.go
- commit.go
- common.go
- copy.go
- delete.go
- download.go
- download_m3u8.go
- filemeta.go
- filestats.go
- finalizeallocation.go
- getallocation.go
- getmpt.go
- list.go
- listallocations.go
- move.go
- newallocation.go
- readpool.go
- registerwallet.go
- removecurator.go
- rename.go
- repair.go
- root.go
- share.go
- stakepool.go
- storage.go
- sync.go
- transferallocation.go
- update.go
- updateallocation.go
- updateattributes.go
- upload.go
- version.go
- walletinfo.go
- writepool.go
Click to show internal directories.
Click to hide internal directories.