contract

package
v1.0.1-0...-2d42981 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandHandlerInterface

type CommandHandlerInterface interface {
	Handle(command interface{}) (interface{}, error)
}

type EntityInterface

type EntityInterface interface {
	GetId() string
}

type IoProgressInterface

type IoProgressInterface interface {
	// GetTotalByteCount get total count of remote source file
	GetTotalByteCount() int64

	// GetCurrentByteCount get count of local bytes
	GetCurrentByteCount() int64

	// GetPercentage get current percentage
	GetPercentage() string
}

IoProgressInterface interface for download progress

type VideoDownloaderInterface

type VideoDownloaderInterface interface {
	// Download start downloading a file
	Download(video VideoInterface, outputDir string) (<-chan IoProgressInterface, error)

	// GetLocalFilePathAbs get absolute path of local downloaded file
	GetLocalFilePathAbs() string

	// GetLastError get last error
	GetLastError() error

	// ResetLastError reset last error
	ResetLastError()
}

VideoDownloaderInterface interface for downloader

type VideoExtractorInterface

type VideoExtractorInterface interface {
	ExtractVideoFromURL(rawURL string) (VideoInterface, error)
}

VideoExtractorInterface interface for all video extractors

type VideoInterface

type VideoInterface interface {
	EntityInterface

	GetSeriesTitle() string
	GetEpisodeTitle() string
	GetEpisodeDescription() string
	GetLanguageCode() string
	GetVideoOriginURL() *url.URL
	GetVideoResolution() vo.Resolution
	GetEpisodeNumber() int
	GetFileSize() int64
}

Jump to

Keyboard shortcuts

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