Documentation ¶
Overview ¶
Package defaults of commonly used options parsed from environment. Check ResetWithEnv for details.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Bin string
Bin is the default of launcher.Launcher.Bin
var CDP utils.Logger
CDP is the default of cdp.Client.Logger
var Devtools bool
Devtools is the default of launcher.Launcher.Devtools
var Dir string
Dir is the default of launcher.Launcher.UserDataDir
var Lock int
Lock is the default of launcher.Browser.Lock
var Monitor string
Monitor is the default of rod.Browser.ServeMonitor
var Port string
Port is the default of launcher.Launcher.RemoteDebuggingPort
var Proxy string
Proxy is the default of launcher.Launcher.Proxy
var Show bool
Show is the default of launcher.Launcher.Headless
var Slow time.Duration
Slow is the default of rod.Browser.Slowmotion The format is same as https://golang.org/pkg/time/#ParseDuration
var Trace bool
Trace is the default of rod.Browser.Trace
var URL string
URL is the default of cdp.Client.New
Functions ¶
func ResetWithEnv ¶ added in v0.54.0
func ResetWithEnv(env string)
ResetWithEnv set the default value of options used by rod. It will be called in an init() , so you don't have to call it manually. The followings will be parsed and merged, later overrides previous:
os.Open(".rod") os.Getenv("rod") env
Values are separated by commas, key and value are separated by "=", For example, on unix-like OS:
rod="show,trace,slow=1s,monitor" go run main.go rod="slow=1s,dir=path/has /space,monitor=:9223" go run main.go
An example of ".rod" file content:
slow=1s dir=path/has /space monitor=:9223
Types ¶
This section is empty.