source

package
v2.0.26 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

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