errorpage

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PageWithOnError

type PageWithOnError struct {
	rod.Page
	OnError func(p *PageWithOnError)
	// contains filtered or unexported fields
}

func New

func New(page *rod.Page, onErrorFunc func(p *PageWithOnError)) *PageWithOnError

New has all of the functions of a rod errorpage, but if you call WithTimeout, it will call OnError and close the errorpage if the timeout is reached.

func (*PageWithOnError) CancelTimeout

func (p *PageWithOnError) CancelTimeout() *PageWithOnError

func (*PageWithOnError) WithTimeout

func (p *PageWithOnError) WithTimeout(d time.Duration) *PageWithOnError

Jump to

Keyboard shortcuts

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