domstorage

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandDOMStorageClear                = "DOMStorage.clear"
	CommandDOMStorageDisable              = "DOMStorage.disable"
	CommandDOMStorageEnable               = "DOMStorage.enable"
	CommandDOMStorageGetDOMStorageItems   = "DOMStorage.getDOMStorageItems"
	CommandDOMStorageRemoveDOMStorageItem = "DOMStorage.removeDOMStorageItem"
	CommandDOMStorageSetDOMStorageItem    = "DOMStorage.setDOMStorageItem"
)
View Source
const (
	EventDOMStorageDomStorageItemAdded    = "DOMStorage.domStorageItemAdded"
	EventDOMStorageDomStorageItemRemoved  = "DOMStorage.domStorageItemRemoved"
	EventDOMStorageDomStorageItemUpdated  = "DOMStorage.domStorageItemUpdated"
	EventDOMStorageDomStorageItemsCleared = "DOMStorage.domStorageItemsCleared"
)

Variables

Functions

func GetEventReply

func GetEventReply(event string) (json.Unmarshaler, bool)

Types

type ClearArgs

type ClearArgs struct {
	StorageID StorageID `json:"storageId"` // No description.
}

ClearArgs represents the arguments for Clear in the DOMStorage domain.

func (*ClearArgs) MarshalJSON

func (a *ClearArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for Clear in the DOMStorage domain.

func (*ClearArgs) UnmarshalJSON

func (a *ClearArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for Clear in the DOMStorage domain.

type ClearReply

type ClearReply struct {
}

ClearReply represents the return values for Clear in the DOMStorage domain.

func (*ClearReply) GetFrameID

func (a *ClearReply) GetFrameID() string

ClearReply returns the FrameID value for Clear in the DOMStorage domain.

func (*ClearReply) MatchFrameID

func (a *ClearReply) MatchFrameID(frameID string, m []byte) (bool, error)

ClearReply returns whether or not the FrameID matches the reply value for Clear in the DOMStorage domain.

func (*ClearReply) UnmarshalJSON

func (a *ClearReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for Clear in the DOMStorage domain.

type DisableArgs

type DisableArgs struct {
}

DisableArgs represents the arguments for Disable in the DOMStorage domain.

func (*DisableArgs) MarshalJSON

func (a *DisableArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for Disable in the DOMStorage domain.

func (*DisableArgs) UnmarshalJSON

func (a *DisableArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for Disable in the DOMStorage domain.

type DisableReply

type DisableReply struct {
}

DisableReply represents the return values for Disable in the DOMStorage domain.

func (*DisableReply) GetFrameID

func (a *DisableReply) GetFrameID() string

DisableReply returns the FrameID value for Disable in the DOMStorage domain.

func (*DisableReply) MatchFrameID

func (a *DisableReply) MatchFrameID(frameID string, m []byte) (bool, error)

DisableReply returns whether or not the FrameID matches the reply value for Disable in the DOMStorage domain.

func (*DisableReply) UnmarshalJSON

func (a *DisableReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for Disable in the DOMStorage domain.

type EnableArgs

type EnableArgs struct {
}

EnableArgs represents the arguments for Enable in the DOMStorage domain.

func (*EnableArgs) MarshalJSON

func (a *EnableArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for Enable in the DOMStorage domain.

func (*EnableArgs) UnmarshalJSON

func (a *EnableArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for Enable in the DOMStorage domain.

type EnableReply

type EnableReply struct {
}

EnableReply represents the return values for Enable in the DOMStorage domain.

func (*EnableReply) GetFrameID

func (a *EnableReply) GetFrameID() string

EnableReply returns the FrameID value for Enable in the DOMStorage domain.

func (*EnableReply) MatchFrameID

func (a *EnableReply) MatchFrameID(frameID string, m []byte) (bool, error)

EnableReply returns whether or not the FrameID matches the reply value for Enable in the DOMStorage domain.

func (*EnableReply) UnmarshalJSON

func (a *EnableReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for Enable in the DOMStorage domain.

type GetDOMStorageItemsArgs

type GetDOMStorageItemsArgs struct {
	StorageID StorageID `json:"storageId"` // No description.
}

GetDOMStorageItemsArgs represents the arguments for GetDOMStorageItems in the DOMStorage domain.

func (*GetDOMStorageItemsArgs) MarshalJSON

func (a *GetDOMStorageItemsArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for GetDOMStorageItems in the DOMStorage domain.

func (*GetDOMStorageItemsArgs) UnmarshalJSON

func (a *GetDOMStorageItemsArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetDOMStorageItems in the DOMStorage domain.

type GetDOMStorageItemsReply

type GetDOMStorageItemsReply struct {
	Entries []Item `json:"entries"` // No description.
}

GetDOMStorageItemsReply represents the return values for GetDOMStorageItems in the DOMStorage domain.

func (*GetDOMStorageItemsReply) GetFrameID

func (a *GetDOMStorageItemsReply) GetFrameID() string

GetDOMStorageItemsReply returns the FrameID value for GetDOMStorageItems in the DOMStorage domain.

func (*GetDOMStorageItemsReply) MatchFrameID

func (a *GetDOMStorageItemsReply) MatchFrameID(frameID string, m []byte) (bool, error)

GetDOMStorageItemsReply returns whether or not the FrameID matches the reply value for GetDOMStorageItems in the DOMStorage domain.

func (*GetDOMStorageItemsReply) UnmarshalJSON

func (a *GetDOMStorageItemsReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetDOMStorageItems in the DOMStorage domain.

type Item

type Item []string

Item DOM Storage item.

type ItemAddedReply

type ItemAddedReply struct {
	StorageID StorageID `json:"storageId"` // No description.
	Key       string    `json:"key"`       // No description.
	NewValue  string    `json:"newValue"`  // No description.
}

ItemAddedReply is the reply for DOMStorageItemAdded events.

func (*ItemAddedReply) GetFrameID

func (a *ItemAddedReply) GetFrameID() string

ItemAddedReply returns the FrameID for DOMStorageItemAdded in the DOMStorage domain.

func (*ItemAddedReply) MatchFrameID

func (a *ItemAddedReply) MatchFrameID(frameID string, m []byte) (bool, error)

ItemAddedReply returns whether or not the FrameID matches the reply value for DOMStorageItemAdded in the DOMStorage domain.

func (*ItemAddedReply) UnmarshalJSON

func (a *ItemAddedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for DOMStorageItemAdded in the DOMStorage domain.

type ItemRemovedReply

type ItemRemovedReply struct {
	StorageID StorageID `json:"storageId"` // No description.
	Key       string    `json:"key"`       // No description.
}

ItemRemovedReply is the reply for DOMStorageItemRemoved events.

func (*ItemRemovedReply) GetFrameID

func (a *ItemRemovedReply) GetFrameID() string

ItemRemovedReply returns the FrameID for DOMStorageItemRemoved in the DOMStorage domain.

func (*ItemRemovedReply) MatchFrameID

func (a *ItemRemovedReply) MatchFrameID(frameID string, m []byte) (bool, error)

ItemRemovedReply returns whether or not the FrameID matches the reply value for DOMStorageItemRemoved in the DOMStorage domain.

func (*ItemRemovedReply) UnmarshalJSON

func (a *ItemRemovedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for DOMStorageItemRemoved in the DOMStorage domain.

type ItemUpdatedReply

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.
}

ItemUpdatedReply is the reply for DOMStorageItemUpdated events.

func (*ItemUpdatedReply) GetFrameID

func (a *ItemUpdatedReply) GetFrameID() string

ItemUpdatedReply returns the FrameID for DOMStorageItemUpdated in the DOMStorage domain.

func (*ItemUpdatedReply) MatchFrameID

func (a *ItemUpdatedReply) MatchFrameID(frameID string, m []byte) (bool, error)

ItemUpdatedReply returns whether or not the FrameID matches the reply value for DOMStorageItemUpdated in the DOMStorage domain.

func (*ItemUpdatedReply) UnmarshalJSON

func (a *ItemUpdatedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for DOMStorageItemUpdated in the DOMStorage domain.

type ItemsClearedReply

type ItemsClearedReply struct {
	StorageID StorageID `json:"storageId"` // No description.
}

ItemsClearedReply is the reply for DOMStorageItemsCleared events.

func (*ItemsClearedReply) GetFrameID

func (a *ItemsClearedReply) GetFrameID() string

ItemsClearedReply returns the FrameID for DOMStorageItemsCleared in the DOMStorage domain.

func (*ItemsClearedReply) MatchFrameID

func (a *ItemsClearedReply) MatchFrameID(frameID string, m []byte) (bool, error)

ItemsClearedReply returns whether or not the FrameID matches the reply value for DOMStorageItemsCleared in the DOMStorage domain.

func (*ItemsClearedReply) UnmarshalJSON

func (a *ItemsClearedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for DOMStorageItemsCleared in the DOMStorage domain.

type RemoveDOMStorageItemArgs

type RemoveDOMStorageItemArgs struct {
	StorageID StorageID `json:"storageId"` // No description.
	Key       string    `json:"key"`       // No description.
}

RemoveDOMStorageItemArgs represents the arguments for RemoveDOMStorageItem in the DOMStorage domain.

func (*RemoveDOMStorageItemArgs) MarshalJSON

func (a *RemoveDOMStorageItemArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for RemoveDOMStorageItem in the DOMStorage domain.

func (*RemoveDOMStorageItemArgs) UnmarshalJSON

func (a *RemoveDOMStorageItemArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for RemoveDOMStorageItem in the DOMStorage domain.

type RemoveDOMStorageItemReply

type RemoveDOMStorageItemReply struct {
}

RemoveDOMStorageItemReply represents the return values for RemoveDOMStorageItem in the DOMStorage domain.

func (*RemoveDOMStorageItemReply) GetFrameID

func (a *RemoveDOMStorageItemReply) GetFrameID() string

RemoveDOMStorageItemReply returns the FrameID value for RemoveDOMStorageItem in the DOMStorage domain.

func (*RemoveDOMStorageItemReply) MatchFrameID

func (a *RemoveDOMStorageItemReply) MatchFrameID(frameID string, m []byte) (bool, error)

RemoveDOMStorageItemReply returns whether or not the FrameID matches the reply value for RemoveDOMStorageItem in the DOMStorage domain.

func (*RemoveDOMStorageItemReply) UnmarshalJSON

func (a *RemoveDOMStorageItemReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for RemoveDOMStorageItem in the DOMStorage domain.

type SetDOMStorageItemArgs

type SetDOMStorageItemArgs struct {
	StorageID StorageID `json:"storageId"` // No description.
	Key       string    `json:"key"`       // No description.
	Value     string    `json:"value"`     // No description.
}

SetDOMStorageItemArgs represents the arguments for SetDOMStorageItem in the DOMStorage domain.

func (*SetDOMStorageItemArgs) MarshalJSON

func (a *SetDOMStorageItemArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for SetDOMStorageItem in the DOMStorage domain.

func (*SetDOMStorageItemArgs) UnmarshalJSON

func (a *SetDOMStorageItemArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetDOMStorageItem in the DOMStorage domain.

type SetDOMStorageItemReply

type SetDOMStorageItemReply struct {
}

SetDOMStorageItemReply represents the return values for SetDOMStorageItem in the DOMStorage domain.

func (*SetDOMStorageItemReply) GetFrameID

func (a *SetDOMStorageItemReply) GetFrameID() string

SetDOMStorageItemReply returns the FrameID value for SetDOMStorageItem in the DOMStorage domain.

func (*SetDOMStorageItemReply) MatchFrameID

func (a *SetDOMStorageItemReply) MatchFrameID(frameID string, m []byte) (bool, error)

SetDOMStorageItemReply returns whether or not the FrameID matches the reply value for SetDOMStorageItem in the DOMStorage domain.

func (*SetDOMStorageItemReply) UnmarshalJSON

func (a *SetDOMStorageItemReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetDOMStorageItem in the DOMStorage domain.

type StorageID

type StorageID struct {
	SecurityOrigin string `json:"securityOrigin"` // Security origin for the storage.
	IsLocalStorage bool   `json:"isLocalStorage"` // Whether the storage is local storage (not session storage).
}

StorageID DOM Storage identifier.

type Unmarshaler

type Unmarshaler func() json.Unmarshaler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL