Versions in this module Expand all Collapse all v0 v0.114.7 Dec 9, 2023 Changes in this version + const HeaderName + const RevisionDefault + const RevisionPlaywright + var DefaultBrowserDir = filepath.Join(..., "rod", "browser") + var DefaultUserDataDirPrefix = filepath.Join(os.TempDir(), "rod", "user-data") + var ErrAlreadyLaunched = errors.New("already launched") + func HostGoogle(revision int) string + func HostNPM(revision int) string + func HostPlaywright(revision int) string + func LookPath() (found string, has bool) + func MustResolveURL(u string) string + func Open(url string) + func ResolveURL(u string) (string, error) + type Browser struct + Context context.Context + HTTPClient *http.Client + Hosts []Host + LockPort int + Logger utils.Logger + Revision int + RootDir string + func NewBrowser() *Browser + func (lc *Browser) BinPath() string + func (lc *Browser) Dir() string + func (lc *Browser) Download() error + func (lc *Browser) Get() (string, error) + func (lc *Browser) MustGet() string + func (lc *Browser) Validate() error + type Host func(revision int) string + type Launcher struct + Flags map[flags.Flag][]string + func MustNewManaged(serviceURL string) *Launcher + func New() *Launcher + func NewAppMode(u string) *Launcher + func NewManaged(serviceURL string) (*Launcher, error) + func NewUserMode() *Launcher + func (l *Launcher) Append(name flags.Flag, values ...string) *Launcher + func (l *Launcher) Bin(path string) *Launcher + func (l *Launcher) Cleanup() + func (l *Launcher) Client() (*cdp.Client, error) + func (l *Launcher) ClientHeader() (string, http.Header) + func (l *Launcher) Context(ctx context.Context) *Launcher + func (l *Launcher) Delete(name flags.Flag) *Launcher + func (l *Launcher) Devtools(autoOpenForTabs bool) *Launcher + func (l *Launcher) Env(env ...string) *Launcher + func (l *Launcher) FormatArgs() []string + func (l *Launcher) Get(name flags.Flag) string + func (l *Launcher) GetFlags(name flags.Flag) ([]string, bool) + func (l *Launcher) Has(name flags.Flag) bool + func (l *Launcher) Headless(enable bool) *Launcher + func (l *Launcher) IgnoreCerts(pks []crypto.PublicKey) error + func (l *Launcher) JSON() []byte + func (l *Launcher) KeepUserDataDir() *Launcher + func (l *Launcher) Kill() + func (l *Launcher) Launch() (string, error) + func (l *Launcher) Leakless(enable bool) *Launcher + func (l *Launcher) Logger(w io.Writer) *Launcher + func (l *Launcher) MustClient() *cdp.Client + func (l *Launcher) MustLaunch() string + func (l *Launcher) NoSandbox(enable bool) *Launcher + func (l *Launcher) PID() int + func (l *Launcher) Preferences(pref string) *Launcher + func (l *Launcher) ProfileDir(dir string) *Launcher + func (l *Launcher) Proxy(host string) *Launcher + func (l *Launcher) RemoteDebuggingPort(port int) *Launcher + func (l *Launcher) Revision(rev int) *Launcher + func (l *Launcher) Set(name flags.Flag, values ...string) *Launcher + func (l *Launcher) StartURL(u string) *Launcher + func (l *Launcher) UserDataDir(dir string) *Launcher + func (l *Launcher) WorkingDir(path string) *Launcher + func (l *Launcher) XVFB(args ...string) *Launcher + type Manager struct + BeforeLaunch func(*Launcher, http.ResponseWriter, *http.Request) + Defaults func(http.ResponseWriter, *http.Request) *Launcher + Logger utils.Logger + func NewManager() *Manager + func (m *Manager) ServeHTTP(w http.ResponseWriter, r *http.Request) + type URLParser struct + Buffer string + URL chan string + func NewURLParser() *URLParser + func (r *URLParser) Context(ctx context.Context) *URLParser + func (r *URLParser) Err() error + func (r *URLParser) Write(p []byte) (n int, err error)