Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dispatch ¶
func InitWithWC ¶
func InitWithWC(c *Config, wc *WorkerConfig) (*Dispatch, error)
func (*Dispatch) LoopWithRestart ¶
LoopWithRestart maintains a constant worker pool of `workerCount` workers.
type Worker ¶
type Worker struct { ID int // contains filtered or unexported fields }
func InitWorker ¶
func InitWorker(wc *WorkerConfig, id int, port int) (*Worker, func(), error)
type WorkerConfig ¶
type WorkerConfig struct { Port int // Dest must be a format string that includes Port. // ex: "http://localhost:%d/wd/hub" Dest string // SeleniumPath is the Selenium .jar. SeleniumPath string Caps selenium.Capabilities ServiceOpts []selenium.ServiceOption }
func DefaultWC ¶
func DefaultWC(browser BrowserType, path string) *WorkerConfig
DefaultWC gives reasonable defaults as selenium configs per browser for a worker.
Click to show internal directories.
Click to hide internal directories.