cmd

package
v1.16.0-RC2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 37 Imported by: 0

Documentation

Index

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 Execute

func Execute()

func InstallDLLs added in v1.9.0

func InstallDLLs()

func MultiDownload added in v1.9.0

func MultiDownload(a *sdk.Allocation, jsonMultiDownloadOptions string, statusBar *StatusBar, verifyDownload bool) error

func PrintError

func PrintError(v ...interface{})

func PrintInfo added in v1.0.3

func PrintInfo(v ...interface{})

Types

type M3u8Downloader added in v1.0.3

type M3u8Downloader struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

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 MediaItem added in v1.0.3

type MediaItem struct {
	Name string
	Path string
}

MediaItem ts file

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) Completed

func (s *StatusBar) Completed(allocationId, filePath string, filename string, mimetype string, size int, op int)

func (*StatusBar) Error

func (s *StatusBar) Error(allocationID string, filePath string, op int, err error)

func (*StatusBar) InProgress

func (s *StatusBar) InProgress(allocationId, filePath string, op int, completedBytes int, data []byte)

func (*StatusBar) RepairCompleted added in v1.0.3

func (s *StatusBar) RepairCompleted(filesRepaired int)

func (*StatusBar) Started

func (s *StatusBar) Started(allocationId, filePath string, op int, totalBytes int)

type ZCNStatus

type ZCNStatus struct {
	// contains filtered or unexported fields
}

func (*ZCNStatus) OnWalletCreateComplete

func (zcn *ZCNStatus) OnWalletCreateComplete(status int, wallet string, err string)

Jump to

Keyboard shortcuts

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