Documentation
¶
Index ¶
- type BrowserPageCapturer
- func (b *BrowserPageCapturer) Capture(ctx context.Context, url string, options *Options) (*Result, error)
- func (b *BrowserPageCapturer) CaptureScreenshot(ctx context.Context, url string, options *Options) webscan.PageScreenshotReport
- func (b *BrowserPageCapturer) Close(ctx context.Context) error
- func (b *BrowserPageCapturer) InitializeBrowser()
- type BrowserbasePageCapturer
- func (b *BrowserbasePageCapturer) Capture(ctx context.Context, url string, options *Options) (*Result, error)
- func (b *BrowserbasePageCapturer) CaptureScreenshot(ctx context.Context, url string, options *Options) webscan.PageScreenshotReport
- func (b *BrowserbasePageCapturer) Close(ctx context.Context) error
- type Options
- type PageCapturer
- type RequestPageCapturer
- type Result
- type WebSocket
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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) CaptureScreenshot ¶
func (b *BrowserPageCapturer) CaptureScreenshot(ctx context.Context, url string, options *Options) webscan.PageScreenshotReport
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) CaptureScreenshot ¶ added in v0.0.26
func (b *BrowserbasePageCapturer) CaptureScreenshot(ctx context.Context, url string, options *Options) webscan.PageScreenshotReport
type PageCapturer ¶
type RequestPageCapturer ¶
func NewRequestPageCapturer ¶
func NewRequestPageCapturer(insecure bool, timeout int) *RequestPageCapturer
type Result ¶
type Result struct {
Content []byte `json:"content,omitempty" yaml:"content,omitempty"`
StatusCode *int `json:"statusCode,omitempty" yaml:"statusCode,omitempty"`
URL string `json:"url,omitempty" yaml:"url,omitempty"`
Errors []string `json:"errors,omitempty" yaml:"errors,omitempty"`
}
func NewCaptureResult ¶
func (*Result) ToPageCaptureReport ¶
func (r *Result) ToPageCaptureReport() webscan.PageCaptureReport
Click to show internal directories.
Click to hide internal directories.