patcher

package
v0.0.0-...-66faa24 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Package patcher provides a patcher for the chromedriver.

Index

Constants

This section is empty.

Variables

View Source
var (

	// RequestTimeout is the HTTP request timeout.
	RequestTimeout = 15 * time.Second
)

Functions

This section is empty.

Types

type Patcher

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

Patcher provides methods to patch a chromedriver.

func New

func New(binaryPath string, version int) (Patcher, error)

New returns a new patcher instance.

binaryPath is an optional path to store write the patche binary to. version is the major chrome version driver to download and patch, e.g. '107'.

func (*Patcher) Patch

func (p *Patcher) Patch() (string, error)

Patch will download and patch the latest chromedriver for the specified major version. Returns patched binary path.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL