Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLogger ¶
func InitLogger(isVerbose, isDebug bool)
Types ¶
type Browser ¶
type Browser struct {
BrowserOpts
// contains filtered or unexported fields
}
func NewBrowser ¶
func NewBrowser(opts BrowserOpts) (*Browser, error)
func (*Browser) IsInitialized ¶
Check whether browser instance is already created
type BrowserOpts ¶
type BrowserOpts struct {
IsHeadless bool // Use browser interface
IsLeakless bool // Force to kill browser
Timeout time.Duration // Timeout
LanguageCode string
WaitRequests bool // Wait requests to complete after navigation
LeavePageOpen bool // Leave pages and browser open
}
func (*BrowserOpts) Init ¶
func (o *BrowserOpts) Init()
Initialize browser parameters with default values if they are not set
type Query ¶
type SearchEngine ¶
type SearchEngine interface {
Search(Query) ([]SearchResult, error)
IsInitialized() bool
Name() string
}
type SearchResult ¶
Click to show internal directories.
Click to hide internal directories.