chrome

package
v0.2.37 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChromeProgram

func NewChromeProgram(params *ChromeParams) *executor.ConsoleProgram

Types

type ChromeExec

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

func NewChromeExec

func NewChromeExec() *ChromeExec

func (*ChromeExec) GetDir

func (instance *ChromeExec) GetDir() string

func (*ChromeExec) Open

func (instance *ChromeExec) Open(url string) error

func (*ChromeExec) OpenApp

func (instance *ChromeExec) OpenApp(url string) error

func (*ChromeExec) OpenBrowser

func (instance *ChromeExec) OpenBrowser(url string) error

func (*ChromeExec) Params

func (instance *ChromeExec) Params() *ChromeParams

func (*ChromeExec) Pid

func (instance *ChromeExec) Pid() int

func (*ChromeExec) SetDir

func (instance *ChromeExec) SetDir(dir string)

func (*ChromeExec) TryKill

func (instance *ChromeExec) TryKill() error

type ChromeParams

type ChromeParams struct {
	Url         string
	AppMode     bool
	WindowSize  string // fmt.Sprintf("%d,%d", width, height)
	DisableGPU  bool
	UserAgent   string
	ProxyServer string
}

https://peter.sh/experiments/chromium-command-line-switches/

Jump to

Keyboard shortcuts

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