storage

package
v1.0.0-rc9 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: BSD-2-Clause Imports: 0 Imported by: 6

Documentation

Overview

Package storage provides type definitions for use with the Chrome DOMStorage protocol

https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClearParams

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

ClearParams represents DOMStorage.clear parameters.

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

type ClearResult

type ClearResult struct {
	// Error information related to executing this method
	Err error `json:"-"`
}

ClearResult represents the result of calls to DOMStorage.clear.

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

type DisableResult

type DisableResult struct {
	// Error information related to executing this method
	Err error `json:"-"`
}

DisableResult represents the result of calls to DOMStorage.disable.

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

type EnableResult

type EnableResult struct {
	// Error information related to executing this method
	Err error `json:"-"`
}

EnableResult represents the result of calls to DOMStorage.enable.

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

type GetItemsParams

type GetItemsParams struct {
	StorageID *ID `json:"storageId"`
}

GetItemsParams represents DOMStorage.getDOMStorageItems parameters.

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

type GetItemsResult

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

	// Error information related to executing this method
	Err error `json:"-"`
}

GetItemsResult represents the result of calls to DOMStorage.getDOMStorageItems.

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

type ID

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

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

ID is a DOM Storage identifier.

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

type Item

type Item []interface{}

Item is a DOM Storage item.

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

type ItemAddedEvent

type ItemAddedEvent struct {
	StorageID *ID    `json:"storageId"`
	Key       string `json:"key"`
	NewValue  string `json:"newValue"`

	// Error information related to this event
	Err error `json:"-"`
}

ItemAddedEvent represents DOM.domStorageItemAdded event data.

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

type ItemRemovedEvent

type ItemRemovedEvent struct {
	StorageID *ID    `json:"storageId"`
	Key       string `json:"key"`

	// Error information related to this event
	Err error `json:"-"`
}

ItemRemovedEvent represents DOM.domStorageItemRemoved event data.

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

type ItemUpdatedEvent

type ItemUpdatedEvent struct {
	// Storage ID.
	StorageID *ID `json:"storageId"`

	// Key.
	Key string `json:"key"`

	// Old value.
	OldValue string `json:"oldValue"`

	// New value.
	NewValue string `json:"newValue"`

	// Error information related to this event
	Err error `json:"-"`
}

ItemUpdatedEvent represents DOM.domStorageItemUpdated event data.

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

type ItemsClearedEvent

type ItemsClearedEvent struct {
	// Storage ID.
	StorageID *ID `json:"storageId"`

	// Error information related to this event
	Err error `json:"-"`
}

ItemsClearedEvent represents DOM.domStorageItemsCleared event data.

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

type RemoveItemParams

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

RemoveItemParams represents DOMStorage.removeDOMStorageItem parameters.

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

type RemoveItemResult

type RemoveItemResult struct {
	// Error information related to executing this method
	Err error `json:"-"`
}

RemoveItemResult represents the result of calls to DOMStorage.removeItem.

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

type SetItemParams

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

SetItemParams represents DOMStorage.setDOMStorageItem parameters.

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

type SetItemResult

type SetItemResult struct {
	// Error information related to executing this method
	Err error `json:"-"`
}

SetItemResult represents the result of calls to DOMStorage.setItem.

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

Jump to

Keyboard shortcuts

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