Versions in this module Expand all Collapse all v0 v0.0.4 Jun 30, 2024 Changes in this version + const CommandAddPrivacySandboxEnrollmentOverride + const CommandCancelDownload + const CommandClose + const CommandCrash + const CommandCrashGpuProcess + const CommandExecuteBrowserCommand + const CommandGetBrowserCommandLine + const CommandGetHistogram + const CommandGetHistograms + const CommandGetVersion + const CommandGetWindowBounds + const CommandGetWindowForTarget + const CommandGrantPermissions + const CommandResetPermissions + const CommandSetDockTile + const CommandSetDownloadBehavior + const CommandSetPermission + const CommandSetWindowBounds + type AddPrivacySandboxEnrollmentOverrideParams struct + URL string + func AddPrivacySandboxEnrollmentOverride(url string) *AddPrivacySandboxEnrollmentOverrideParams + func (p *AddPrivacySandboxEnrollmentOverrideParams) Do(ctx context.Context) (err error) + func (v *AddPrivacySandboxEnrollmentOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *AddPrivacySandboxEnrollmentOverrideParams) UnmarshalJSON(data []byte) error + func (v AddPrivacySandboxEnrollmentOverrideParams) MarshalEasyJSON(w *jwriter.Writer) + func (v AddPrivacySandboxEnrollmentOverrideParams) MarshalJSON() ([]byte, error) + type Bounds struct + Height int64 + Left int64 + Top int64 + Width int64 + WindowState WindowState + func (v *Bounds) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *Bounds) UnmarshalJSON(data []byte) error + func (v Bounds) MarshalEasyJSON(w *jwriter.Writer) + func (v Bounds) MarshalJSON() ([]byte, error) + type Bucket struct + Count int64 + High int64 + Low int64 + func (v *Bucket) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *Bucket) UnmarshalJSON(data []byte) error + func (v Bucket) MarshalEasyJSON(w *jwriter.Writer) + func (v Bucket) MarshalJSON() ([]byte, error) + type CancelDownloadParams struct + BrowserContextID cdp.BrowserContextID + GUID string + func CancelDownload(guid string) *CancelDownloadParams + func (p *CancelDownloadParams) Do(ctx context.Context) (err error) + func (p CancelDownloadParams) WithBrowserContextID(browserContextID cdp.BrowserContextID) *CancelDownloadParams + func (v *CancelDownloadParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *CancelDownloadParams) UnmarshalJSON(data []byte) error + func (v CancelDownloadParams) MarshalEasyJSON(w *jwriter.Writer) + func (v CancelDownloadParams) MarshalJSON() ([]byte, error) + type CloseParams struct + func Close() *CloseParams + func (p *CloseParams) Do(ctx context.Context) (err error) + func (v *CloseParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *CloseParams) UnmarshalJSON(data []byte) error + func (v CloseParams) MarshalEasyJSON(w *jwriter.Writer) + func (v CloseParams) MarshalJSON() ([]byte, error) + type CommandID string + const CommandIDCloseTabSearch + const CommandIDOpenTabSearch + func (t *CommandID) UnmarshalEasyJSON(in *jlexer.Lexer) + func (t *CommandID) UnmarshalJSON(buf []byte) error + func (t CommandID) MarshalEasyJSON(out *jwriter.Writer) + func (t CommandID) MarshalJSON() ([]byte, error) + func (t CommandID) String() string + type CrashGpuProcessParams struct + func CrashGpuProcess() *CrashGpuProcessParams + func (p *CrashGpuProcessParams) Do(ctx context.Context) (err error) + func (v *CrashGpuProcessParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *CrashGpuProcessParams) UnmarshalJSON(data []byte) error + func (v CrashGpuProcessParams) MarshalEasyJSON(w *jwriter.Writer) + func (v CrashGpuProcessParams) MarshalJSON() ([]byte, error) + type CrashParams struct + func Crash() *CrashParams + func (p *CrashParams) Do(ctx context.Context) (err error) + func (v *CrashParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *CrashParams) UnmarshalJSON(data []byte) error + func (v CrashParams) MarshalEasyJSON(w *jwriter.Writer) + func (v CrashParams) MarshalJSON() ([]byte, error) + type DownloadProgressState string + const DownloadProgressStateCanceled + const DownloadProgressStateCompleted + const DownloadProgressStateInProgress + func (t *DownloadProgressState) UnmarshalEasyJSON(in *jlexer.Lexer) + func (t *DownloadProgressState) UnmarshalJSON(buf []byte) error + func (t DownloadProgressState) MarshalEasyJSON(out *jwriter.Writer) + func (t DownloadProgressState) MarshalJSON() ([]byte, error) + func (t DownloadProgressState) String() string + type EventDownloadProgress struct + GUID string + ReceivedBytes float64 + State DownloadProgressState + TotalBytes float64 + func (v *EventDownloadProgress) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *EventDownloadProgress) UnmarshalJSON(data []byte) error + func (v EventDownloadProgress) MarshalEasyJSON(w *jwriter.Writer) + func (v EventDownloadProgress) MarshalJSON() ([]byte, error) + type EventDownloadWillBegin struct + FrameID cdp.FrameID + GUID string + SuggestedFilename string + URL string + func (v *EventDownloadWillBegin) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *EventDownloadWillBegin) UnmarshalJSON(data []byte) error + func (v EventDownloadWillBegin) MarshalEasyJSON(w *jwriter.Writer) + func (v EventDownloadWillBegin) MarshalJSON() ([]byte, error) + type ExecuteBrowserCommandParams struct + CommandID CommandID + func ExecuteBrowserCommand(commandID CommandID) *ExecuteBrowserCommandParams + func (p *ExecuteBrowserCommandParams) Do(ctx context.Context) (err error) + func (v *ExecuteBrowserCommandParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *ExecuteBrowserCommandParams) UnmarshalJSON(data []byte) error + func (v ExecuteBrowserCommandParams) MarshalEasyJSON(w *jwriter.Writer) + func (v ExecuteBrowserCommandParams) MarshalJSON() ([]byte, error) + type GetBrowserCommandLineParams struct + func GetBrowserCommandLine() *GetBrowserCommandLineParams + func (p *GetBrowserCommandLineParams) Do(ctx context.Context) (arguments []string, err error) + func (v *GetBrowserCommandLineParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetBrowserCommandLineParams) UnmarshalJSON(data []byte) error + func (v GetBrowserCommandLineParams) MarshalEasyJSON(w *jwriter.Writer) + func (v GetBrowserCommandLineParams) MarshalJSON() ([]byte, error) + type GetBrowserCommandLineReturns struct + Arguments []string + func (v *GetBrowserCommandLineReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetBrowserCommandLineReturns) UnmarshalJSON(data []byte) error + func (v GetBrowserCommandLineReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v GetBrowserCommandLineReturns) MarshalJSON() ([]byte, error) + type GetHistogramParams struct + Delta bool + Name string + func GetHistogram(name string) *GetHistogramParams + func (p *GetHistogramParams) Do(ctx context.Context) (histogram *Histogram, err error) + func (p GetHistogramParams) WithDelta(delta bool) *GetHistogramParams + func (v *GetHistogramParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetHistogramParams) UnmarshalJSON(data []byte) error + func (v GetHistogramParams) MarshalEasyJSON(w *jwriter.Writer) + func (v GetHistogramParams) MarshalJSON() ([]byte, error) + type GetHistogramReturns struct + Histogram *Histogram + func (v *GetHistogramReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetHistogramReturns) UnmarshalJSON(data []byte) error + func (v GetHistogramReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v GetHistogramReturns) MarshalJSON() ([]byte, error) + type GetHistogramsParams struct + Delta bool + Query string + func GetHistograms() *GetHistogramsParams + func (p *GetHistogramsParams) Do(ctx context.Context) (histograms []*Histogram, err error) + func (p GetHistogramsParams) WithDelta(delta bool) *GetHistogramsParams + func (p GetHistogramsParams) WithQuery(query string) *GetHistogramsParams + func (v *GetHistogramsParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetHistogramsParams) UnmarshalJSON(data []byte) error + func (v GetHistogramsParams) MarshalEasyJSON(w *jwriter.Writer) + func (v GetHistogramsParams) MarshalJSON() ([]byte, error) + type GetHistogramsReturns struct + Histograms []*Histogram + func (v *GetHistogramsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetHistogramsReturns) UnmarshalJSON(data []byte) error + func (v GetHistogramsReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v GetHistogramsReturns) MarshalJSON() ([]byte, error) + type GetVersionParams struct + func GetVersion() *GetVersionParams + func (p *GetVersionParams) Do(ctx context.Context) (protocolVersion string, product string, revision string, userAgent string, ...) + func (v *GetVersionParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetVersionParams) UnmarshalJSON(data []byte) error + func (v GetVersionParams) MarshalEasyJSON(w *jwriter.Writer) + func (v GetVersionParams) MarshalJSON() ([]byte, error) + type GetVersionReturns struct + JsVersion string + Product string + ProtocolVersion string + Revision string + UserAgent string + func (v *GetVersionReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetVersionReturns) UnmarshalJSON(data []byte) error + func (v GetVersionReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v GetVersionReturns) MarshalJSON() ([]byte, error) + type GetWindowBoundsParams struct + WindowID WindowID + func GetWindowBounds(windowID WindowID) *GetWindowBoundsParams + func (p *GetWindowBoundsParams) Do(ctx context.Context) (bounds *Bounds, err error) + func (v *GetWindowBoundsParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetWindowBoundsParams) UnmarshalJSON(data []byte) error + func (v GetWindowBoundsParams) MarshalEasyJSON(w *jwriter.Writer) + func (v GetWindowBoundsParams) MarshalJSON() ([]byte, error) + type GetWindowBoundsReturns struct + Bounds *Bounds + func (v *GetWindowBoundsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetWindowBoundsReturns) UnmarshalJSON(data []byte) error + func (v GetWindowBoundsReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v GetWindowBoundsReturns) MarshalJSON() ([]byte, error) + type GetWindowForTargetParams struct + TargetID target.ID + func GetWindowForTarget() *GetWindowForTargetParams + func (p *GetWindowForTargetParams) Do(ctx context.Context) (windowID WindowID, bounds *Bounds, err error) + func (p GetWindowForTargetParams) WithTargetID(targetID target.ID) *GetWindowForTargetParams + func (v *GetWindowForTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetWindowForTargetParams) UnmarshalJSON(data []byte) error + func (v GetWindowForTargetParams) MarshalEasyJSON(w *jwriter.Writer) + func (v GetWindowForTargetParams) MarshalJSON() ([]byte, error) + type GetWindowForTargetReturns struct + Bounds *Bounds + WindowID WindowID + func (v *GetWindowForTargetReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetWindowForTargetReturns) UnmarshalJSON(data []byte) error + func (v GetWindowForTargetReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v GetWindowForTargetReturns) MarshalJSON() ([]byte, error) + type GrantPermissionsParams struct + BrowserContextID cdp.BrowserContextID + Origin string + Permissions []PermissionType + func GrantPermissions(permissions []PermissionType) *GrantPermissionsParams + func (p *GrantPermissionsParams) Do(ctx context.Context) (err error) + func (p GrantPermissionsParams) WithBrowserContextID(browserContextID cdp.BrowserContextID) *GrantPermissionsParams + func (p GrantPermissionsParams) WithOrigin(origin string) *GrantPermissionsParams + func (v *GrantPermissionsParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GrantPermissionsParams) UnmarshalJSON(data []byte) error + func (v GrantPermissionsParams) MarshalEasyJSON(w *jwriter.Writer) + func (v GrantPermissionsParams) MarshalJSON() ([]byte, error) + type Histogram struct + Buckets []*Bucket + Count int64 + Name string + Sum int64 + func (v *Histogram) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *Histogram) UnmarshalJSON(data []byte) error + func (v Histogram) MarshalEasyJSON(w *jwriter.Writer) + func (v Histogram) MarshalJSON() ([]byte, error) + type PermissionDescriptor struct + AllowWithoutGesture bool + AllowWithoutSanitization bool + Name string + PanTiltZoom bool + Sysex bool + UserVisibleOnly bool + func (v *PermissionDescriptor) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *PermissionDescriptor) UnmarshalJSON(data []byte) error + func (v PermissionDescriptor) MarshalEasyJSON(w *jwriter.Writer) + func (v PermissionDescriptor) MarshalJSON() ([]byte, error) + type PermissionSetting string + const PermissionSettingDenied + const PermissionSettingGranted + const PermissionSettingPrompt + func (t *PermissionSetting) UnmarshalEasyJSON(in *jlexer.Lexer) + func (t *PermissionSetting) UnmarshalJSON(buf []byte) error + func (t PermissionSetting) MarshalEasyJSON(out *jwriter.Writer) + func (t PermissionSetting) MarshalJSON() ([]byte, error) + func (t PermissionSetting) String() string + type PermissionType string + const PermissionTypeAccessibilityEvents + const PermissionTypeAudioCapture + const PermissionTypeBackgroundFetch + const PermissionTypeBackgroundSync + const PermissionTypeCapturedSurfaceControl + const PermissionTypeClipboardReadWrite + const PermissionTypeClipboardSanitizedWrite + const PermissionTypeDisplayCapture + const PermissionTypeDurableStorage + const PermissionTypeFlash + const PermissionTypeGeolocation + const PermissionTypeIdleDetection + const PermissionTypeLocalFonts + const PermissionTypeMidi + const PermissionTypeMidiSysex + const PermissionTypeNfc + const PermissionTypeNotifications + const PermissionTypePaymentHandler + const PermissionTypePeriodicBackgroundSync + const PermissionTypeProtectedMediaIdentifier + const PermissionTypeSensors + const PermissionTypeSpeakerSelection + const PermissionTypeStorageAccess + const PermissionTypeTopLevelStorageAccess + const PermissionTypeVideoCapture + const PermissionTypeVideoCapturePanTiltZoom + const PermissionTypeWakeLockScreen + const PermissionTypeWakeLockSystem + const PermissionTypeWindowManagement + func (t *PermissionType) UnmarshalEasyJSON(in *jlexer.Lexer) + func (t *PermissionType) UnmarshalJSON(buf []byte) error + func (t PermissionType) MarshalEasyJSON(out *jwriter.Writer) + func (t PermissionType) MarshalJSON() ([]byte, error) + func (t PermissionType) String() string + type ResetPermissionsParams struct + BrowserContextID cdp.BrowserContextID + func ResetPermissions() *ResetPermissionsParams + func (p *ResetPermissionsParams) Do(ctx context.Context) (err error) + func (p ResetPermissionsParams) WithBrowserContextID(browserContextID cdp.BrowserContextID) *ResetPermissionsParams + func (v *ResetPermissionsParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *ResetPermissionsParams) UnmarshalJSON(data []byte) error + func (v ResetPermissionsParams) MarshalEasyJSON(w *jwriter.Writer) + func (v ResetPermissionsParams) MarshalJSON() ([]byte, error) + type SetDockTileParams struct + BadgeLabel string + Image string + func SetDockTile() *SetDockTileParams + func (p *SetDockTileParams) Do(ctx context.Context) (err error) + func (p SetDockTileParams) WithBadgeLabel(badgeLabel string) *SetDockTileParams + func (p SetDockTileParams) WithImage(image string) *SetDockTileParams + func (v *SetDockTileParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SetDockTileParams) UnmarshalJSON(data []byte) error + func (v SetDockTileParams) MarshalEasyJSON(w *jwriter.Writer) + func (v SetDockTileParams) MarshalJSON() ([]byte, error) + type SetDownloadBehaviorBehavior string + const SetDownloadBehaviorBehaviorAllow + const SetDownloadBehaviorBehaviorAllowAndName + const SetDownloadBehaviorBehaviorDefault + const SetDownloadBehaviorBehaviorDeny + func (t *SetDownloadBehaviorBehavior) UnmarshalEasyJSON(in *jlexer.Lexer) + func (t *SetDownloadBehaviorBehavior) UnmarshalJSON(buf []byte) error + func (t SetDownloadBehaviorBehavior) MarshalEasyJSON(out *jwriter.Writer) + func (t SetDownloadBehaviorBehavior) MarshalJSON() ([]byte, error) + func (t SetDownloadBehaviorBehavior) String() string + type SetDownloadBehaviorParams struct + Behavior SetDownloadBehaviorBehavior + BrowserContextID cdp.BrowserContextID + DownloadPath string + EventsEnabled bool + func SetDownloadBehavior(behavior SetDownloadBehaviorBehavior) *SetDownloadBehaviorParams + func (p *SetDownloadBehaviorParams) Do(ctx context.Context) (err error) + func (p SetDownloadBehaviorParams) WithBrowserContextID(browserContextID cdp.BrowserContextID) *SetDownloadBehaviorParams + func (p SetDownloadBehaviorParams) WithDownloadPath(downloadPath string) *SetDownloadBehaviorParams + func (p SetDownloadBehaviorParams) WithEventsEnabled(eventsEnabled bool) *SetDownloadBehaviorParams + func (v *SetDownloadBehaviorParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SetDownloadBehaviorParams) UnmarshalJSON(data []byte) error + func (v SetDownloadBehaviorParams) MarshalEasyJSON(w *jwriter.Writer) + func (v SetDownloadBehaviorParams) MarshalJSON() ([]byte, error) + type SetPermissionParams struct + BrowserContextID cdp.BrowserContextID + Origin string + Permission *PermissionDescriptor + Setting PermissionSetting + func SetPermission(permission *PermissionDescriptor, setting PermissionSetting) *SetPermissionParams + func (p *SetPermissionParams) Do(ctx context.Context) (err error) + func (p SetPermissionParams) WithBrowserContextID(browserContextID cdp.BrowserContextID) *SetPermissionParams + func (p SetPermissionParams) WithOrigin(origin string) *SetPermissionParams + func (v *SetPermissionParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SetPermissionParams) UnmarshalJSON(data []byte) error + func (v SetPermissionParams) MarshalEasyJSON(w *jwriter.Writer) + func (v SetPermissionParams) MarshalJSON() ([]byte, error) + type SetWindowBoundsParams struct + Bounds *Bounds + WindowID WindowID + func SetWindowBounds(windowID WindowID, bounds *Bounds) *SetWindowBoundsParams + func (p *SetWindowBoundsParams) Do(ctx context.Context) (err error) + func (v *SetWindowBoundsParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SetWindowBoundsParams) UnmarshalJSON(data []byte) error + func (v SetWindowBoundsParams) MarshalEasyJSON(w *jwriter.Writer) + func (v SetWindowBoundsParams) MarshalJSON() ([]byte, error) + type WindowID int64 + func (t WindowID) Int64() int64 + type WindowState string + const WindowStateFullscreen + const WindowStateMaximized + const WindowStateMinimized + const WindowStateNormal + func (t *WindowState) UnmarshalEasyJSON(in *jlexer.Lexer) + func (t *WindowState) UnmarshalJSON(buf []byte) error + func (t WindowState) MarshalEasyJSON(out *jwriter.Writer) + func (t WindowState) MarshalJSON() ([]byte, error) + func (t WindowState) String() string