Documentation ¶
Overview ¶
Package contains realization of class for file download via HTTP protocol
Index ¶
- type HttpDownloader
- func (httpDownloader *HttpDownloader) Browse(destination *models.ParsedDestination) ([]*models.RemoteFile, error)
- func (httpDownloader *HttpDownloader) Download(remoteFile *models.RemoteFile) (*models.RemoteFileContent, error)
- func (httpDownloader *HttpDownloader) Stat(destination *models.ParsedDestination) (*models.RemoteFile, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpDownloader ¶
type HttpDownloader struct { }
func (*HttpDownloader) Browse ¶
func (httpDownloader *HttpDownloader) Browse(destination *models.ParsedDestination) ([]*models.RemoteFile, error)
Not possible to implement this functionality thru HTTP protocol
func (*HttpDownloader) Download ¶
func (httpDownloader *HttpDownloader) Download(remoteFile *models.RemoteFile) (*models.RemoteFileContent, error)
Method allows download file from remote server, store it in temporary directory and return back RemoteFileContent with io.ReadCloser for further manipulations
func (*HttpDownloader) Stat ¶
func (httpDownloader *HttpDownloader) Stat(destination *models.ParsedDestination) (*models.RemoteFile, error)
Service method,that makes a HEAD request to remote server to get file size info
Click to show internal directories.
Click to hide internal directories.