Documentation
¶
Index ¶
- Constants
- type SpiderSync
- func (s *SpiderSync) AfterRemoveDownCreate()
- func (s *SpiderSync) CheckDownLoading(spiderId string, fileId string) (bool, string)
- func (s *SpiderSync) CheckIsScrapy()
- func (s *SpiderSync) CreateMd5File(md5 string)
- func (s *SpiderSync) Download()
- func (s *SpiderSync) GetLockDownloadKey(spiderId string) string
- func (s *SpiderSync) InstallDeps()
- func (s *SpiderSync) RemoveDownCreate(md5 string)
- func (s *SpiderSync) RemoveSpiderFile()
Constants ¶
View Source
const (
Md5File = "md5.txt"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpiderSync ¶
func (*SpiderSync) AfterRemoveDownCreate ¶
func (s *SpiderSync) AfterRemoveDownCreate()
func (*SpiderSync) CheckDownLoading ¶
func (s *SpiderSync) CheckDownLoading(spiderId string, fileId string) (bool, string)
检测是否已经下载中
func (*SpiderSync) CheckIsScrapy ¶
func (s *SpiderSync) CheckIsScrapy()
func (*SpiderSync) CreateMd5File ¶
func (s *SpiderSync) CreateMd5File(md5 string)
func (*SpiderSync) GetLockDownloadKey ¶
func (s *SpiderSync) GetLockDownloadKey(spiderId string) string
获得下载锁的key
func (*SpiderSync) RemoveDownCreate ¶
func (s *SpiderSync) RemoveDownCreate(md5 string)
Click to show internal directories.
Click to hide internal directories.