import "github.com/chromedp/cdproto/applicationcache"
Package applicationcache provides the Chrome DevTools Protocol commands, types, and events for the ApplicationCache domain.
Generated by the cdproto-gen command.
applicationcache.go easyjson.go events.go types.go
const ( CommandEnable = "ApplicationCache.enable" CommandGetApplicationCacheForFrame = "ApplicationCache.getApplicationCacheForFrame" CommandGetFramesWithManifests = "ApplicationCache.getFramesWithManifests" CommandGetManifestForFrame = "ApplicationCache.getManifestForFrame" )
Command names.
type ApplicationCache struct { ManifestURL string `json:"manifestURL"` // Manifest URL. Size float64 `json:"size"` // Application cache size. CreationTime float64 `json:"creationTime"` // Application cache creation time. UpdateTime float64 `json:"updateTime"` // Application cache update time. Resources []*Resource `json:"resources"` // Application cache resources. }
ApplicationCache detailed application cache information.
See: https://chromedevtools.github.io/devtools-protocol/tot/ApplicationCache#type-ApplicationCache
func (v ApplicationCache) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v ApplicationCache) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *ApplicationCache) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *ApplicationCache) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EnableParams struct{}
EnableParams enables application cache domain notifications.
func Enable() *EnableParams
Enable enables application cache domain notifications.
See: https://chromedevtools.github.io/devtools-protocol/tot/ApplicationCache#method-enable
func (p *EnableParams) Do(ctx context.Context) (err error)
Do executes ApplicationCache.enable against the provided context.
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EnableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EnableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventApplicationCacheStatusUpdated struct { FrameID cdp.FrameID `json:"frameId"` // Identifier of the frame containing document whose application cache updated status. ManifestURL string `json:"manifestURL"` // Manifest URL. Status int64 `json:"status"` // Updated application cache status. }
EventApplicationCacheStatusUpdated [no description].
func (v EventApplicationCacheStatusUpdated) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventApplicationCacheStatusUpdated) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EventApplicationCacheStatusUpdated) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventApplicationCacheStatusUpdated) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
EventNetworkStateUpdated [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/ApplicationCache#event-networkStateUpdated
func (v EventNetworkStateUpdated) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventNetworkStateUpdated) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EventNetworkStateUpdated) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventNetworkStateUpdated) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type FrameWithManifest struct { FrameID cdp.FrameID `json:"frameId"` // Frame identifier. ManifestURL string `json:"manifestURL"` // Manifest URL. Status int64 `json:"status"` // Application cache status. }
FrameWithManifest frame identifier - manifest URL pair.
See: https://chromedevtools.github.io/devtools-protocol/tot/ApplicationCache#type-FrameWithManifest
func (v FrameWithManifest) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v FrameWithManifest) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *FrameWithManifest) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *FrameWithManifest) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetApplicationCacheForFrameParams struct { FrameID cdp.FrameID `json:"frameId"` // Identifier of the frame containing document whose application cache is retrieved. }
GetApplicationCacheForFrameParams returns relevant application cache data for the document in given frame.
func GetApplicationCacheForFrame(frameID cdp.FrameID) *GetApplicationCacheForFrameParams
GetApplicationCacheForFrame returns relevant application cache data for the document in given frame.
parameters:
frameID - Identifier of the frame containing document whose application cache is retrieved.
func (p *GetApplicationCacheForFrameParams) Do(ctx context.Context) (applicationCache *ApplicationCache, err error)
Do executes ApplicationCache.getApplicationCacheForFrame against the provided context.
returns:
applicationCache - Relevant application cache data for the document in given frame.
func (v GetApplicationCacheForFrameParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetApplicationCacheForFrameParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetApplicationCacheForFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetApplicationCacheForFrameParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetApplicationCacheForFrameReturns struct { ApplicationCache *ApplicationCache `json:"applicationCache,omitempty"` // Relevant application cache data for the document in given frame. }
GetApplicationCacheForFrameReturns return values.
func (v GetApplicationCacheForFrameReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetApplicationCacheForFrameReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetApplicationCacheForFrameReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetApplicationCacheForFrameReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetFramesWithManifestsParams struct{}
GetFramesWithManifestsParams returns array of frame identifiers with manifest urls for each frame containing a document associated with some application cache.
func GetFramesWithManifests() *GetFramesWithManifestsParams
GetFramesWithManifests returns array of frame identifiers with manifest urls for each frame containing a document associated with some application cache.
func (p *GetFramesWithManifestsParams) Do(ctx context.Context) (frameIds []*FrameWithManifest, err error)
Do executes ApplicationCache.getFramesWithManifests against the provided context.
returns:
frameIds - Array of frame identifiers with manifest urls for each frame containing a document associated with some application cache.
func (v GetFramesWithManifestsParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetFramesWithManifestsParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetFramesWithManifestsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetFramesWithManifestsParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetFramesWithManifestsReturns struct { FrameIds []*FrameWithManifest `json:"frameIds,omitempty"` // Array of frame identifiers with manifest urls for each frame containing a document associated with some application cache. }
GetFramesWithManifestsReturns return values.
func (v GetFramesWithManifestsReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetFramesWithManifestsReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetFramesWithManifestsReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetFramesWithManifestsReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetManifestForFrameParams struct { FrameID cdp.FrameID `json:"frameId"` // Identifier of the frame containing document whose manifest is retrieved. }
GetManifestForFrameParams returns manifest URL for document in the given frame.
func GetManifestForFrame(frameID cdp.FrameID) *GetManifestForFrameParams
GetManifestForFrame returns manifest URL for document in the given frame.
See: https://chromedevtools.github.io/devtools-protocol/tot/ApplicationCache#method-getManifestForFrame
parameters:
frameID - Identifier of the frame containing document whose manifest is retrieved.
Do executes ApplicationCache.getManifestForFrame against the provided context.
returns:
manifestURL - Manifest URL for document in the given frame.
func (v GetManifestForFrameParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetManifestForFrameParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetManifestForFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetManifestForFrameParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetManifestForFrameReturns struct { ManifestURL string `json:"manifestURL,omitempty"` // Manifest URL for document in the given frame. }
GetManifestForFrameReturns return values.
func (v GetManifestForFrameReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetManifestForFrameReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetManifestForFrameReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetManifestForFrameReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Resource struct { URL string `json:"url"` // Resource url. Size int64 `json:"size"` // Resource size. Type string `json:"type"` // Resource type. }
Resource detailed application cache resource information.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
Package applicationcache imports 6 packages (graph) and is imported by 3 packages. Updated 2021-01-08. Refresh now. Tools for package owners.