Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DownloadConfig ¶
type DownloadConfig struct { ServerInfo ServerConfig MaxConnection int // max number of simultaneous connections BaseDir string DestDir string Files2Download []string }
DownloadConfig is a config for files to download from a public FTP server
func NewDownloadConfig ¶
func NewDownloadConfig(ftpURL, baseDir, destDir string, files2Download []string) *DownloadConfig
NewDownloadConfig returns a basic DownloadConfig
func (DownloadConfig) Download ¶
func (fc DownloadConfig) Download() error
Download downloads files based on the config
type ServerConfig ¶
ServerConfig defines the FTP server configuration
Click to show internal directories.
Click to hide internal directories.