stats

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrStatsNotInitialized is returned when the stats package is not initialized
	ErrStatsNotInitialized = errors.New("stats not initialized")
	// ErrStatsAlreadyInitialized is returned when the stats package is already initialized
	ErrStatsAlreadyInitialized = errors.New("stats already initialized")
)

Functions

func AkamaiMitigatedIncr

func AkamaiMitigatedIncr()

AkamaiMitigatedIncr increments the AkamaiMitigated counter by 1.

func ArchiverRoutinesDecr

func ArchiverRoutinesDecr()

ArchiverRoutinesDecr decrements the ArchiverRoutines counter by 1.

func ArchiverRoutinesIncr

func ArchiverRoutinesIncr()

ArchiverRoutinesIncr increments the ArchiverRoutines counter by 1.

func CFMitigatedIncr

func CFMitigatedIncr()

CFMitigatedIncr increments the CFMitigated counter by 1.

func FinisherRoutinesDecr

func FinisherRoutinesDecr()

FinisherRoutinesDecr decrements the FinisherRoutines counter by 1.

func FinisherRoutinesIncr

func FinisherRoutinesIncr()

FinisherRoutinesIncr increments the FinisherRoutines counter by 1.

func GetMapTUI

func GetMapTUI() map[string]any

GetMapTUI returns a map of the current stats. This is used by the TUI to update the stats table.

func HTTPReturnCodesIncr

func HTTPReturnCodesIncr(key string)

HTTPReturnCodesIncr increments the HTTPReturnCodes counter for the given key by 1.

func Init

func Init() error

func MeanHTTPRespTimeAdd

func MeanHTTPRespTimeAdd(value time.Duration)

MeanHTTPRespTimeAdd adds the given value to the MeanHTTPRespTime.

func MeanProcessBodyTimeAdd

func MeanProcessBodyTimeAdd(value time.Duration)

MeanProcessBodyTimeAdd adds the given value to the MeanProcessBodyTime.

func MeanWaitOnFeedbackTimeAdd

func MeanWaitOnFeedbackTimeAdd(value time.Duration)

MeanWaitOnFeedbackTimeAdd adds the given value to the MeanWaitOnFeedbackTime.

func PausedReset

func PausedReset()

PausedReset resets the Paused flag to false.

func PausedSet

func PausedSet()

PausedSet sets the Paused flag to true.

func PausedUnset

func PausedUnset()

PausedUnset sets the Paused flag to false.

func PostprocessorRoutinesDecr

func PostprocessorRoutinesDecr()

PostprocessorRoutinesDecr decrements the PostprocessorRoutines counter by 1.

func PostprocessorRoutinesIncr

func PostprocessorRoutinesIncr()

PostprocessorRoutinesIncr increments the PostprocessorRoutines counter by 1.

func PreprocessorRoutinesDecr

func PreprocessorRoutinesDecr()

PreprocessorRoutinesDecr decrements the PreprocessorRoutines counter by 1.

func PreprocessorRoutinesIncr

func PreprocessorRoutinesIncr()

PreprocessorRoutinesIncr increments the PreprocessorRoutines counter by 1.

func PrometheusHandler

func PrometheusHandler() http.Handler

func Reset

func Reset()

func SeedsFinishedIncr

func SeedsFinishedIncr()

SeedsFinishedIncr increments the SeedsFinished counter by 1.

func SeencheckFailuresIncr

func SeencheckFailuresIncr()

SeencheckFailuresIncr increments the SeencheckFailures counter by 1.

func URLsCrawledIncr

func URLsCrawledIncr()

URLsCrawledIncr increments the URLsCrawled counter by 1.

func WARCCDXDedupeTotalBytesSet

func WARCCDXDedupeTotalBytesSet(value int64)

WARCCDXDedupeTotalBytesSet sets the WARC CDX dedupe total bytes metric.

func WARCCDXDedupeTotalSet

func WARCCDXDedupeTotalSet(value int64)

WARCCDXDedupeTotalSet sets the WARC CDX dedupe total count metric.

func WARCDataTotalBytesSet

func WARCDataTotalBytesSet(value int64)

WARCDataTotalBytesSet sets the WARC data total bytes metric.

func WARCDoppelgangerDedupeTotalBytesSet

func WARCDoppelgangerDedupeTotalBytesSet(value int64)

WARCDoppelgangerDedupeTotalBytesSet sets the WARC Doppelganger dedupe total bytes metric.

func WARCDoppelgangerDedupeTotalSet

func WARCDoppelgangerDedupeTotalSet(value int64)

WARCDoppelgangerDedupeTotalSet sets the WARC Doppelganger dedupe total count metric.

func WARCLocalDedupeTotalBytesSet

func WARCLocalDedupeTotalBytesSet(value int64)

WARCLocalDedupeTotalBytesSet sets the WARC local dedupe total bytes metric.

func WARCLocalDedupeTotalSet

func WARCLocalDedupeTotalSet(value int64)

WARCLocalDedupeTotalSet sets the WARC local dedupe total count metric.

func WarcWritingQueueSizeSet

func WarcWritingQueueSizeSet(value int64)

WarcWritingQueueSizeSet sets the WarcWritingQueueSize to the given value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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