source

package
v2.0.28 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package source defines the interface for a data source that can produce items to crawl and accept items that have been crawled.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeedEmptyReporter

type FeedEmptyReporter struct {
	// contains filtered or unexported fields
}

FeedEmptyReporter logs when the feed is empty for a long time.

func NewFeedEmptyReporter

func NewFeedEmptyReporter(logger *log.FieldedLogger) *FeedEmptyReporter

func (*FeedEmptyReporter) Report

func (e *FeedEmptyReporter) Report(urls int)

type Source

type Source interface {
	// Start initializes the source with the given input and output channels.
	Start(finishChan, produceChan chan *models.Item) error
	// Stop stops the source.
	Stop()
	// Name returns the name of the source.
	Name() string
}

Source is an interface for a data source that can produce items to crawl and accept items that have been crawled.

Directories

Path Synopsis
Package hq provides a way to interact with the HQv3 API and consumes, produces and mark items as finished asynchronusly.
Package hq provides a way to interact with the HQv3 API and consumes, produces and mark items as finished asynchronusly.
lq

Jump to

Keyboard shortcuts

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