browser

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: AGPL-3.0 Imports: 5 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

Overview

Package browser centralizes browser binary discovery for AIScan's browser-backed engines.

Index

Constants

View Source
const (
	// PathEnv explicitly selects the Chrome-compatible browser binary used by AIScan.
	PathEnv = "AISCAN_BROWSER_PATH"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Binary

type Binary struct {
	Path   string
	Source Source
}

Binary describes a discovered Chrome-compatible browser executable.

func Discover

func Discover() (Binary, error)

Discover resolves the browser shared by Playwright, nuclei headless, and Katana. An explicit AISCAN_BROWSER_PATH is authoritative. If neither it nor a system browser is available, an empty result lets Rod use its cached/download fallback.

type Source

type Source string

Source identifies how a browser binary was selected.

const (
	SourceEnvironment Source = "environment"
	SourceSystem      Source = "system"
)

Jump to

Keyboard shortcuts

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