data

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

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))

Jump to

Keyboard shortcuts

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