scan

package
v0.0.0-...-3ed07ed Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	UserAgent    string
	WithTor      bool
	Download     bool
	Concurrency  int
	MaxBodyBytes int64
}

type Result

type Result struct {
	Username string
	Site     string

	URLTemplate   string
	ProbeTemplate string
	Link          string

	Exists  bool
	Proxied bool
	Err     error
}

type Scanner

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

func NewScanner

func NewScanner(client *http.Client, cfg Config, dls map[string]downloaders.DownloaderFunc) *Scanner

func (*Scanner) Investigo

func (s *Scanner) Investigo(
	ctx context.Context,
	username string,
	site string,
	sd data.SiteData,
	downloadDir string,
	logger *log.Logger,
) Result

func (*Scanner) ScanUsername

func (s *Scanner) ScanUsername(
	ctx context.Context,
	username string,
	sites map[string]data.SiteData,
	downloadDir string,
	logger *log.Logger,
	onResult func(Result),
) error

func (*Scanner) ValidateSites

func (s *Scanner) ValidateSites(
	ctx context.Context,
	sites map[string]data.SiteData,
	onFailure func(ValidationFailure),
) (int, error)

type ValidationFailure

type ValidationFailure struct {
	Site           string
	UsedUsername   string
	UnusedUsername string

	Used   Result
	Unused Result
}

Jump to

Keyboard shortcuts

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