browser

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PAGE_TIMEOUT_DURATION = 40 * time.Second

	LOOPBACK_ADDRESS = "ws://127.0.0.1"
	LOOPBACK_PORT    = 9222
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Brand

type Brand string
const (
	UNKNOWN Brand = ""
	CHROME  Brand = "chrome"
	EDGE    Brand = "edge"
)

type Browser

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

func New

func New(config Config) (Browser, error)

func (*Browser) Run

func (b *Browser) Run(tasks func(page *rod.Page) error) error

type Config

type Config struct {
	FileManager       *storage.FileManager
	CustomBrowserPath string
	Headless          bool
	Proxy             Proxy
}

type OperatingSystem

type OperatingSystem string
const (
	LINUX   OperatingSystem = "linux"
	WINDOWS OperatingSystem = "windows"
	DARWIN  OperatingSystem = "darwin"
)

type Proxy added in v0.3.0

type Proxy struct {
	Address  string
	User     string
	Password string
}

Jump to

Keyboard shortcuts

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