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 cdproto-gen command.
Index ¶
- Constants
- type ClearParams
- type DisableParams
- type EnableParams
- type EventDomStorageItemAdded
- type EventDomStorageItemRemoved
- type EventDomStorageItemUpdated
- type EventDomStorageItemsCleared
- type GetDOMStorageItemsParams
- func (p *GetDOMStorageItemsParams) Do(ctx context.Context) (entries []Item, err error)
- func (v GetDOMStorageItemsParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetDOMStorageItemsParams) MarshalJSON() ([]byte, error)
- func (v *GetDOMStorageItemsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetDOMStorageItemsParams) UnmarshalJSON(data []byte) error
- type GetDOMStorageItemsReturns
- type Item
- type RemoveDOMStorageItemParams
- func (p *RemoveDOMStorageItemParams) Do(ctx context.Context) (err error)
- func (v RemoveDOMStorageItemParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v RemoveDOMStorageItemParams) MarshalJSON() ([]byte, error)
- func (v *RemoveDOMStorageItemParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *RemoveDOMStorageItemParams) UnmarshalJSON(data []byte) error
- type SerializedStorageKey
- type SetDOMStorageItemParams
- func (p *SetDOMStorageItemParams) Do(ctx context.Context) (err error)
- func (v SetDOMStorageItemParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetDOMStorageItemParams) MarshalJSON() ([]byte, error)
- func (v *SetDOMStorageItemParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetDOMStorageItemParams) UnmarshalJSON(data []byte) error
- type StorageID
Constants ¶
const ( CommandClear = "DOMStorage.clear" CommandDisable = "DOMStorage.disable" CommandEnable = "DOMStorage.enable" CommandGetDOMStorageItems = "DOMStorage.getDOMStorageItems" CommandRemoveDOMStorageItem = "DOMStorage.removeDOMStorageItem" CommandSetDOMStorageItem = "DOMStorage.setDOMStorageItem" )
Command names.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClearParams ¶
type ClearParams struct {
StorageID *StorageID `json:"storageId"`
}
ClearParams [no description].
func Clear ¶
func Clear(storageID *StorageID) *ClearParams
Clear [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#method-clear
parameters:
storageID
func (*ClearParams) Do ¶
func (p *ClearParams) Do(ctx context.Context) (err error)
Do executes DOMStorage.clear against the provided context.
func (ClearParams) MarshalEasyJSON ¶
func (v ClearParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ClearParams) MarshalJSON ¶
func (v ClearParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ClearParams) UnmarshalEasyJSON ¶
func (v *ClearParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ClearParams) UnmarshalJSON ¶
func (v *ClearParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type DisableParams ¶
type DisableParams struct{}
DisableParams disables storage tracking, prevents storage events from being sent to the client.
func Disable ¶
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 (*DisableParams) Do ¶
func (p *DisableParams) Do(ctx context.Context) (err error)
Do executes DOMStorage.disable against the provided context.
func (DisableParams) MarshalEasyJSON ¶
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (DisableParams) MarshalJSON ¶
func (v DisableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*DisableParams) UnmarshalEasyJSON ¶
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*DisableParams) UnmarshalJSON ¶
func (v *DisableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EnableParams ¶
type EnableParams struct{}
EnableParams enables storage tracking, storage events will now be delivered to the client.
func Enable ¶
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 (*EnableParams) Do ¶
func (p *EnableParams) Do(ctx context.Context) (err error)
Do executes DOMStorage.enable against the provided context.
func (EnableParams) MarshalEasyJSON ¶
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EnableParams) MarshalJSON ¶
func (v EnableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EnableParams) UnmarshalEasyJSON ¶
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EnableParams) UnmarshalJSON ¶
func (v *EnableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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
func (EventDomStorageItemAdded) MarshalEasyJSON ¶
func (v EventDomStorageItemAdded) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventDomStorageItemAdded) MarshalJSON ¶
func (v EventDomStorageItemAdded) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventDomStorageItemAdded) UnmarshalEasyJSON ¶
func (v *EventDomStorageItemAdded) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventDomStorageItemAdded) UnmarshalJSON ¶
func (v *EventDomStorageItemAdded) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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
func (EventDomStorageItemRemoved) MarshalEasyJSON ¶
func (v EventDomStorageItemRemoved) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventDomStorageItemRemoved) MarshalJSON ¶
func (v EventDomStorageItemRemoved) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventDomStorageItemRemoved) UnmarshalEasyJSON ¶
func (v *EventDomStorageItemRemoved) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventDomStorageItemRemoved) UnmarshalJSON ¶
func (v *EventDomStorageItemRemoved) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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
func (EventDomStorageItemUpdated) MarshalEasyJSON ¶
func (v EventDomStorageItemUpdated) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventDomStorageItemUpdated) MarshalJSON ¶
func (v EventDomStorageItemUpdated) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventDomStorageItemUpdated) UnmarshalEasyJSON ¶
func (v *EventDomStorageItemUpdated) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventDomStorageItemUpdated) UnmarshalJSON ¶
func (v *EventDomStorageItemUpdated) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventDomStorageItemsCleared ¶
type EventDomStorageItemsCleared struct {
StorageID *StorageID `json:"storageId"`
}
EventDomStorageItemsCleared [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#event-domStorageItemsCleared
func (EventDomStorageItemsCleared) MarshalEasyJSON ¶
func (v EventDomStorageItemsCleared) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventDomStorageItemsCleared) MarshalJSON ¶
func (v EventDomStorageItemsCleared) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventDomStorageItemsCleared) UnmarshalEasyJSON ¶
func (v *EventDomStorageItemsCleared) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventDomStorageItemsCleared) UnmarshalJSON ¶
func (v *EventDomStorageItemsCleared) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetDOMStorageItemsParams ¶
type GetDOMStorageItemsParams struct {
StorageID *StorageID `json:"storageId"`
}
GetDOMStorageItemsParams [no description].
func GetDOMStorageItems ¶
func GetDOMStorageItems(storageID *StorageID) *GetDOMStorageItemsParams
GetDOMStorageItems [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#method-getDOMStorageItems
parameters:
storageID
func (*GetDOMStorageItemsParams) Do ¶
func (p *GetDOMStorageItemsParams) Do(ctx context.Context) (entries []Item, err error)
Do executes DOMStorage.getDOMStorageItems against the provided context.
returns:
entries
func (GetDOMStorageItemsParams) MarshalEasyJSON ¶
func (v GetDOMStorageItemsParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetDOMStorageItemsParams) MarshalJSON ¶
func (v GetDOMStorageItemsParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetDOMStorageItemsParams) UnmarshalEasyJSON ¶
func (v *GetDOMStorageItemsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetDOMStorageItemsParams) UnmarshalJSON ¶
func (v *GetDOMStorageItemsParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetDOMStorageItemsReturns ¶
type GetDOMStorageItemsReturns struct {
Entries []Item `json:"entries,omitempty"`
}
GetDOMStorageItemsReturns return values.
func (GetDOMStorageItemsReturns) MarshalEasyJSON ¶
func (v GetDOMStorageItemsReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetDOMStorageItemsReturns) MarshalJSON ¶
func (v GetDOMStorageItemsReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetDOMStorageItemsReturns) UnmarshalEasyJSON ¶
func (v *GetDOMStorageItemsReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetDOMStorageItemsReturns) UnmarshalJSON ¶
func (v *GetDOMStorageItemsReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Item ¶
type Item []string
Item DOM Storage item.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage#type-Item
type RemoveDOMStorageItemParams ¶
type RemoveDOMStorageItemParams struct { StorageID *StorageID `json:"storageId"` Key string `json:"key"` }
RemoveDOMStorageItemParams [no description].
func RemoveDOMStorageItem ¶
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 (*RemoveDOMStorageItemParams) Do ¶
func (p *RemoveDOMStorageItemParams) Do(ctx context.Context) (err error)
Do executes DOMStorage.removeDOMStorageItem against the provided context.
func (RemoveDOMStorageItemParams) MarshalEasyJSON ¶
func (v RemoveDOMStorageItemParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (RemoveDOMStorageItemParams) MarshalJSON ¶
func (v RemoveDOMStorageItemParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*RemoveDOMStorageItemParams) UnmarshalEasyJSON ¶
func (v *RemoveDOMStorageItemParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RemoveDOMStorageItemParams) UnmarshalJSON ¶
func (v *RemoveDOMStorageItemParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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 [no description].
func SetDOMStorageItem ¶
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 (*SetDOMStorageItemParams) Do ¶
func (p *SetDOMStorageItemParams) Do(ctx context.Context) (err error)
Do executes DOMStorage.setDOMStorageItem against the provided context.
func (SetDOMStorageItemParams) MarshalEasyJSON ¶
func (v SetDOMStorageItemParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetDOMStorageItemParams) MarshalJSON ¶
func (v SetDOMStorageItemParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetDOMStorageItemParams) UnmarshalEasyJSON ¶
func (v *SetDOMStorageItemParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetDOMStorageItemParams) UnmarshalJSON ¶
func (v *SetDOMStorageItemParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type StorageID ¶
type StorageID struct { SecurityOrigin string `json:"securityOrigin,omitempty"` // Security origin for the storage. StorageKey SerializedStorageKey `json:"storageKey,omitempty"` // 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
func (StorageID) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (StorageID) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*StorageID) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*StorageID) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface