contentfetcher

package
v0.0.0-...-7f6939c Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentFetcher

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

ContentFetcher is responsible for fetching URL content with persona and proxy support.

func NewContentFetcher

func NewContentFetcher(appCfg *config.AppConfig, proxyMgr *proxymanager.ProxyManager) *ContentFetcher

func (*ContentFetcher) FetchUsingPersonas

func (cf *ContentFetcher) FetchUsingPersonas(
	ctx context.Context,
	urlStr string,
	httpModelPersona *models.Persona,
	dnsModelPersona *models.Persona,
	modelProxy *models.Proxy,
) (body []byte, finalURL string, statusCode int, httpPersonaIDUsed *uuid.UUID, dnsPersonaIDUsed *uuid.UUID, proxyIDUsed *uuid.UUID, err error)

Jump to

Keyboard shortcuts

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