cmd

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: MIT Imports: 34 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 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 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