Documentation ¶
Overview ¶
Package cachestorage provides the Chrome Debugging Protocol commands, types, and events for the CacheStorage domain.
Generated by the chromedp-gen command.
Index ¶
- type Cache
- type CacheID
- type CachedResponse
- type DataEntry
- type DeleteCacheParams
- func (p *DeleteCacheParams) Do(ctxt context.Context, h cdp.Handler) (err error)
- func (v DeleteCacheParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v DeleteCacheParams) MarshalJSON() ([]byte, error)
- func (v *DeleteCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *DeleteCacheParams) UnmarshalJSON(data []byte) error
- type DeleteEntryParams
- func (p *DeleteEntryParams) Do(ctxt context.Context, h cdp.Handler) (err error)
- func (v DeleteEntryParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v DeleteEntryParams) MarshalJSON() ([]byte, error)
- func (v *DeleteEntryParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *DeleteEntryParams) UnmarshalJSON(data []byte) error
- type Header
- type RequestCacheNamesParams
- func (p *RequestCacheNamesParams) Do(ctxt context.Context, h cdp.Handler) (caches []*Cache, err error)
- func (v RequestCacheNamesParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v RequestCacheNamesParams) MarshalJSON() ([]byte, error)
- func (v *RequestCacheNamesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *RequestCacheNamesParams) UnmarshalJSON(data []byte) error
- type RequestCacheNamesReturns
- type RequestCachedResponseParams
- func (p *RequestCachedResponseParams) Do(ctxt context.Context, h cdp.Handler) (response *CachedResponse, err error)
- func (v RequestCachedResponseParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v RequestCachedResponseParams) MarshalJSON() ([]byte, error)
- func (v *RequestCachedResponseParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *RequestCachedResponseParams) UnmarshalJSON(data []byte) error
- type RequestCachedResponseReturns
- type RequestEntriesParams
- func (p *RequestEntriesParams) Do(ctxt context.Context, h cdp.Handler) (cacheDataEntries []*DataEntry, hasMore bool, err error)
- func (v RequestEntriesParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v RequestEntriesParams) MarshalJSON() ([]byte, error)
- func (v *RequestEntriesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *RequestEntriesParams) UnmarshalJSON(data []byte) error
- type RequestEntriesReturns
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct { CacheID CacheID `json:"cacheId"` // An opaque unique id of the cache. SecurityOrigin string `json:"securityOrigin"` // Security origin of the cache. CacheName string `json:"cacheName"` // The name of the cache. }
Cache cache identifier.
func (Cache) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Cache) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Cache) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Cache) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type CachedResponse ¶
type CachedResponse struct {
Body string `json:"body"` // Entry content, base64-encoded.
}
CachedResponse cached response.
func (CachedResponse) MarshalEasyJSON ¶
func (v CachedResponse) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CachedResponse) MarshalJSON ¶
func (v CachedResponse) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CachedResponse) UnmarshalEasyJSON ¶
func (v *CachedResponse) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CachedResponse) UnmarshalJSON ¶
func (v *CachedResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type DataEntry ¶
type DataEntry struct { RequestURL string `json:"requestURL"` // Request URL. RequestMethod string `json:"requestMethod"` // Request method. RequestHeaders []*Header `json:"requestHeaders"` // Request headers ResponseTime float64 `json:"responseTime"` // Number of seconds since epoch. ResponseStatus int64 `json:"responseStatus"` // HTTP response status code. ResponseStatusText string `json:"responseStatusText"` // HTTP response status text. ResponseHeaders []*Header `json:"responseHeaders"` // Response headers }
DataEntry data entry.
func (DataEntry) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (DataEntry) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*DataEntry) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*DataEntry) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type DeleteCacheParams ¶
type DeleteCacheParams struct {
CacheID CacheID `json:"cacheId"` // Id of cache for deletion.
}
DeleteCacheParams deletes a cache.
func DeleteCache ¶
func DeleteCache(cacheID CacheID) *DeleteCacheParams
DeleteCache deletes a cache.
parameters:
cacheID - Id of cache for deletion.
func (*DeleteCacheParams) Do ¶
Do executes CacheStorage.deleteCache against the provided context and target handler.
func (DeleteCacheParams) MarshalEasyJSON ¶
func (v DeleteCacheParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (DeleteCacheParams) MarshalJSON ¶
func (v DeleteCacheParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*DeleteCacheParams) UnmarshalEasyJSON ¶
func (v *DeleteCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*DeleteCacheParams) UnmarshalJSON ¶
func (v *DeleteCacheParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type DeleteEntryParams ¶
type DeleteEntryParams struct { CacheID CacheID `json:"cacheId"` // Id of cache where the entry will be deleted. Request string `json:"request"` // URL spec of the request. }
DeleteEntryParams deletes a cache entry.
func DeleteEntry ¶
func DeleteEntry(cacheID CacheID, request string) *DeleteEntryParams
DeleteEntry deletes a cache entry.
parameters:
cacheID - Id of cache where the entry will be deleted. request - URL spec of the request.
func (*DeleteEntryParams) Do ¶
Do executes CacheStorage.deleteEntry against the provided context and target handler.
func (DeleteEntryParams) MarshalEasyJSON ¶
func (v DeleteEntryParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (DeleteEntryParams) MarshalJSON ¶
func (v DeleteEntryParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*DeleteEntryParams) UnmarshalEasyJSON ¶
func (v *DeleteEntryParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*DeleteEntryParams) UnmarshalJSON ¶
func (v *DeleteEntryParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Header ¶
Header [no description].
func (Header) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Header) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Header) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Header) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type RequestCacheNamesParams ¶
type RequestCacheNamesParams struct {
SecurityOrigin string `json:"securityOrigin"` // Security origin.
}
RequestCacheNamesParams requests cache names.
func RequestCacheNames ¶
func RequestCacheNames(securityOrigin string) *RequestCacheNamesParams
RequestCacheNames requests cache names.
parameters:
securityOrigin - Security origin.
func (*RequestCacheNamesParams) Do ¶
func (p *RequestCacheNamesParams) Do(ctxt context.Context, h cdp.Handler) (caches []*Cache, err error)
Do executes CacheStorage.requestCacheNames against the provided context and target handler.
returns:
caches - Caches for the security origin.
func (RequestCacheNamesParams) MarshalEasyJSON ¶
func (v RequestCacheNamesParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (RequestCacheNamesParams) MarshalJSON ¶
func (v RequestCacheNamesParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*RequestCacheNamesParams) UnmarshalEasyJSON ¶
func (v *RequestCacheNamesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RequestCacheNamesParams) UnmarshalJSON ¶
func (v *RequestCacheNamesParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type RequestCacheNamesReturns ¶
type RequestCacheNamesReturns struct {
Caches []*Cache `json:"caches,omitempty"` // Caches for the security origin.
}
RequestCacheNamesReturns return values.
func (RequestCacheNamesReturns) MarshalEasyJSON ¶
func (v RequestCacheNamesReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (RequestCacheNamesReturns) MarshalJSON ¶
func (v RequestCacheNamesReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*RequestCacheNamesReturns) UnmarshalEasyJSON ¶
func (v *RequestCacheNamesReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RequestCacheNamesReturns) UnmarshalJSON ¶
func (v *RequestCacheNamesReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type RequestCachedResponseParams ¶
type RequestCachedResponseParams struct { CacheID CacheID `json:"cacheId"` // Id of cache that contains the enty. RequestURL string `json:"requestURL"` // URL spec of the request. }
RequestCachedResponseParams fetches cache entry.
func RequestCachedResponse ¶
func RequestCachedResponse(cacheID CacheID, requestURL string) *RequestCachedResponseParams
RequestCachedResponse fetches cache entry.
parameters:
cacheID - Id of cache that contains the enty. requestURL - URL spec of the request.
func (*RequestCachedResponseParams) Do ¶
func (p *RequestCachedResponseParams) Do(ctxt context.Context, h cdp.Handler) (response *CachedResponse, err error)
Do executes CacheStorage.requestCachedResponse against the provided context and target handler.
returns:
response - Response read from the cache.
func (RequestCachedResponseParams) MarshalEasyJSON ¶
func (v RequestCachedResponseParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (RequestCachedResponseParams) MarshalJSON ¶
func (v RequestCachedResponseParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*RequestCachedResponseParams) UnmarshalEasyJSON ¶
func (v *RequestCachedResponseParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RequestCachedResponseParams) UnmarshalJSON ¶
func (v *RequestCachedResponseParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type RequestCachedResponseReturns ¶
type RequestCachedResponseReturns struct {
Response *CachedResponse `json:"response,omitempty"` // Response read from the cache.
}
RequestCachedResponseReturns return values.
func (RequestCachedResponseReturns) MarshalEasyJSON ¶
func (v RequestCachedResponseReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (RequestCachedResponseReturns) MarshalJSON ¶
func (v RequestCachedResponseReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*RequestCachedResponseReturns) UnmarshalEasyJSON ¶
func (v *RequestCachedResponseReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RequestCachedResponseReturns) UnmarshalJSON ¶
func (v *RequestCachedResponseReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type RequestEntriesParams ¶
type RequestEntriesParams struct { CacheID CacheID `json:"cacheId"` // ID of cache to get entries from. SkipCount int64 `json:"skipCount"` // Number of records to skip. PageSize int64 `json:"pageSize"` // Number of records to fetch. }
RequestEntriesParams requests data from cache.
func RequestEntries ¶
func RequestEntries(cacheID CacheID, skipCount int64, pageSize int64) *RequestEntriesParams
RequestEntries requests data from cache.
parameters:
cacheID - ID of cache to get entries from. skipCount - Number of records to skip. pageSize - Number of records to fetch.
func (*RequestEntriesParams) Do ¶
func (p *RequestEntriesParams) Do(ctxt context.Context, h cdp.Handler) (cacheDataEntries []*DataEntry, hasMore bool, err error)
Do executes CacheStorage.requestEntries against the provided context and target handler.
returns:
cacheDataEntries - Array of object store data entries. hasMore - If true, there are more entries to fetch in the given range.
func (RequestEntriesParams) MarshalEasyJSON ¶
func (v RequestEntriesParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (RequestEntriesParams) MarshalJSON ¶
func (v RequestEntriesParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*RequestEntriesParams) UnmarshalEasyJSON ¶
func (v *RequestEntriesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RequestEntriesParams) UnmarshalJSON ¶
func (v *RequestEntriesParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type RequestEntriesReturns ¶
type RequestEntriesReturns struct { CacheDataEntries []*DataEntry `json:"cacheDataEntries,omitempty"` // Array of object store data entries. HasMore bool `json:"hasMore,omitempty"` // If true, there are more entries to fetch in the given range. }
RequestEntriesReturns return values.
func (RequestEntriesReturns) MarshalEasyJSON ¶
func (v RequestEntriesReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (RequestEntriesReturns) MarshalJSON ¶
func (v RequestEntriesReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*RequestEntriesReturns) UnmarshalEasyJSON ¶
func (v *RequestEntriesReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RequestEntriesReturns) UnmarshalJSON ¶
func (v *RequestEntriesReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface