browser

package
v0.700.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package browser resolves which Chromium-family browser Pando should drive.

It is deliberately dependency-free (stdlib only) and shared: the browser_* agent tools and the design renderer both need to find a browser, and neither package may import the other.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRemoteBrowserType

func IsRemoteBrowserType(browserType string) bool

IsRemoteBrowserType returns true for browser types that act as CDP servers (launched separately and connected to via WebSocket) rather than local executables.

func NormalizeBrowserType

func NormalizeBrowserType(value string) string

Types

type BrowserInstall

type BrowserInstall struct {
	Type        string `json:"type"`
	Label       string `json:"label"`
	Executable  string `json:"executable"`
	UserDataDir string `json:"userDataDir,omitempty"`
	ProfileDir  string `json:"profileDir,omitempty"`
}

func DetectInstalledBrowsers

func DetectInstalledBrowsers() []BrowserInstall

func ResolveBrowserInstall

func ResolveBrowserInstall(browserType, executable string) (BrowserInstall, bool)

Jump to

Keyboard shortcuts

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