Help us shape the future of Go! Take the 2026 Go Developer Survey

cdpretry

package
v0.57.21 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package cdpretry contains the Electron renderer CDP retry policy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvaluateUserAgent

func EvaluateUserAgent(ctx context.Context, page Page, waitForPage WaitForPage) (string, error)

EvaluateUserAgent evaluates navigator.userAgent, retrying while the renderer replaces its execution context during startup.

Types

type Page

type Page interface {
	Evaluate(expression string, arg ...any) (any, error)
}

Page evaluates JavaScript in a renderer page.

type WaitForPage

type WaitForPage func(context.Context) (Page, error)

WaitForPage returns the next renderer page available through CDP.

Jump to

Keyboard shortcuts

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