browser

package
v0.0.0-nightly.20260816 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

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