Documentation
¶
Index ¶
- func GetFileName(download_url string) (string, error)
- func GetRangeBody(url string, start int64, end int64) (io.ReadCloser, int64, error)
- func GetSizeAndCheckRangeSupport(url string) (size int64, err error)
- func NewBufferPair(channels int, sz int64, init bool) *bufferPair
- type BatchCrawler
- type Fetcher
- type SegmentCrawler
- type Worker
- type WorkerManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFileName ¶
func GetRangeBody ¶
func NewBufferPair ¶
Types ¶
type BatchCrawler ¶
func NewBatchCrawler ¶
func NewBatchCrawler(f *os.File, recvBufferChan chan *segment, releaseBufferChan chan *segment, update func(int64)) (*BatchCrawler, error)
func (*BatchCrawler) Downcall ¶
func (c *BatchCrawler) Downcall(_ interface{}) (interface{}, error)
func (*BatchCrawler) Identity ¶
func (c *BatchCrawler) Identity() string
func (*BatchCrawler) Status ¶
func (c *BatchCrawler) Status() bool
type SegmentCrawler ¶
type SegmentCrawler struct {
RangeBatch *WorkerManager
// contains filtered or unexported fields
}
func NewSegmentCrawler ¶
func (*SegmentCrawler) Downcall ¶
func (c *SegmentCrawler) Downcall(_ interface{}) (interface{}, error)
func (*SegmentCrawler) Identity ¶
func (c *SegmentCrawler) Identity() string
func (*SegmentCrawler) Status ¶
func (c *SegmentCrawler) Status() bool
type WorkerManager ¶
type WorkerManager struct {
// contains filtered or unexported fields
}
func NewWorkerManager ¶
func (*WorkerManager) Add ¶
func (m *WorkerManager) Add(w Worker)
func (*WorkerManager) Count ¶
func (m *WorkerManager) Count() int32
Click to show internal directories.
Click to hide internal directories.