domstorage

package
v0.0.0-...-4fec7a0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2017 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Overview

Query and modify DOM storage. (experimental)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClearRequest

type ClearRequest struct {
	// contains filtered or unexported fields
}

func (*ClearRequest) Do

func (r *ClearRequest) Do() error

func (*ClearRequest) StorageId

func (r *ClearRequest) StorageId(v *StorageId) *ClearRequest

type Client

type Client struct {
	*rpc.Client
}

Query and modify DOM storage. (experimental)

func (*Client) Clear

func (d *Client) Clear() *ClearRequest

func (*Client) Disable

func (d *Client) Disable() *DisableRequest

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

func (*Client) Enable

func (d *Client) Enable() *EnableRequest

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

func (*Client) GetDOMStorageItems

func (d *Client) GetDOMStorageItems() *GetDOMStorageItemsRequest

func (*Client) RemoveDOMStorageItem

func (d *Client) RemoveDOMStorageItem() *RemoveDOMStorageItemRequest

func (*Client) SetDOMStorageItem

func (d *Client) SetDOMStorageItem() *SetDOMStorageItemRequest

type DisableRequest

type DisableRequest struct {
	// contains filtered or unexported fields
}

func (*DisableRequest) Do

func (r *DisableRequest) Do() error

type DomStorageItemAddedEvent

type DomStorageItemAddedEvent struct {
	StorageId *StorageId `json:"storageId"`

	Key string `json:"key"`

	NewValue string `json:"newValue"`
}

type DomStorageItemRemovedEvent

type DomStorageItemRemovedEvent struct {
	StorageId *StorageId `json:"storageId"`

	Key string `json:"key"`
}

type DomStorageItemUpdatedEvent

type DomStorageItemUpdatedEvent struct {
	StorageId *StorageId `json:"storageId"`

	Key string `json:"key"`

	OldValue string `json:"oldValue"`

	NewValue string `json:"newValue"`
}

type DomStorageItemsClearedEvent

type DomStorageItemsClearedEvent struct {
	StorageId *StorageId `json:"storageId"`
}

type EnableRequest

type EnableRequest struct {
	// contains filtered or unexported fields
}

func (*EnableRequest) Do

func (r *EnableRequest) Do() error

type GetDOMStorageItemsRequest

type GetDOMStorageItemsRequest struct {
	// contains filtered or unexported fields
}

func (*GetDOMStorageItemsRequest) Do

func (*GetDOMStorageItemsRequest) StorageId

type GetDOMStorageItemsResult

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

type Item

type Item []string

type RemoveDOMStorageItemRequest

type RemoveDOMStorageItemRequest struct {
	// contains filtered or unexported fields
}

func (*RemoveDOMStorageItemRequest) Do

func (*RemoveDOMStorageItemRequest) Key

func (*RemoveDOMStorageItemRequest) StorageId

type SetDOMStorageItemRequest

type SetDOMStorageItemRequest struct {
	// contains filtered or unexported fields
}

func (*SetDOMStorageItemRequest) Do

func (*SetDOMStorageItemRequest) Key

func (*SetDOMStorageItemRequest) StorageId

func (*SetDOMStorageItemRequest) Value

type StorageId

type StorageId struct {
	// Security origin for the storage.
	SecurityOrigin string `json:"securityOrigin"`

	// Whether the storage is local storage (not session storage).
	IsLocalStorage bool `json:"isLocalStorage"`
}

Jump to

Keyboard shortcuts

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