discoverpage

package
v0.0.232 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: Apache-2.0 Imports: 14 Imported by: 0 modules, 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

func CaptureScreenshot

func CaptureScreenshot(ctx context.Context, browser *headless.Requester, sendHTTPRequestConfig *common.SendHttpRequestConfig) ([]byte, error)

CaptureScreenshot uses a headless browser to capture a screenshot of the given URL and returns the image bytes.

func ExtractSensitiveContentsFromWebContent added in v0.0.207

func ExtractSensitiveContentsFromWebContent(ctx context.Context, content string, fingerprints *discover.SensitiveContentFingerprints) ([]*discover.SensitiveContent, []string)

ExtractSensitiveContentsFromWebContent searches for sensitive content in web content

func LoadSensitiveConentFingerprints added in v0.0.207

func LoadSensitiveConentFingerprints(ctx context.Context, configPath *string) (*discover.SensitiveContentFingerprints, error)

LoadSensitiveConentFingerprints loads fingerprints from a custom file path or falls back to the embedded default fingerprints baked into the binary.

func PerformHTMLPageCapture

func PerformHTMLPageCapture(ctx context.Context, config *common.SendHttpRequestConfig) (*common.HttpRequestResponse, error)

PerformHTMLPageCapture sends an HTTP request using the provided config and returns the response.

Types

This section is empty.

Jump to

Keyboard shortcuts

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