Documentation
¶
Index ¶
- type FileTransferControl
- func (ctl *FileTransferControl) Cancel()
- func (ctl *FileTransferControl) CloseAll()
- func (ctl *FileTransferControl) ReportError(e error)
- func (ctl *FileTransferControl) ReportErrorNonblocking(e error)
- func (ctl *FileTransferControl) ReportFinished()
- func (ctl *FileTransferControl) SendUpdate(current, total int64)
- func (ctl *FileTransferControl) WaitForCancel(k func())
- func (ctl *FileTransferControl) WaitForError(k func(error))
- func (ctl *FileTransferControl) WaitForFinish(k func())
- func (ctl *FileTransferControl) WaitForUpdate(k func(int64, int64))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileTransferControl ¶
type FileTransferControl struct { sync.RWMutex // all updates to the channels need to be protected by this mutex // contains filtered or unexported fields }
FileTransferControl supplies the capabilities to control the file transfer
func CreateFileTransferControl ¶
func CreateFileTransferControl() *FileTransferControl
func (*FileTransferControl) Cancel ¶
func (ctl *FileTransferControl) Cancel()
func (*FileTransferControl) CloseAll ¶
func (ctl *FileTransferControl) CloseAll()
func (*FileTransferControl) ReportError ¶
func (ctl *FileTransferControl) ReportError(e error)
func (*FileTransferControl) ReportErrorNonblocking ¶
func (ctl *FileTransferControl) ReportErrorNonblocking(e error)
func (*FileTransferControl) ReportFinished ¶
func (ctl *FileTransferControl) ReportFinished()
func (*FileTransferControl) SendUpdate ¶
func (ctl *FileTransferControl) SendUpdate(current, total int64)
func (*FileTransferControl) WaitForCancel ¶
func (ctl *FileTransferControl) WaitForCancel(k func())
func (*FileTransferControl) WaitForError ¶
func (ctl *FileTransferControl) WaitForError(k func(error))
func (*FileTransferControl) WaitForFinish ¶
func (ctl *FileTransferControl) WaitForFinish(k func())
func (*FileTransferControl) WaitForUpdate ¶
func (ctl *FileTransferControl) WaitForUpdate(k func(int64, int64))
Click to show internal directories.
Click to hide internal directories.