geckodriver

package
v0.0.0-...-b78158d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hook

type Hook func(pid int)

type LogLevel

type LogLevel string
const (
	Fatal   LogLevel = "fatal"
	Error   LogLevel = "error"
	Warning LogLevel = "warn"
	Info    LogLevel = "info"
	Config  LogLevel = "config"
	Debug   LogLevel = "debug"
	Trace   LogLevel = "trace"
)

func (LogLevel) Validate

func (ll LogLevel) Validate() error

type Option

type Option func(cd *Process)

func WithBinary

func WithBinary(bin string) Option

func WithConnExisting

func WithConnExisting() Option

func WithHost

func WithHost(host string) Option

func WithJsDebugger

func WithJsDebugger() Option

func WithLogLevel

func WithLogLevel(ll LogLevel) Option

func WithMarionetteHost

func WithMarionetteHost(host string) Option

func WithMarionettePort

func WithMarionettePort(port int) Option

func WithPort

func WithPort(port int) Option

func WithRunHook

func WithRunHook(hook Hook) Option

func WithShowVersion

func WithShowVersion() Option

func WithStderr

func WithStderr(writer io.Writer) Option

func WithStdout

func WithStdout(writer io.Writer) Option

func WithStopHook

func WithStopHook(hook Hook) Option

func WithVerbose

func WithVerbose() Option

type Process

type Process struct {
	// contains filtered or unexported fields
}

func New

func New(bin string, opts ...Option) (*Process, error)

New returns a new instance of Process.

func (*Process) Args

func (d *Process) Args() []string

func (*Process) Run

func (d *Process) Run(ctx context.Context) error

func (*Process) Stop

func (d *Process) Stop(_ context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳