services

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: MIT Imports: 7 Imported by: 1 module, 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Services

type Services struct {
	// Options contains CLI configuration
	Options *types.Options

	// HostLimiter limits concurrent requests per hostname
	HostLimiter *hostlimit.HostRateLimiter

	// RateLimiter, when non-nil, caps the GLOBAL outbound request rate (requests
	// per second) across all hosts — distinct from HostLimiter's per-host
	// concurrency. It is engaged only when the operator sets an explicit
	// --rate-limit, so default scans keep their current throughput. Shared across
	// every Requester built from these Services (and their WithContext clones), so
	// one token bucket governs the whole scan.
	RateLimiter *rate.Limiter

	// HostErrors tracks host failures for circuit breaking
	HostErrors *hosterrors.Cache

	// Notifier sends notifications (Telegram, Discord, etc.)
	Notifier *notify.Manager

	// Dialer is the fastdialer instance for DNS resolution
	Dialer *fastdialer.Dialer

	// DedupManager manages deduplication for modules
	DedupManager *dedup.Manager
}

Services contains runtime services used across the application.

Jump to

Keyboard shortcuts

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