applicationcache

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2017 License: MIT Imports: 4 Imported by: 6

Documentation

Overview

Package applicationcache implements the ApplicationCache domain.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(conn *rpcc.Conn) *domainClient

NewClient returns a client for the ApplicationCache domain with the connection set to conn.

Types

type ApplicationCache

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.

type FrameWithManifest

type FrameWithManifest struct {
	FrameID     page.FrameID `json:"frameId"`     // Frame identifier.
	ManifestURL string       `json:"manifestURL"` // Manifest URL.
	Status      int          `json:"status"`      // Application cache status.
}

FrameWithManifest Frame identifier - manifest URL pair.

type GetApplicationCacheForFrameArgs

type GetApplicationCacheForFrameArgs struct {
	FrameID page.FrameID `json:"frameId"` // Identifier of the frame containing document whose application cache is retrieved.
}

GetApplicationCacheForFrameArgs represents the arguments for GetApplicationCacheForFrame in the ApplicationCache domain.

func NewGetApplicationCacheForFrameArgs

func NewGetApplicationCacheForFrameArgs(frameID page.FrameID) *GetApplicationCacheForFrameArgs

NewGetApplicationCacheForFrameArgs initializes GetApplicationCacheForFrameArgs with the required arguments.

type GetApplicationCacheForFrameReply

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

GetApplicationCacheForFrameReply represents the return values for GetApplicationCacheForFrame in the ApplicationCache domain.

type GetFramesWithManifestsReply

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

GetFramesWithManifestsReply represents the return values for GetFramesWithManifests in the ApplicationCache domain.

type GetManifestForFrameArgs

type GetManifestForFrameArgs struct {
	FrameID page.FrameID `json:"frameId"` // Identifier of the frame containing document whose manifest is retrieved.
}

GetManifestForFrameArgs represents the arguments for GetManifestForFrame in the ApplicationCache domain.

func NewGetManifestForFrameArgs

func NewGetManifestForFrameArgs(frameID page.FrameID) *GetManifestForFrameArgs

NewGetManifestForFrameArgs initializes GetManifestForFrameArgs with the required arguments.

type GetManifestForFrameReply

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

GetManifestForFrameReply represents the return values for GetManifestForFrame in the ApplicationCache domain.

type NetworkStateUpdatedClient

type NetworkStateUpdatedClient interface {
	// Recv calls RecvMsg on rpcc.Stream, blocks until the event is
	// triggered, context canceled or connection closed.
	Recv() (*NetworkStateUpdatedReply, error)
	rpcc.Stream
}

NetworkStateUpdatedClient is a client for NetworkStateUpdated events.

type NetworkStateUpdatedReply

type NetworkStateUpdatedReply struct {
	IsNowOnline bool `json:"isNowOnline"` // No description.
}

NetworkStateUpdatedReply is the reply for NetworkStateUpdated events.

type Resource

type Resource struct {
	URL  string `json:"url"`  // Resource url.
	Size int    `json:"size"` // Resource size.
	Type string `json:"type"` // Resource type.
}

Resource Detailed application cache resource information.

type StatusUpdatedClient

type StatusUpdatedClient interface {
	// Recv calls RecvMsg on rpcc.Stream, blocks until the event is
	// triggered, context canceled or connection closed.
	Recv() (*StatusUpdatedReply, error)
	rpcc.Stream
}

StatusUpdatedClient is a client for ApplicationCacheStatusUpdated events.

type StatusUpdatedReply

type StatusUpdatedReply struct {
	FrameID     page.FrameID `json:"frameId"`     // Identifier of the frame containing document whose application cache updated status.
	ManifestURL string       `json:"manifestURL"` // Manifest URL.
	Status      int          `json:"status"`      // Updated application cache status.
}

StatusUpdatedReply is the reply for ApplicationCacheStatusUpdated events.

Jump to

Keyboard shortcuts

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