/
event.go
65 lines (55 loc) · 2.13 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Code generated by cdpgen. DO NOT EDIT.
package domstorage
import (
"github.com/mafredri/cdp/rpcc"
)
// ItemAddedClient is a client for DOMStorageItemAdded events.
type ItemAddedClient interface {
// Recv calls RecvMsg on rpcc.Stream, blocks until the event is
// triggered, context canceled or connection closed.
Recv() (*ItemAddedReply, error)
rpcc.Stream
}
// ItemAddedReply is the reply for DOMStorageItemAdded events.
type ItemAddedReply struct {
StorageID StorageID `json:"storageId"` // No description.
Key string `json:"key"` // No description.
NewValue string `json:"newValue"` // No description.
}
// ItemRemovedClient is a client for DOMStorageItemRemoved events.
type ItemRemovedClient interface {
// Recv calls RecvMsg on rpcc.Stream, blocks until the event is
// triggered, context canceled or connection closed.
Recv() (*ItemRemovedReply, error)
rpcc.Stream
}
// ItemRemovedReply is the reply for DOMStorageItemRemoved events.
type ItemRemovedReply struct {
StorageID StorageID `json:"storageId"` // No description.
Key string `json:"key"` // No description.
}
// ItemUpdatedClient is a client for DOMStorageItemUpdated events.
type ItemUpdatedClient interface {
// Recv calls RecvMsg on rpcc.Stream, blocks until the event is
// triggered, context canceled or connection closed.
Recv() (*ItemUpdatedReply, error)
rpcc.Stream
}
// ItemUpdatedReply is the reply for DOMStorageItemUpdated events.
type ItemUpdatedReply struct {
StorageID StorageID `json:"storageId"` // No description.
Key string `json:"key"` // No description.
OldValue string `json:"oldValue"` // No description.
NewValue string `json:"newValue"` // No description.
}
// ItemsClearedClient is a client for DOMStorageItemsCleared events.
type ItemsClearedClient interface {
// Recv calls RecvMsg on rpcc.Stream, blocks until the event is
// triggered, context canceled or connection closed.
Recv() (*ItemsClearedReply, error)
rpcc.Stream
}
// ItemsClearedReply is the reply for DOMStorageItemsCleared events.
type ItemsClearedReply struct {
StorageID StorageID `json:"storageId"` // No description.
}