applicationcache

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

(experimental)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationCache

type ApplicationCache struct {
	// Manifest URL.
	ManifestURL string `json:"manifestURL"`

	// Application cache size.
	Size float64 `json:"size"`

	// Application cache creation time.
	CreationTime float64 `json:"creationTime"`

	// Application cache update time.
	UpdateTime float64 `json:"updateTime"`

	// Application cache resources.
	Resources []*ApplicationCacheResource `json:"resources"`
}

type ApplicationCacheResource

type ApplicationCacheResource struct {
	// Resource url.
	URL string `json:"url"`

	// Resource size.
	Size int `json:"size"`

	// Resource type.
	Type string `json:"type"`
}

type ApplicationCacheStatusUpdatedEvent

type ApplicationCacheStatusUpdatedEvent struct {
	// Identifier of the frame containing document whose application cache updated status.
	FrameId string `json:"frameId"`

	// Manifest URL.
	ManifestURL string `json:"manifestURL"`

	// Updated application cache status.
	Status int `json:"status"`
}

type Client

type Client struct {
	*rpc.Client
}

(experimental)

func (*Client) Enable

func (d *Client) Enable() *EnableRequest

Enables application cache domain notifications.

func (*Client) GetApplicationCacheForFrame

func (d *Client) GetApplicationCacheForFrame() *GetApplicationCacheForFrameRequest

Returns relevant application cache data for the document in given frame.

func (*Client) GetFramesWithManifests

func (d *Client) GetFramesWithManifests() *GetFramesWithManifestsRequest

Returns array of frame identifiers with manifest urls for each frame containing a document associated with some application cache.

func (*Client) GetManifestForFrame

func (d *Client) GetManifestForFrame() *GetManifestForFrameRequest

Returns manifest URL for document in the given frame.

type EnableRequest

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

func (*EnableRequest) Do

func (r *EnableRequest) Do() error

type FrameWithManifest

type FrameWithManifest struct {
	// Frame identifier.
	FrameId string `json:"frameId"`

	// Manifest URL.
	ManifestURL string `json:"manifestURL"`

	// Application cache status.
	Status int `json:"status"`
}

type GetApplicationCacheForFrameRequest

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

func (*GetApplicationCacheForFrameRequest) Do

func (*GetApplicationCacheForFrameRequest) FrameId

Identifier of the frame containing document whose application cache is retrieved.

type GetApplicationCacheForFrameResult

type GetApplicationCacheForFrameResult struct {
	// Relevant application cache data for the document in given frame.
	ApplicationCache *ApplicationCache `json:"applicationCache"`
}

type GetFramesWithManifestsRequest

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

func (*GetFramesWithManifestsRequest) Do

type GetFramesWithManifestsResult

type GetFramesWithManifestsResult struct {
	// Array of frame identifiers with manifest urls for each frame containing a document associated with some application cache.
	FrameIds []*FrameWithManifest `json:"frameIds"`
}

type GetManifestForFrameRequest

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

func (*GetManifestForFrameRequest) Do

func (*GetManifestForFrameRequest) FrameId

Identifier of the frame containing document whose manifest is retrieved.

type GetManifestForFrameResult

type GetManifestForFrameResult struct {
	// Manifest URL for document in the given frame.
	ManifestURL string `json:"manifestURL"`
}

type NetworkStateUpdatedEvent

type NetworkStateUpdatedEvent struct {
	IsNowOnline bool `json:"isNowOnline"`
}

Jump to

Keyboard shortcuts

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