domstorage

package
v0.158.2 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 1 Imported by: 7

Documentation

Overview

Package domstorage provides the Chrome DevTools Protocol commands, types, and events for the DOMStorage domain.

Query and modify DOM storage.

Generated by the pdlgen command.

Index

Constants

View Source
const (
	CommandClear                = "DOMStorage.clear"
	CommandDisable              = "DOMStorage.disable"
	CommandEnable               = "DOMStorage.enable"
	CommandGetDOMStorageItems   = "DOMStorage.getDOMStorageItems"
	CommandRemoveDOMStorageItem = "DOMStorage.removeDOMStorageItem"
	CommandSetDOMStorageItem    = "DOMStorage.setDOMStorageItem"
)

Command names.

Variables

Clear [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#method-clear

View Source
var Disable = cdp.Command[cdp.Empty, cdp.Empty]{Method: CommandDisable}

Disable disables storage tracking, prevents storage events from being sent to the client.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#method-disable

View Source
var DomStorageItemAdded = cdp.Event[EventDomStorageItemAdded]{Method: "DOMStorage.domStorageItemAdded"}

DomStorageItemAdded [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#event-domStorageItemAdded

View Source
var DomStorageItemRemoved = cdp.Event[EventDomStorageItemRemoved]{Method: "DOMStorage.domStorageItemRemoved"}

DomStorageItemRemoved [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#event-domStorageItemRemoved

View Source
var DomStorageItemUpdated = cdp.Event[EventDomStorageItemUpdated]{Method: "DOMStorage.domStorageItemUpdated"}

DomStorageItemUpdated [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#event-domStorageItemUpdated

View Source
var DomStorageItemsCleared = cdp.Event[EventDomStorageItemsCleared]{Method: "DOMStorage.domStorageItemsCleared"}

DomStorageItemsCleared [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#event-domStorageItemsCleared

Enable enables storage tracking, storage events will now be delivered to the client.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#method-enable

GetDOMStorageItems [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#method-getDOMStorageItems

RemoveDOMStorageItem [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#method-removeDOMStorageItem

SetDOMStorageItem [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#method-setDOMStorageItem

Functions

This section is empty.

Types

type ClearParams

type ClearParams struct {
	StorageID *StorageID `json:"storageId"`
}

ClearParams are the parameters of the command DOMStorage.clear.

type EventDomStorageItemAdded

type EventDomStorageItemAdded struct {
	StorageID *StorageID `json:"storageId"`
	Key       string     `json:"key"`
	NewValue  string     `json:"newValue"`
}

EventDomStorageItemAdded [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#event-domStorageItemAdded

type EventDomStorageItemRemoved

type EventDomStorageItemRemoved struct {
	StorageID *StorageID `json:"storageId"`
	Key       string     `json:"key"`
}

EventDomStorageItemRemoved [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#event-domStorageItemRemoved

type EventDomStorageItemUpdated

type EventDomStorageItemUpdated struct {
	StorageID *StorageID `json:"storageId"`
	Key       string     `json:"key"`
	OldValue  string     `json:"oldValue"`
	NewValue  string     `json:"newValue"`
}

EventDomStorageItemUpdated [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#event-domStorageItemUpdated

type EventDomStorageItemsCleared

type EventDomStorageItemsCleared struct {
	StorageID *StorageID `json:"storageId"`
}

EventDomStorageItemsCleared [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#event-domStorageItemsCleared

type GetDOMStorageItemsParams

type GetDOMStorageItemsParams struct {
	StorageID *StorageID `json:"storageId"`
}

GetDOMStorageItemsParams are the parameters of the command DOMStorage.getDOMStorageItems.

type GetDOMStorageItemsResult added in v0.157.3

type GetDOMStorageItemsResult struct {
	Entries []Item `json:"entries,omitempty,omitzero"`
}

GetDOMStorageItemsResult is the result of the command DOMStorage.getDOMStorageItems.

type RemoveDOMStorageItemParams

type RemoveDOMStorageItemParams struct {
	StorageID *StorageID `json:"storageId"`
	Key       string     `json:"key"`
}

RemoveDOMStorageItemParams are the parameters of the command DOMStorage.removeDOMStorageItem.

type SerializedStorageKey

type SerializedStorageKey string

SerializedStorageKey [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#type-SerializedStorageKey

func (SerializedStorageKey) String

func (t SerializedStorageKey) String() string

String returns the SerializedStorageKey as string value.

type SetDOMStorageItemParams

type SetDOMStorageItemParams struct {
	StorageID *StorageID `json:"storageId"`
	Key       string     `json:"key"`
	Value     string     `json:"value"`
}

SetDOMStorageItemParams are the parameters of the command DOMStorage.setDOMStorageItem.

type StorageID

type StorageID struct {
	SecurityOrigin string               `json:"securityOrigin,omitempty,omitzero"` // Security origin for the storage.
	StorageKey     SerializedStorageKey `json:"storageKey,omitempty,omitzero"`     // Represents a key by which DOM Storage keys its CachedStorageAreas
	IsLocalStorage bool                 `json:"isLocalStorage"`                    // Whether the storage is local storage (not session storage).
}

StorageID DOM Storage identifier.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#type-StorageId

Jump to

Keyboard shortcuts

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