Documentation
¶
Index ¶
- type ApplicationCache
- type ApplicationCacheAgent
- func (agent *ApplicationCacheAgent) FireApplicationCacheStatusUpdated(event ApplicationCacheStatusUpdatedEvent)
- func (agent *ApplicationCacheAgent) FireApplicationCacheStatusUpdatedOnTarget(targetId string, event ApplicationCacheStatusUpdatedEvent)
- func (agent *ApplicationCacheAgent) FireNetworkStateUpdated(event NetworkStateUpdatedEvent)
- func (agent *ApplicationCacheAgent) FireNetworkStateUpdatedOnTarget(targetId string, event NetworkStateUpdatedEvent)
- func (agent *ApplicationCacheAgent) Name() string
- func (agent *ApplicationCacheAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)
- func (agent *ApplicationCacheAgent) SetEnableHandler(handler func(EnableCommand))
- func (agent *ApplicationCacheAgent) SetGetApplicationCacheForFrameHandler(handler func(GetApplicationCacheForFrameCommand))
- func (agent *ApplicationCacheAgent) SetGetFramesWithManifestsHandler(handler func(GetFramesWithManifestsCommand))
- func (agent *ApplicationCacheAgent) SetGetManifestForFrameHandler(handler func(GetManifestForFrameCommand))
- type ApplicationCacheResource
- type ApplicationCacheStatusUpdatedEvent
- type EnableCommand
- type EnableCommandFn
- type EnableReturn
- type FrameWithManifest
- type GetApplicationCacheForFrameCommand
- func (c *GetApplicationCacheForFrameCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
- func (c *GetApplicationCacheForFrameCommand) Respond(r *GetApplicationCacheForFrameReturn)
- func (c *GetApplicationCacheForFrameCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
- type GetApplicationCacheForFrameCommandFn
- type GetApplicationCacheForFrameReturn
- type GetFramesWithManifestsCommand
- type GetFramesWithManifestsCommandFn
- type GetFramesWithManifestsReturn
- type GetManifestForFrameCommand
- type GetManifestForFrameCommandFn
- type GetManifestForFrameReturn
- type NetworkStateUpdatedEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 []ApplicationCacheResource `json:"resources"` // Application cache resources.
}
type ApplicationCacheAgent ¶
type ApplicationCacheAgent struct {
// contains filtered or unexported fields
}
func NewAgent ¶
func NewAgent(conn *shared.Connection) *ApplicationCacheAgent
func (*ApplicationCacheAgent) FireApplicationCacheStatusUpdated ¶
func (agent *ApplicationCacheAgent) FireApplicationCacheStatusUpdated(event ApplicationCacheStatusUpdatedEvent)
Dispatchable Events
func (*ApplicationCacheAgent) FireApplicationCacheStatusUpdatedOnTarget ¶
func (agent *ApplicationCacheAgent) FireApplicationCacheStatusUpdatedOnTarget(targetId string, event ApplicationCacheStatusUpdatedEvent)
func (*ApplicationCacheAgent) FireNetworkStateUpdated ¶
func (agent *ApplicationCacheAgent) FireNetworkStateUpdated(event NetworkStateUpdatedEvent)
func (*ApplicationCacheAgent) FireNetworkStateUpdatedOnTarget ¶
func (agent *ApplicationCacheAgent) FireNetworkStateUpdatedOnTarget(targetId string, event NetworkStateUpdatedEvent)
func (*ApplicationCacheAgent) Name ¶
func (agent *ApplicationCacheAgent) Name() string
func (*ApplicationCacheAgent) ProcessCommand ¶
func (agent *ApplicationCacheAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)
func (*ApplicationCacheAgent) SetEnableHandler ¶
func (agent *ApplicationCacheAgent) SetEnableHandler(handler func(EnableCommand))
func (*ApplicationCacheAgent) SetGetApplicationCacheForFrameHandler ¶
func (agent *ApplicationCacheAgent) SetGetApplicationCacheForFrameHandler(handler func(GetApplicationCacheForFrameCommand))
func (*ApplicationCacheAgent) SetGetFramesWithManifestsHandler ¶
func (agent *ApplicationCacheAgent) SetGetFramesWithManifestsHandler(handler func(GetFramesWithManifestsCommand))
Commands Sent From Frontend
func (*ApplicationCacheAgent) SetGetManifestForFrameHandler ¶
func (agent *ApplicationCacheAgent) SetGetManifestForFrameHandler(handler func(GetManifestForFrameCommand))
type EnableCommand ¶
type EnableCommand struct {
DestinationTargetID string
// contains filtered or unexported fields
}
func (*EnableCommand) Initalize ¶
func (c *EnableCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*EnableCommand) Respond ¶
func (c *EnableCommand) Respond()
func (*EnableCommand) RespondWithError ¶
func (c *EnableCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type EnableCommandFn ¶
type EnableCommandFn struct {
// contains filtered or unexported fields
}
func (*EnableCommandFn) Load ¶
func (a *EnableCommandFn) Load() func(EnableCommand)
func (*EnableCommandFn) Store ¶
func (a *EnableCommandFn) Store(fn func(EnableCommand))
type EnableReturn ¶
type EnableReturn struct {
}
type FrameWithManifest ¶
type GetApplicationCacheForFrameCommand ¶
type GetApplicationCacheForFrameCommand struct {
DestinationTargetID string
FrameId page.FrameId `json:"frameId"` // Identifier of the frame containing document whose application cache is retrieved.
// contains filtered or unexported fields
}
func (*GetApplicationCacheForFrameCommand) Initalize ¶
func (c *GetApplicationCacheForFrameCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*GetApplicationCacheForFrameCommand) Respond ¶
func (c *GetApplicationCacheForFrameCommand) Respond(r *GetApplicationCacheForFrameReturn)
func (*GetApplicationCacheForFrameCommand) RespondWithError ¶
func (c *GetApplicationCacheForFrameCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type GetApplicationCacheForFrameCommandFn ¶
type GetApplicationCacheForFrameCommandFn struct {
// contains filtered or unexported fields
}
func (*GetApplicationCacheForFrameCommandFn) Load ¶
func (a *GetApplicationCacheForFrameCommandFn) Load() func(GetApplicationCacheForFrameCommand)
func (*GetApplicationCacheForFrameCommandFn) Store ¶
func (a *GetApplicationCacheForFrameCommandFn) Store(fn func(GetApplicationCacheForFrameCommand))
type GetApplicationCacheForFrameReturn ¶
type GetApplicationCacheForFrameReturn struct {
ApplicationCache ApplicationCache `json:"applicationCache"` // Relevant application cache data for the document in given frame.
}
type GetFramesWithManifestsCommand ¶
type GetFramesWithManifestsCommand struct {
DestinationTargetID string
// contains filtered or unexported fields
}
func (*GetFramesWithManifestsCommand) Initalize ¶
func (c *GetFramesWithManifestsCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*GetFramesWithManifestsCommand) Respond ¶
func (c *GetFramesWithManifestsCommand) Respond(r *GetFramesWithManifestsReturn)
func (*GetFramesWithManifestsCommand) RespondWithError ¶
func (c *GetFramesWithManifestsCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type GetFramesWithManifestsCommandFn ¶
type GetFramesWithManifestsCommandFn struct {
// contains filtered or unexported fields
}
func (*GetFramesWithManifestsCommandFn) Load ¶
func (a *GetFramesWithManifestsCommandFn) Load() func(GetFramesWithManifestsCommand)
func (*GetFramesWithManifestsCommandFn) Store ¶
func (a *GetFramesWithManifestsCommandFn) Store(fn func(GetFramesWithManifestsCommand))
type GetFramesWithManifestsReturn ¶
type GetFramesWithManifestsReturn struct {
FrameIds []FrameWithManifest `json:"frameIds"` // Array of frame identifiers with manifest urls for each frame containing a document associated with some application cache.
}
type GetManifestForFrameCommand ¶
type GetManifestForFrameCommand struct {
DestinationTargetID string
FrameId page.FrameId `json:"frameId"` // Identifier of the frame containing document whose manifest is retrieved.
// contains filtered or unexported fields
}
func (*GetManifestForFrameCommand) Initalize ¶
func (c *GetManifestForFrameCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*GetManifestForFrameCommand) Respond ¶
func (c *GetManifestForFrameCommand) Respond(r *GetManifestForFrameReturn)
func (*GetManifestForFrameCommand) RespondWithError ¶
func (c *GetManifestForFrameCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type GetManifestForFrameCommandFn ¶
type GetManifestForFrameCommandFn struct {
// contains filtered or unexported fields
}
func (*GetManifestForFrameCommandFn) Load ¶
func (a *GetManifestForFrameCommandFn) Load() func(GetManifestForFrameCommand)
func (*GetManifestForFrameCommandFn) Store ¶
func (a *GetManifestForFrameCommandFn) Store(fn func(GetManifestForFrameCommand))
type GetManifestForFrameReturn ¶
type GetManifestForFrameReturn struct {
ManifestURL string `json:"manifestURL"` // Manifest URL for document in the given frame.
}
type NetworkStateUpdatedEvent ¶
type NetworkStateUpdatedEvent struct {
IsNowOnline bool `json:"isNowOnline"`
}
Click to show internal directories.
Click to hide internal directories.