Documentation
¶
Overview ¶
Package website manages isolated browser processes and private profile directories.
Index ¶
- Constants
- Variables
- func Browser() (string, []chromedp.ExecAllocatorOption)
- func Launch(ctx context.Context, binary string, options []chromedp.ExecAllocatorOption, ...) (context.Context, func() error, error)
- func PrivateDirectory(path string, create bool) error
- func SignIn(ctx context.Context, binary, profile, page string, confirm func() error, ...) error
Constants ¶
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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.