Documentation ¶
Index ¶
- Variables
- type Chrome
- type ChromeOption
- func AsFirefox() ChromeOption
- func CDPOptions(cdps ...chromedp.ExecAllocatorOption) ChromeOption
- func Headless(h bool) ChromeOption
- func MaxTabs(n int) ChromeOption
- func TabAcquireTimeout(d time.Duration) ChromeOption
- func UserAgentIfNotEmpty(uas ...string) ChromeOption
- func WindowSize(w, h int) ChromeOption
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMaxTabs is returned when the maximum number of tabs is reached ErrMaxTabs = fmt.Errorf("maximum number of tabs reached") ErrMaxTabsNotSet = fmt.Errorf("maximum number of tabs not set") )
Functions ¶
This section is empty.
Types ¶
type Chrome ¶
type Chrome struct { Cancel context.CancelFunc // contains filtered or unexported fields }
type ChromeOption ¶
func AsFirefox ¶
func AsFirefox() ChromeOption
func CDPOptions ¶
func CDPOptions(cdps ...chromedp.ExecAllocatorOption) ChromeOption
func Headless ¶
func Headless(h bool) ChromeOption
func MaxTabs ¶
func MaxTabs(n int) ChromeOption
func TabAcquireTimeout ¶
func TabAcquireTimeout(d time.Duration) ChromeOption
func UserAgentIfNotEmpty ¶
func UserAgentIfNotEmpty(uas ...string) ChromeOption
func WindowSize ¶
func WindowSize(w, h int) ChromeOption
Click to show internal directories.
Click to hide internal directories.