Documentation
¶
Overview ¶
Package storage provides type definitions for use with the Chrome Storage protocol
https://chromedevtools.github.io/devtools-protocol/tot/Storage/
Index ¶
- Variables
- type CacheStorageContentUpdatedEvent
- type CacheStorageListUpdatedEvent
- type ClearDataForOriginParams
- type ClearDataForOriginResult
- type GetUsageAndQuotaParams
- type GetUsageAndQuotaResult
- type IndexedDBContentUpdatedEvent
- type IndexedDBListUpdatedEvent
- type TrackCacheStorageForOriginParams
- type TrackCacheStorageForOriginResult
- type TrackIndexedDBForOriginParams
- type TrackIndexedDBForOriginResult
- type TypeEnum
- type UntrackCacheStorageForOriginParams
- type UntrackCacheStorageForOriginResult
- type UntrackIndexedDBForOriginParams
- type UntrackIndexedDBForOriginResult
- type UsageForType
Constants ¶
This section is empty.
Variables ¶
var Type = typeEnum{
Appcache: typeAppcache,
Cookies: typeCookies,
FileSystems: typeFileSystems,
Indexeddb: typeIndexeddb,
LocalStorage: typeLocalStorage,
ShaderCache: typeShaderCache,
Websql: typeWebsql,
ServiceWorkers: typeServiceWorkers,
CacheStorage: typeCacheStorage,
All: typeAll,
Other: typeOther,
}
Type provides named acces to the TypeEnum values.
Functions ¶
This section is empty.
Types ¶
type CacheStorageContentUpdatedEvent ¶
type CacheStorageContentUpdatedEvent struct { // Origin to update. Origin string `json:"origin"` // Name of cache in origin. CacheName string `json:"cacheName"` // Error information related to this event Err error `json:"-"` }
CacheStorageContentUpdatedEvent represents Storage.cacheStorageContentUpdated event data.
https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-cacheStorageContentUpdated
type CacheStorageListUpdatedEvent ¶
type CacheStorageListUpdatedEvent struct { // Origin to update. Origin string `json:"origin"` // Error information related to this event Err error `json:"-"` }
CacheStorageListUpdatedEvent represents Storage.cacheStorageListUpdated event data.
https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-cacheStorageListUpdated
type ClearDataForOriginParams ¶
type ClearDataForOriginParams struct { // Security origin. Origin string `json:"origin"` // Comma separated origin names. Types string `json:"storageTypes"` }
ClearDataForOriginParams represents Storage.clearDataForOrigin parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Storage/#method-clearDataForOrigin
type ClearDataForOriginResult ¶
type ClearDataForOriginResult struct { // Error information related to executing this method Err error `json:"-"` }
ClearDataForOriginResult represents the result of calls to Storage.clearDataForOrigin.
https://chromedevtools.github.io/devtools-protocol/tot/Storage/#method-clearDataForOrigin
type GetUsageAndQuotaParams ¶
type GetUsageAndQuotaParams struct { // Security origin. Origin string `json:"origin"` }
GetUsageAndQuotaParams represents Storage.getUsageAndQuota parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Storage/#method-getUsageAndQuota
type GetUsageAndQuotaResult ¶
type GetUsageAndQuotaResult struct { // Storage usage (bytes). Usage int64 `json:"usage"` // Storage quota (bytes). Quota int64 `json:"quota"` // Storage usage per type (bytes). UsageBreakdown []*UsageForType `json:"usageBreakdown"` // Error information related to executing this method Err error `json:"-"` }
GetUsageAndQuotaResult represents the result of calls to Storage.getUsageAndQuota.
https://chromedevtools.github.io/devtools-protocol/tot/Storage/#method-getUsageAndQuota
type IndexedDBContentUpdatedEvent ¶
type IndexedDBContentUpdatedEvent struct { // Origin to update. Origin string `json:"origin"` // Database to update. DatabaseName string `json:"databaseName"` // ObjectStore to update. ObjectStoreName string `json:"objectStoreName"` // Error information related to this event Err error `json:"-"` }
IndexedDBContentUpdatedEvent represents Storage.indexedDBContentUpdated event data.
https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-indexedDBContentUpdated
type IndexedDBListUpdatedEvent ¶
type IndexedDBListUpdatedEvent struct { // Origin to update. Origin string `json:"origin"` // Error information related to this event Err error `json:"-"` }
IndexedDBListUpdatedEvent represents Storage.indexedDBListUpdated event data.
https://chromedevtools.github.io/devtools-protocol/tot/Storage/#event-indexedDBListUpdated
type TrackCacheStorageForOriginParams ¶
type TrackCacheStorageForOriginParams struct { // Security origin. Origin string `json:"origin"` }
TrackCacheStorageForOriginParams represents Storage.trackCacheStorageForOrigin parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Storage/#method-trackCacheStorageForOrigin
type TrackCacheStorageForOriginResult ¶
type TrackCacheStorageForOriginResult struct { // Error information related to executing this method Err error `json:"-"` }
TrackCacheStorageForOriginResult represents the result of calls to Storage.trackCacheStorageForOrigin.
https://chromedevtools.github.io/devtools-protocol/tot/Storage/#method-trackCacheStorageForOrigin
type TrackIndexedDBForOriginParams ¶
type TrackIndexedDBForOriginParams struct { // Security origin. Origin string `json:"origin"` }
TrackIndexedDBForOriginParams represents Storage.trackIndexedDBForOrigin parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Storage/#method-trackIndexedDBForOrigin
type TrackIndexedDBForOriginResult ¶
type TrackIndexedDBForOriginResult struct { // Error information related to executing this method Err error `json:"-"` }
TrackIndexedDBForOriginResult represents the result of calls to Storage.trackIndexedDBForOrigin.
https://chromedevtools.github.io/devtools-protocol/tot/Storage/#method-trackIndexedDBForOrigin
type TypeEnum ¶
type TypeEnum int
TypeEnum represents possible storage types. Allowed values:
- Type.Appcache "appcache"
- Type.Cookies "cookies"
- Type.FileSystems "file_systems"
- Type.Indexeddb "indexeddb"
- Type.LocalStorage "local_storage"
- Type.ShaderCache "shader_cache"
- Type.Websql "websql"
- Type.ServiceWorkers "service_workers"
- Type.CacheStorage "cache_storage"
- Type.All "all"
- Type.Other "other"
https://chromedevtools.github.io/devtools-protocol/tot/Storage/#type-StorageType
func (TypeEnum) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*TypeEnum) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
type UntrackCacheStorageForOriginParams ¶
type UntrackCacheStorageForOriginParams struct { // Security origin. Origin string `json:"origin"` }
UntrackCacheStorageForOriginParams represents Storage.untrackCacheStorageForOrigin parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Storage/#method-untrackCacheStorageForOrigin
type UntrackCacheStorageForOriginResult ¶
type UntrackCacheStorageForOriginResult struct { // Error information related to executing this method Err error `json:"-"` }
UntrackCacheStorageForOriginResult represents the result of calls to Storage.untrackCacheStorageForOrigin.
https://chromedevtools.github.io/devtools-protocol/tot/Storage/#method-untrackCacheStorageForOrigin
type UntrackIndexedDBForOriginParams ¶
type UntrackIndexedDBForOriginParams struct { // Security origin. Origin string `json:"origin"` }
UntrackIndexedDBForOriginParams represents Storage.untrackIndexedDBForOrigin parameters.
https://chromedevtools.github.io/devtools-protocol/tot/Storage/#method-untrackIndexedDBForOrigin
type UntrackIndexedDBForOriginResult ¶
type UntrackIndexedDBForOriginResult struct { // Error information related to executing this method Err error `json:"-"` }
UntrackIndexedDBForOriginResult represents the result of calls to Storage.untrackIndexedDBForOrigin.
https://chromedevtools.github.io/devtools-protocol/tot/Storage/#method-untrackIndexedDBForOrigin
type UsageForType ¶
type UsageForType struct { // Name of storage type. Type TypeEnum `json:"storageType"` // Storage usage (bytes). Usage int `json:"usage"` }
UsageForType is usage for a storage type.
https://chromedevtools.github.io/devtools-protocol/tot/Storage/#type-UsageForType