website

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 11 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 website manages isolated browser processes and private profile directories.

Index

Constants

View Source
const BrowserUnavailable = "No compatible browser is available for an isolated website session."

Variables

View Source
var (
	ErrBrowserMissing  = errors.New(BrowserUnavailable)
	ErrSignInStart     = errors.New("The browser could not open a separate sign-in window.")
	ErrSignInExit      = errors.New("The sign-in browser closed unexpectedly.")
	ErrLaunch          = errors.New("The browser could not open an isolated website session.")
	ErrClose           = errors.New("website browser did not close cleanly")
	ErrUnsafeDirectory = errors.New("website profile directory is unavailable or unsafe")
)

Functions

func Browser

func Browser() (string, []chromedp.ExecAllocatorOption)

func Launch

func Launch(ctx context.Context, binary string, options []chromedp.ExecAllocatorOption, profile string) (context.Context, func() error, error)

Launch opens an isolated browser and its initial tab without navigating. The caller owns the tab until close returns. The context bounds startup.

func PrivateDirectory

func PrivateDirectory(path string, create bool) error

func SignIn

func SignIn(ctx context.Context, binary, profile, page string, confirm func() error, out io.Writer) error

SignIn opens a visible browser in the provided private profile. The caller supplies confirmation that the user has signed in and closed the window.

Types

This section is empty.

Jump to

Keyboard shortcuts

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