Documentation ¶
Overview ¶
Package domstorage implements the DOMStorage domain. Query and modify DOM storage.
Index ¶
- func NewClient(conn *rpcc.Conn) *domainClient
- type ClearArgs
- type GetDOMStorageItemsArgs
- type GetDOMStorageItemsReply
- type Item
- type ItemAddedClient
- type ItemAddedReply
- type ItemRemovedClient
- type ItemRemovedReply
- type ItemUpdatedClient
- type ItemUpdatedReply
- type ItemsClearedClient
- type ItemsClearedReply
- type RemoveDOMStorageItemArgs
- type SetDOMStorageItemArgs
- type StorageID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClearArgs ¶
type ClearArgs struct {
StorageID StorageID `json:"storageId"` //
}
ClearArgs represents the arguments for Clear in the DOMStorage domain.
func NewClearArgs ¶
NewClearArgs initializes ClearArgs with the required arguments.
type GetDOMStorageItemsArgs ¶
type GetDOMStorageItemsArgs struct {
StorageID StorageID `json:"storageId"` //
}
GetDOMStorageItemsArgs represents the arguments for GetDOMStorageItems in the DOMStorage domain.
func NewGetDOMStorageItemsArgs ¶
func NewGetDOMStorageItemsArgs(storageID StorageID) *GetDOMStorageItemsArgs
NewGetDOMStorageItemsArgs initializes GetDOMStorageItemsArgs with the required arguments.
type GetDOMStorageItemsReply ¶
type GetDOMStorageItemsReply struct {
Entries []Item `json:"entries"` //
}
GetDOMStorageItemsReply represents the return values for GetDOMStorageItems in the DOMStorage domain.
type ItemAddedClient ¶
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 }
ItemAddedClient is a client for DOMStorageItemAdded events.
type ItemAddedReply ¶
type ItemAddedReply struct { StorageID StorageID `json:"storageId"` // Key string `json:"key"` // NewValue string `json:"newValue"` // }
ItemAddedReply is the reply for DOMStorageItemAdded events.
type ItemRemovedClient ¶
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 }
ItemRemovedClient is a client for DOMStorageItemRemoved events.
type ItemRemovedReply ¶
type ItemRemovedReply struct { StorageID StorageID `json:"storageId"` // Key string `json:"key"` // }
ItemRemovedReply is the reply for DOMStorageItemRemoved events.
type ItemUpdatedClient ¶
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 }
ItemUpdatedClient is a client for DOMStorageItemUpdated events.
type ItemUpdatedReply ¶
type ItemUpdatedReply struct { StorageID StorageID `json:"storageId"` // Key string `json:"key"` // OldValue string `json:"oldValue"` // NewValue string `json:"newValue"` // }
ItemUpdatedReply is the reply for DOMStorageItemUpdated events.
type ItemsClearedClient ¶
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 }
ItemsClearedClient is a client for DOMStorageItemsCleared events.
type ItemsClearedReply ¶
type ItemsClearedReply struct {
StorageID StorageID `json:"storageId"` //
}
ItemsClearedReply is the reply for DOMStorageItemsCleared events.
type RemoveDOMStorageItemArgs ¶
type RemoveDOMStorageItemArgs struct { StorageID StorageID `json:"storageId"` // Key string `json:"key"` // }
RemoveDOMStorageItemArgs represents the arguments for RemoveDOMStorageItem in the DOMStorage domain.
func NewRemoveDOMStorageItemArgs ¶
func NewRemoveDOMStorageItemArgs(storageID StorageID, key string) *RemoveDOMStorageItemArgs
NewRemoveDOMStorageItemArgs initializes RemoveDOMStorageItemArgs with the required arguments.
type SetDOMStorageItemArgs ¶
type SetDOMStorageItemArgs struct { StorageID StorageID `json:"storageId"` // Key string `json:"key"` // Value string `json:"value"` // }
SetDOMStorageItemArgs represents the arguments for SetDOMStorageItem in the DOMStorage domain.
func NewSetDOMStorageItemArgs ¶
func NewSetDOMStorageItemArgs(storageID StorageID, key string, value string) *SetDOMStorageItemArgs
NewSetDOMStorageItemArgs initializes SetDOMStorageItemArgs with the required arguments.