README ¶ port of chrome launcher Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Launcher func New(opts Options) (*Launcher, error) func (l *Launcher) Ready() error func (l *Launcher) Run(bctx context.Context) error func (l *Launcher) Stop() error type Options func (o Options) Flags() []string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Launcher ¶ type Launcher struct { Opts Options Cmd *exec.Cmd // contains filtered or unexported fields } func New ¶ func New(opts Options) (*Launcher, error) func (*Launcher) Ready ¶ func (l *Launcher) Ready() error Ready should block until we chrome is up. This will return nil if all is well and an error otherwise. func (*Launcher) Run ¶ func (l *Launcher) Run(bctx context.Context) error func (*Launcher) Stop ¶ func (l *Launcher) Stop() error type Options ¶ type Options struct { StartingURL string ChromeFlags []string Port int ChromePath string IgnoreDefaultFlags bool UserDataDir string //The time taken to wait for chrome to be ready. WaitTimeout time.Duration Verbose bool } func (Options) Flags ¶ func (o Options) Flags() []string Source Files ¶ View all Source files chrome.go linux.go osx.go windows.go Click to show internal directories. Click to hide internal directories.