Documentation
¶
Overview ¶
Package launcher provides Chrome browser discovery, launching, and lifecycle management.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindChrome ¶
FindChrome locates Chrome on the system. If chromePath is non-empty and exists, it is returned directly. Otherwise, searches PATH and known install locations.
func IsPortOpen ¶
IsPortOpen checks if a TCP port is accepting connections.
Types ¶
type ChromeInfo ¶
type ChromeInfo struct {
Browser string `json:"Browser"`
Protocol string `json:"Protocol-Version"`
V8 string `json:"V8-Version"`
WebKit string `json:"WebKit-Version"`
}
ChromeInfo contains version information from a running Chrome instance.
func DetectRunning ¶
func DetectRunning(host string, port int) (*ChromeInfo, error)
DetectRunning checks if a Chrome debug port is responding and returns version info.
Click to show internal directories.
Click to hide internal directories.