pagecapture

package
v0.0.81 Latest Latest
Warning

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

Go to latest
Published: May 7, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPageCaptureReport

func NewPageCaptureReport(url string) *pagecapturefern.PageCaptureHtmlReport

Types

type BrowserPageCapturer

type BrowserPageCapturer struct {
	PathToBrowser              *string
	Browser                    *rod.Browser
	TimeoutSeconds             int
	MinDOMStabalizeTimeSeconds int
}

func NewBrowserPageCapturer

func NewBrowserPageCapturer(pathToBrowser *string, timeout int, minDOMStabalizeTime int) *BrowserPageCapturer

func NewBrowserPageCapturerWithClient

func NewBrowserPageCapturerWithClient(client *cdp.Client, timeout int, minDOMStabalizeTime int) *BrowserPageCapturer

func (*BrowserPageCapturer) Capture

func (*BrowserPageCapturer) CaptureScreenshot

func (*BrowserPageCapturer) Close

func (b *BrowserPageCapturer) Close(ctx context.Context) error

func (*BrowserPageCapturer) InitializeBrowser

func (b *BrowserPageCapturer) InitializeBrowser()

type BrowserbasePageCapturer

type BrowserbasePageCapturer struct {
	Client   *browserbase.Client
	Capturer *BrowserPageCapturer
}

func NewBrowserbasePageCapturer

func NewBrowserbasePageCapturer(
	ctx context.Context,
	timeout int,
	minDOMStabalizeTime int,
	browserbaseClient *browserbase.Client,
) *BrowserbasePageCapturer

func (*BrowserbasePageCapturer) Capture

func (*BrowserbasePageCapturer) CaptureScreenshot

func (*BrowserbasePageCapturer) Close

type Options

type Options struct{}

type RequestPageCapturer

type RequestPageCapturer struct {
	Client http.Client
}

func NewRequestPageCapturer

func NewRequestPageCapturer(insecure bool, timeout int) *RequestPageCapturer

func (*RequestPageCapturer) Capture

func (*RequestPageCapturer) Close

func (r *RequestPageCapturer) Close(ctx context.Context) error

type WebSocket

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

func NewWebSocket

func NewWebSocket(ctx context.Context, url string) *WebSocket

func (*WebSocket) Read

func (w *WebSocket) Read() ([]byte, error)

func (*WebSocket) Send

func (w *WebSocket) Send(b []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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