import "github.com/chromedp/cdproto/domstorage"
Package domstorage provides the Chrome DevTools Protocol commands, types, and events for the DOMStorage domain.
Query and modify DOM storage.
Generated by the cdproto-gen command.
domstorage.go easyjson.go events.go types.go
const ( CommandClear = "DOMStorage.clear" CommandDisable = "DOMStorage.disable" CommandEnable = "DOMStorage.enable" CommandGetDOMStorageItems = "DOMStorage.getDOMStorageItems" CommandRemoveDOMStorageItem = "DOMStorage.removeDOMStorageItem" CommandSetDOMStorageItem = "DOMStorage.setDOMStorageItem" )
Command names.
ClearParams [no description].
func Clear(storageID *StorageID) *ClearParams
Clear [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#method-clear
parameters:
storageID
func (p *ClearParams) Do(ctx context.Context) (err error)
Do executes DOMStorage.clear against the provided context.
func (v ClearParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v ClearParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *ClearParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *ClearParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type DisableParams struct{}
DisableParams disables storage tracking, prevents storage events from being sent to the client.
func Disable() *DisableParams
Disable disables storage tracking, prevents storage events from being sent to the client.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#method-disable
func (p *DisableParams) Do(ctx context.Context) (err error)
Do executes DOMStorage.disable against the provided context.
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v DisableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *DisableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EnableParams struct{}
EnableParams enables storage tracking, storage events will now be delivered to the client.
func Enable() *EnableParams
Enable enables storage tracking, storage events will now be delivered to the client.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#method-enable
func (p *EnableParams) Do(ctx context.Context) (err error)
Do executes DOMStorage.enable against the provided context.
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EnableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EnableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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
func (v EventDomStorageItemAdded) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventDomStorageItemAdded) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EventDomStorageItemAdded) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventDomStorageItemAdded) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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
func (v EventDomStorageItemRemoved) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventDomStorageItemRemoved) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EventDomStorageItemRemoved) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventDomStorageItemRemoved) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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
func (v EventDomStorageItemUpdated) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventDomStorageItemUpdated) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EventDomStorageItemUpdated) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventDomStorageItemUpdated) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
EventDomStorageItemsCleared [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#event-domStorageItemsCleared
func (v EventDomStorageItemsCleared) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventDomStorageItemsCleared) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EventDomStorageItemsCleared) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventDomStorageItemsCleared) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
GetDOMStorageItemsParams [no description].
func GetDOMStorageItems(storageID *StorageID) *GetDOMStorageItemsParams
GetDOMStorageItems [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#method-getDOMStorageItems
parameters:
storageID
Do executes DOMStorage.getDOMStorageItems against the provided context.
returns:
entries
func (v GetDOMStorageItemsParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetDOMStorageItemsParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetDOMStorageItemsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetDOMStorageItemsParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
GetDOMStorageItemsReturns return values.
func (v GetDOMStorageItemsReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetDOMStorageItemsReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetDOMStorageItemsReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetDOMStorageItemsReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
Item DOM Storage item.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#type-Item
type RemoveDOMStorageItemParams struct { StorageID *StorageID `json:"storageId"` Key string `json:"key"` }
RemoveDOMStorageItemParams [no description].
func RemoveDOMStorageItem(storageID *StorageID, key string) *RemoveDOMStorageItemParams
RemoveDOMStorageItem [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#method-removeDOMStorageItem
parameters:
storageID key
func (p *RemoveDOMStorageItemParams) Do(ctx context.Context) (err error)
Do executes DOMStorage.removeDOMStorageItem against the provided context.
func (v RemoveDOMStorageItemParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v RemoveDOMStorageItemParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *RemoveDOMStorageItemParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *RemoveDOMStorageItemParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetDOMStorageItemParams struct { StorageID *StorageID `json:"storageId"` Key string `json:"key"` Value string `json:"value"` }
SetDOMStorageItemParams [no description].
func SetDOMStorageItem(storageID *StorageID, key string, value string) *SetDOMStorageItemParams
SetDOMStorageItem [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#method-setDOMStorageItem
parameters:
storageID key value
func (p *SetDOMStorageItemParams) Do(ctx context.Context) (err error)
Do executes DOMStorage.setDOMStorageItem against the provided context.
func (v SetDOMStorageItemParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetDOMStorageItemParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *SetDOMStorageItemParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetDOMStorageItemParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type StorageID struct { SecurityOrigin string `json:"securityOrigin"` // Security origin for the storage. 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
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
Package domstorage imports 6 packages (graph) and is imported by 3 packages. Updated 2021-01-08. Refresh now. Tools for package owners.