/
event.go
36 lines (30 loc) · 1.27 KB
/
event.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Code generated by cdpgen. DO NOT EDIT.
package applicationcache
import (
"github.com/mafredri/cdp/protocol/page"
"github.com/mafredri/cdp/rpcc"
)
// StatusUpdatedClient is a client for ApplicationCacheStatusUpdated events.
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
}
// StatusUpdatedReply is the reply for ApplicationCacheStatusUpdated events.
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.
}
// NetworkStateUpdatedClient is a client for NetworkStateUpdated events.
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
}
// NetworkStateUpdatedReply is the reply for NetworkStateUpdated events.
type NetworkStateUpdatedReply struct {
IsNowOnline bool `json:"isNowOnline"` // No description.
}