Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CopyCancelled = errors.New("Copy cancelled")
Functions ¶
Types ¶
type CopyJob ¶
func NewCopyJob ¶
func NewCopyJob(cd moocfetcher.CourseData, copier CourseCopier) *CopyJob
func (*CopyJob) Progress ¶
func (c *CopyJob) Progress() CopyJobProgress
type CopyJobProgress ¶
type CourseCopier ¶
type FileSystemCopier ¶
type FileSystemCopier struct {
// contains filtered or unexported fields
}
func NewFileSystemCopier ¶
func NewFileSystemCopier(from, to string) *FileSystemCopier
func (*FileSystemCopier) Cancel ¶
func (f *FileSystemCopier) Cancel()
func (*FileSystemCopier) Copy ¶
func (f *FileSystemCopier) Copy(courseSlug string) error
func (*FileSystemCopier) Progress ¶
func (f *FileSystemCopier) Progress() int
type MOOCFetcherApplianceServer ¶
type MOOCFetcherApplianceServer struct { *http.ServeMux Copier CourseCopier USBDriveOverride string // Ugly hack to make USB detection more robust on Windows // contains filtered or unexported fields }
MOOCFetcherApplianceServer take request from the MOOCFetcher Appliance frontend app and performs copy operations, provides status updates etc.
func NewServer ¶
func NewServer(courseFoldersPath string, courseMetadata moocfetcher.CourseData) *MOOCFetcherApplianceServer
Click to show internal directories.
Click to hide internal directories.