Documentation ¶
Index ¶
- func KatScout(done chan uint16) (err error)
- type KatFetch
- type KatFetchCollection
- func (k *KatFetchCollection) Done()
- func (k *KatFetchCollection) ExportFailure() ([]byte, error)
- func (k *KatFetchCollection) ExportSuccess() ([]byte, error)
- func (k *KatFetchCollection) Failure(fetch *KatFetch)
- func (k *KatFetchCollection) GetPage() (int, error)
- func (k *KatFetchCollection) ReceiveData()
- func (k *KatFetchCollection) ReturnPage(page int)
- func (k *KatFetchCollection) Success(fetch *KatFetch) error
- type KatRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KatFetch ¶
type KatFetch struct { StartTime time.Time Elapsed time.Duration Data []*KatRow // contains filtered or unexported fields }
*
- Fetcher v2 Declaration *
- Every KatFetch contains 25 torrent rows (max)
- For each category, the max amout of KatFetch(ers) is 400
func NewKatFetch ¶
func NewKatFetch() *KatFetch
type KatFetchCollection ¶
type KatFetchCollection struct { ActiveFetchers int `json:"-"` Current int `json:"-"` Data []*KatFetch `json:"successFetch"` Failures []*KatFetch `json:"failedFetch"` Completed chan *KatFetch `json:"-"` Board []bool `json:"-"` }
*
- A KatFetch Collection contains ~howmany KatFetch(es)
func NewKatFetchCollection ¶
func NewKatFetchCollection(howmany int) *KatFetchCollection
func (*KatFetchCollection) Done ¶
func (k *KatFetchCollection) Done()
func (*KatFetchCollection) ExportFailure ¶
func (k *KatFetchCollection) ExportFailure() ([]byte, error)
func (*KatFetchCollection) ExportSuccess ¶
func (k *KatFetchCollection) ExportSuccess() ([]byte, error)
func (*KatFetchCollection) Failure ¶
func (k *KatFetchCollection) Failure(fetch *KatFetch)
func (*KatFetchCollection) GetPage ¶
func (k *KatFetchCollection) GetPage() (int, error)
func (*KatFetchCollection) ReceiveData ¶
func (k *KatFetchCollection) ReceiveData()
ReceiveData is a function that should be called as goroutine, waiting for data to be sent
func (*KatFetchCollection) ReturnPage ¶
func (k *KatFetchCollection) ReturnPage(page int)
func (*KatFetchCollection) Success ¶
func (k *KatFetchCollection) Success(fetch *KatFetch) error
Click to show internal directories.
Click to hide internal directories.