{"modulePath":"github.com/clex/cdp","version":"v0.9.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package applicationcache\n\nPackage applicationcache implements the ApplicationCache domain.\n\n## Functions\n\n```go\nfunc NewClient(conn *rpcc.Conn) *domainClient\n```\nNewClient returns a client for the ApplicationCache domain with the connection set to conn.\n\n## Types\n\n```go\ntype ApplicationCache struct {\n\tManifestURL  string     `json:\"manifestURL\"`  // Manifest URL.\n\tSize         float64    `json:\"size\"`         // Application cache size.\n\tCreationTime float64    `json:\"creationTime\"` // Application cache creation time.\n\tUpdateTime   float64    `json:\"updateTime\"`   // Application cache update time.\n\tResources    []Resource `json:\"resources\"`    // Application cache resources.\n}\n```\nApplicationCache Detailed application cache information.\n\n```go\ntype FrameWithManifest struct {\n\tFrameID     page.FrameID `json:\"frameId\"`     // Frame identifier.\n\tManifestURL string       `json:\"manifestURL\"` // Manifest URL.\n\tStatus      int          `json:\"status\"`      // Application cache status.\n}\n```\nFrameWithManifest Frame identifier - manifest URL pair.\n\n```go\ntype GetApplicationCacheForFrameArgs struct {\n\tFrameID page.FrameID `json:\"frameId\"` // Identifier of the frame containing document whose application cache is retrieved.\n}\n```\nGetApplicationCacheForFrameArgs represents the arguments for GetApplicationCacheForFrame in the ApplicationCache domain.\n\n```go\nfunc NewGetApplicationCacheForFrameArgs(frameID page.FrameID) *GetApplicationCacheForFrameArgs\n```\nNewGetApplicationCacheForFrameArgs initializes GetApplicationCacheForFrameArgs with the required arguments.\n\n```go\ntype GetApplicationCacheForFrameReply struct {\n\tApplicationCache ApplicationCache `json:\"applicationCache\"` // Relevant application cache data for the document in given frame.\n}\n```\nGetApplicationCacheForFrameReply represents the return values for GetApplicationCacheForFrame in the ApplicationCache domain.\n\n```go\ntype GetFramesWithManifestsReply struct {\n\tFrameIDs []FrameWithManifest `json:\"frameIds\"` // Array of frame identifiers with manifest urls for each frame containing a document associated with some application cache.\n}\n```\nGetFramesWithManifestsReply represents the return values for GetFramesWithManifests in the ApplicationCache domain.\n\n```go\ntype GetManifestForFrameArgs struct {\n\tFrameID page.FrameID `json:\"frameId\"` // Identifier of the frame containing document whose manifest is retrieved.\n}\n```\nGetManifestForFrameArgs represents the arguments for GetManifestForFrame in the ApplicationCache domain.\n\n```go\nfunc NewGetManifestForFrameArgs(frameID page.FrameID) *GetManifestForFrameArgs\n```\nNewGetManifestForFrameArgs initializes GetManifestForFrameArgs with the required arguments.\n\n```go\ntype GetManifestForFrameReply struct {\n\tManifestURL string `json:\"manifestURL\"` // Manifest URL for document in the given frame.\n}\n```\nGetManifestForFrameReply represents the return values for GetManifestForFrame in the ApplicationCache domain.\n\n```go\ntype NetworkStateUpdatedClient interface {\n\t// Recv calls RecvMsg on rpcc.Stream, blocks until the event is\n\t// triggered, context canceled or connection closed.\n\tRecv() (*NetworkStateUpdatedReply, error)\n\trpcc.Stream\n}\n```\nNetworkStateUpdatedClient is a client for NetworkStateUpdated events.\n\n```go\ntype NetworkStateUpdatedReply struct {\n\tIsNowOnline bool `json:\"isNowOnline\"` //\n}\n```\nNetworkStateUpdatedReply is the reply for NetworkStateUpdated events.\n\n```go\ntype Resource struct {\n\tURL  string `json:\"url\"`  // Resource url.\n\tSize int    `json:\"size\"` // Resource size.\n\tType string `json:\"type\"` // Resource type.\n}\n```\nResource Detailed application cache resource information.\n\n```go\ntype StatusUpdatedClient interface {\n\t// Recv calls RecvMsg on rpcc.Stream, blocks until the event is\n\t// triggered, context canceled or connection closed.\n\tRecv() (*StatusUpdatedReply, error)\n\trpcc.Stream\n}\n```\nStatusUpdatedClient is a client for ApplicationCacheStatusUpdated events.\n\n```go\ntype StatusUpdatedReply struct {\n\tFrameID     page.FrameID `json:\"frameId\"`     // Identifier of the frame containing document whose application cache updated status.\n\tManifestURL string       `json:\"manifestURL\"` // Manifest URL.\n\tStatus      int          `json:\"status\"`      // Updated application cache status.\n}\n```\nStatusUpdatedReply is the reply for ApplicationCacheStatusUpdated events.\n\n","path":"github.com/clex/cdp/protocol/applicationcache","name":"applicationcache","synopsis":"Package applicationcache implements the ApplicationCache domain.","isRedistributable":true}
