lorca

package
v0.0.0-...-f0d068a Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultChromeArgs = []string{
	"--remote-allow-origins=*",
}

Functions

This section is empty.

Types

type Browser

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

func NewBrowser

func NewBrowser(funcs ...OptionsFunc) *Browser

func (*Browser) Load

func (b *Browser) Load(url string) error

Load implements browser.Browser.

func (*Browser) Reset

func (b *Browser) Reset(url string) error

Unload implements browser.Browser.

func (*Browser) Start

func (b *Browser) Start() error

func (*Browser) Status

func (b *Browser) Status() (browser.Status, error)

Status implements browser.Browser.

func (*Browser) Stop

func (b *Browser) Stop() error

func (*Browser) Title

func (b *Browser) Title() (string, error)

Title implements browser.Browser.

func (*Browser) URL

func (b *Browser) URL() (string, error)

URL implements browser.Browser.

func (*Browser) Wait

func (b *Browser) Wait()

type Options

type Options struct {
	Width      int
	Height     int
	ChromeArgs []string
}

func NewOptions

func NewOptions(funcs ...OptionsFunc) *Options

type OptionsFunc

type OptionsFunc func(opts *Options)

func WithAdditionalChromeArgs

func WithAdditionalChromeArgs(args ...string) OptionsFunc

func WithWindowSize

func WithWindowSize(width, height int) OptionsFunc

Jump to

Keyboard shortcuts

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