downloader

package
v0.0.0-...-c39ee49 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDownloader

func NewDownloader(downloader_config config.DownloaderConfig, tf string)

func NewOneTimeDownloader

func NewOneTimeDownloader(downloader_config config.DownloaderConfig, tf string)

Types

type FileObj

type FileObj struct {
	Path string
	Stat fs.FileInfo
}

type SftpDownloader

type SftpDownloader struct {
	config.DownloaderConfig
	// contains filtered or unexported fields
}

func (*SftpDownloader) Start

func (dler *SftpDownloader) Start(c chan FileObj, done chan int)

func (*SftpDownloader) Stop

func (dler *SftpDownloader) Stop()

type SftpScanner

type SftpScanner struct {
	config.DownloaderConfig

	Default_sleep_time int
	// contains filtered or unexported fields
}

func (*SftpScanner) Start

func (scanner *SftpScanner) Start(c chan FileObj, done chan int, scan_one_time_only bool)

func (*SftpScanner) Stop

func (scanner *SftpScanner) Stop()

Jump to

Keyboard shortcuts

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