Documentation ¶
Index ¶
- type CallbackFunction
- type Context
- func (context *Context) CheckDestinationPath(folder *Folder) error
- func (context *Context) LoadTree(folder *Folder)
- func (context *Context) MkdirIfNotExists(folder string) error
- func (context *Context) PrintDownloadPercent(done chan int64) error
- func (context *Context) SaveTree(folder *Folder) error
- type File
- type Folder
- type HttpContext
- type MissingFile
- type SmbContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallbackFunction ¶
CallbackFunction is used to report job progress like file, percentage, bytes done, bytes total
type Context ¶
type Context struct { Job *types.Job Repository *types.Repository Files *list.List // Files to download TotalCount int TotalSize int64 RemoteTree *Folder }
Context keep data specific for each ripping request
func (*Context) CheckDestinationPath ¶
func (*Context) MkdirIfNotExists ¶
func (*Context) PrintDownloadPercent ¶
type File ¶
type File struct { Name string `json:"name"` Date time.Time `json:"date"` Size int64 `json:"size"` }
File contain basic information about size and date
type Folder ¶
type Folder struct { Name string `json:"name"` Folders map[string]*Folder `json:"folders"` Files map[string]*File `json:"files"` }
Folder keeps a reference to files and folders contained in that folder
type HttpContext ¶
func CreateHttpContext ¶
func CreateHttpContext(job *types.Job, repo *types.Repository) *HttpContext
func (*HttpContext) DownloadDirHttp ¶
func (context *HttpContext) DownloadDirHttp() error
func (*HttpContext) DownloadSingleFileHttp ¶
func (context *HttpContext) DownloadSingleFileHttp() error
type MissingFile ¶
type SmbContext ¶
func CreateSmbContext ¶
func CreateSmbContext(job *types.Job, repo *types.Repository) *SmbContext
func (*SmbContext) DownloadDirectoryCifs ¶
func (context *SmbContext) DownloadDirectoryCifs() error
Click to show internal directories.
Click to hide internal directories.