cdproto: github.com/chromedp/cdproto/domstorage Index | Files

package domstorage

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.

Index

Package Files

domstorage.go easyjson.go events.go types.go

Constants

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

Command names.

type ClearParams Uses

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

ClearParams [no description].

func Clear Uses

func Clear(storageID *StorageID) *ClearParams

Clear [no description].

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

parameters:

storageID

func (*ClearParams) Do Uses

func (p *ClearParams) Do(ctx context.Context) (err error)

Do executes DOMStorage.clear against the provided context.

func (ClearParams) MarshalEasyJSON Uses

func (v ClearParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ClearParams) MarshalJSON Uses

func (v ClearParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ClearParams) UnmarshalEasyJSON Uses

func (v *ClearParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ClearParams) UnmarshalJSON Uses

func (v *ClearParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DisableParams Uses

type DisableParams struct{}

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

func Disable Uses

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 Uses

func (p *DisableParams) Do(ctx context.Context) (err error)

Do executes DOMStorage.disable against the provided context.

func (DisableParams) MarshalEasyJSON Uses

func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON Uses

func (v DisableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON Uses

func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON Uses

func (v *DisableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EnableParams Uses

type EnableParams struct{}

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

func Enable Uses

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 Uses

func (p *EnableParams) Do(ctx context.Context) (err error)

Do executes DOMStorage.enable against the provided context.

func (EnableParams) MarshalEasyJSON Uses

func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON Uses

func (v EnableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON Uses

func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON Uses

func (v *EnableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventDomStorageItemAdded Uses

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 Uses

func (v EventDomStorageItemAdded) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventDomStorageItemAdded) MarshalJSON Uses

func (v EventDomStorageItemAdded) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventDomStorageItemAdded) UnmarshalEasyJSON Uses

func (v *EventDomStorageItemAdded) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventDomStorageItemAdded) UnmarshalJSON Uses

func (v *EventDomStorageItemAdded) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventDomStorageItemRemoved Uses

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 Uses

func (v EventDomStorageItemRemoved) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventDomStorageItemRemoved) MarshalJSON Uses

func (v EventDomStorageItemRemoved) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventDomStorageItemRemoved) UnmarshalEasyJSON Uses

func (v *EventDomStorageItemRemoved) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventDomStorageItemRemoved) UnmarshalJSON Uses

func (v *EventDomStorageItemRemoved) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventDomStorageItemUpdated Uses

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 Uses

func (v EventDomStorageItemUpdated) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventDomStorageItemUpdated) MarshalJSON Uses

func (v EventDomStorageItemUpdated) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventDomStorageItemUpdated) UnmarshalEasyJSON Uses

func (v *EventDomStorageItemUpdated) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventDomStorageItemUpdated) UnmarshalJSON Uses

func (v *EventDomStorageItemUpdated) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventDomStorageItemsCleared Uses

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

EventDomStorageItemsCleared [no description].

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

func (EventDomStorageItemsCleared) MarshalEasyJSON Uses

func (v EventDomStorageItemsCleared) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventDomStorageItemsCleared) MarshalJSON Uses

func (v EventDomStorageItemsCleared) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventDomStorageItemsCleared) UnmarshalEasyJSON Uses

func (v *EventDomStorageItemsCleared) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventDomStorageItemsCleared) UnmarshalJSON Uses

func (v *EventDomStorageItemsCleared) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetDOMStorageItemsParams Uses

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

GetDOMStorageItemsParams [no description].

func GetDOMStorageItems Uses

func GetDOMStorageItems(storageID *StorageID) *GetDOMStorageItemsParams

GetDOMStorageItems [no description].

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

parameters:

storageID

func (*GetDOMStorageItemsParams) Do Uses

func (p *GetDOMStorageItemsParams) Do(ctx context.Context) (entries []Item, err error)

Do executes DOMStorage.getDOMStorageItems against the provided context.

returns:

entries

func (GetDOMStorageItemsParams) MarshalEasyJSON Uses

func (v GetDOMStorageItemsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetDOMStorageItemsParams) MarshalJSON Uses

func (v GetDOMStorageItemsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetDOMStorageItemsParams) UnmarshalEasyJSON Uses

func (v *GetDOMStorageItemsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetDOMStorageItemsParams) UnmarshalJSON Uses

func (v *GetDOMStorageItemsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetDOMStorageItemsReturns Uses

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

GetDOMStorageItemsReturns return values.

func (GetDOMStorageItemsReturns) MarshalEasyJSON Uses

func (v GetDOMStorageItemsReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetDOMStorageItemsReturns) MarshalJSON Uses

func (v GetDOMStorageItemsReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetDOMStorageItemsReturns) UnmarshalEasyJSON Uses

func (v *GetDOMStorageItemsReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetDOMStorageItemsReturns) UnmarshalJSON Uses

func (v *GetDOMStorageItemsReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Item Uses

type Item []string

Item DOM Storage item.

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

type RemoveDOMStorageItemParams Uses

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

RemoveDOMStorageItemParams [no description].

func RemoveDOMStorageItem Uses

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 Uses

func (p *RemoveDOMStorageItemParams) Do(ctx context.Context) (err error)

Do executes DOMStorage.removeDOMStorageItem against the provided context.

func (RemoveDOMStorageItemParams) MarshalEasyJSON Uses

func (v RemoveDOMStorageItemParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RemoveDOMStorageItemParams) MarshalJSON Uses

func (v RemoveDOMStorageItemParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RemoveDOMStorageItemParams) UnmarshalEasyJSON Uses

func (v *RemoveDOMStorageItemParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RemoveDOMStorageItemParams) UnmarshalJSON Uses

func (v *RemoveDOMStorageItemParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetDOMStorageItemParams Uses

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

SetDOMStorageItemParams [no description].

func SetDOMStorageItem Uses

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 Uses

func (p *SetDOMStorageItemParams) Do(ctx context.Context) (err error)

Do executes DOMStorage.setDOMStorageItem against the provided context.

func (SetDOMStorageItemParams) MarshalEasyJSON Uses

func (v SetDOMStorageItemParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetDOMStorageItemParams) MarshalJSON Uses

func (v SetDOMStorageItemParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetDOMStorageItemParams) UnmarshalEasyJSON Uses

func (v *SetDOMStorageItemParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetDOMStorageItemParams) UnmarshalJSON Uses

func (v *SetDOMStorageItemParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type StorageID Uses

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

func (StorageID) MarshalEasyJSON Uses

func (v StorageID) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StorageID) MarshalJSON Uses

func (v StorageID) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StorageID) UnmarshalEasyJSON Uses

func (v *StorageID) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StorageID) UnmarshalJSON Uses

func (v *StorageID) UnmarshalJSON(data []byte) error

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.