Documentation ¶
Index ¶
- Variables
- type DownloadMsg
- type InitMsg
- type Session
- func (s *Session) Init() (msg *InitMsg, err error)
- func (s *Session) Ready() (err error)
- func (s *Session) ReportCompletedDownload(oid, path string) (err error)
- func (s *Session) ReportCompletedUpload(oid string) (err error)
- func (s *Session) ReportFailedDownload(oid, msg string) (err error)
- func (s *Session) ReportFailedUpload(oid, msg string) (err error)
- func (s *Session) ReportProgress(oid string, change, total int64) (err error)
- func (s *Session) StartDownload() (msg *DownloadMsg, err error)
- func (s *Session) StartUpload() (msg *UploadMsg, err error)
- type UploadMsg
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Terminate = errors.New("terminate")
)
Functions ¶
This section is empty.
Types ¶
type DownloadMsg ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func (*Session) ReportCompletedDownload ¶
func (*Session) ReportCompletedUpload ¶
func (*Session) ReportFailedDownload ¶
func (*Session) ReportFailedUpload ¶
func (*Session) ReportProgress ¶
func (*Session) StartDownload ¶
func (s *Session) StartDownload() (msg *DownloadMsg, err error)
func (*Session) StartUpload ¶
Click to show internal directories.
Click to hide internal directories.