domstorage

package
v0.0.0-...-9e9a0cf Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

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

Query and modify DOM storage.

Generated by the chromedp-gen command.

Index

Constants

This section is empty.

Variables

EventTypes all event types in the domain.

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].

parameters:

storageID

func (*ClearParams) Do

func (p *ClearParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes DOMStorage.clear against the provided context and target handler.

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.

func (*DisableParams) Do

func (p *DisableParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes DOMStorage.disable against the provided context and target handler.

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.

func (*EnableParams) Do

func (p *EnableParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes DOMStorage.enable against the provided context and target handler.

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,omitempty"`
	Key       string     `json:"key,omitempty"`
	NewValue  string     `json:"newValue,omitempty"`
}

EventDomStorageItemAdded [no description].

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,omitempty"`
	Key       string     `json:"key,omitempty"`
}

EventDomStorageItemRemoved [no description].

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,omitempty"`
	Key       string     `json:"key,omitempty"`
	OldValue  string     `json:"oldValue,omitempty"`
	NewValue  string     `json:"newValue,omitempty"`
}

EventDomStorageItemUpdated [no description].

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,omitempty"`
}

EventDomStorageItemsCleared [no description].

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].

parameters:

storageID

func (*GetDOMStorageItemsParams) Do

func (p *GetDOMStorageItemsParams) Do(ctxt context.Context, h cdp.Handler) (entries []Item, err error)

Do executes DOMStorage.getDOMStorageItems against the provided context and target handler.

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.

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].

parameters:

storageID
key

func (*RemoveDOMStorageItemParams) Do

Do executes DOMStorage.removeDOMStorageItem against the provided context and target handler.

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 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].

parameters:

storageID
key
value

func (*SetDOMStorageItemParams) Do

func (p *SetDOMStorageItemParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes DOMStorage.setDOMStorageItem against the provided context and target handler.

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.
	IsLocalStorage bool   `json:"isLocalStorage,omitempty"` // Whether the storage is local storage (not session storage).
}

StorageID dOM Storage identifier.

func (StorageID) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (StorageID) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*StorageID) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StorageID) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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