indexeddb

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: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	CommandIndexedDBClearObjectStore         = "IndexedDB.clearObjectStore"
	CommandIndexedDBDeleteDatabase           = "IndexedDB.deleteDatabase"
	CommandIndexedDBDeleteObjectStoreEntries = "IndexedDB.deleteObjectStoreEntries"
	CommandIndexedDBDisable                  = "IndexedDB.disable"
	CommandIndexedDBEnable                   = "IndexedDB.enable"
	CommandIndexedDBRequestData              = "IndexedDB.requestData"
	CommandIndexedDBGetMetadata              = "IndexedDB.getMetadata"
	CommandIndexedDBRequestDatabase          = "IndexedDB.requestDatabase"
	CommandIndexedDBRequestDatabaseNames     = "IndexedDB.requestDatabaseNames"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClearObjectStoreArgs

type ClearObjectStoreArgs struct {
	SecurityOrigin  string `json:"securityOrigin"`  // Security origin.
	DatabaseName    string `json:"databaseName"`    // Database name.
	ObjectStoreName string `json:"objectStoreName"` // Object store name.
}

ClearObjectStoreArgs represents the arguments for ClearObjectStore in the IndexedDB domain.

func (*ClearObjectStoreArgs) MarshalJSON

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

Marshall the byte array into a return value for ClearObjectStore in the IndexedDB domain.

func (*ClearObjectStoreArgs) UnmarshalJSON

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

Unmarshal the byte array into a return value for ClearObjectStore in the IndexedDB domain.

type ClearObjectStoreReply

type ClearObjectStoreReply struct {
}

ClearObjectStoreReply represents the return values for ClearObjectStore in the IndexedDB domain.

func (*ClearObjectStoreReply) GetFrameID

func (a *ClearObjectStoreReply) GetFrameID() string

ClearObjectStoreReply returns the FrameID value for ClearObjectStore in the IndexedDB domain.

func (*ClearObjectStoreReply) MatchFrameID

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

ClearObjectStoreReply returns whether or not the FrameID matches the reply value for ClearObjectStore in the IndexedDB domain.

func (*ClearObjectStoreReply) UnmarshalJSON

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

Unmarshal the byte array into a return value for ClearObjectStore in the IndexedDB domain.

type DataEntry

type DataEntry struct {
	Key        runtime.RemoteObject `json:"key"`        // Key object.
	PrimaryKey runtime.RemoteObject `json:"primaryKey"` // Primary key object.
	Value      runtime.RemoteObject `json:"value"`      // Value object.
}

DataEntry Data entry.

type DatabaseWithObjectStores

type DatabaseWithObjectStores struct {
	Name         string        `json:"name"`         // Database name.
	Version      float64       `json:"version"`      // Database version (type is not 'integer', as the standard requires the version number to be 'unsigned long long')
	ObjectStores []ObjectStore `json:"objectStores"` // Object stores in this database.
}

DatabaseWithObjectStores Database with an array of object stores.

type DeleteDatabaseArgs

type DeleteDatabaseArgs struct {
	SecurityOrigin string `json:"securityOrigin"` // Security origin.
	DatabaseName   string `json:"databaseName"`   // Database name.
}

DeleteDatabaseArgs represents the arguments for DeleteDatabase in the IndexedDB domain.

func (*DeleteDatabaseArgs) MarshalJSON

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

Marshall the byte array into a return value for DeleteDatabase in the IndexedDB domain.

func (*DeleteDatabaseArgs) UnmarshalJSON

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

Unmarshal the byte array into a return value for DeleteDatabase in the IndexedDB domain.

type DeleteDatabaseReply

type DeleteDatabaseReply struct {
}

DeleteDatabaseReply represents the return values for DeleteDatabase in the IndexedDB domain.

func (*DeleteDatabaseReply) GetFrameID

func (a *DeleteDatabaseReply) GetFrameID() string

DeleteDatabaseReply returns the FrameID value for DeleteDatabase in the IndexedDB domain.

func (*DeleteDatabaseReply) MatchFrameID

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

DeleteDatabaseReply returns whether or not the FrameID matches the reply value for DeleteDatabase in the IndexedDB domain.

func (*DeleteDatabaseReply) UnmarshalJSON

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

Unmarshal the byte array into a return value for DeleteDatabase in the IndexedDB domain.

type DeleteObjectStoreEntriesArgs

type DeleteObjectStoreEntriesArgs struct {
	SecurityOrigin  string   `json:"securityOrigin"`  // No description.
	DatabaseName    string   `json:"databaseName"`    // No description.
	ObjectStoreName string   `json:"objectStoreName"` // No description.
	KeyRange        KeyRange `json:"keyRange"`        // Range of entry keys to delete
}

DeleteObjectStoreEntriesArgs represents the arguments for DeleteObjectStoreEntries in the IndexedDB domain.

func (*DeleteObjectStoreEntriesArgs) MarshalJSON

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

Marshall the byte array into a return value for DeleteObjectStoreEntries in the IndexedDB domain.

func (*DeleteObjectStoreEntriesArgs) UnmarshalJSON

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

Unmarshal the byte array into a return value for DeleteObjectStoreEntries in the IndexedDB domain.

type DeleteObjectStoreEntriesReply

type DeleteObjectStoreEntriesReply struct {
}

DeleteObjectStoreEntriesReply represents the return values for DeleteObjectStoreEntries in the IndexedDB domain.

func (*DeleteObjectStoreEntriesReply) GetFrameID

func (a *DeleteObjectStoreEntriesReply) GetFrameID() string

DeleteObjectStoreEntriesReply returns the FrameID value for DeleteObjectStoreEntries in the IndexedDB domain.

func (*DeleteObjectStoreEntriesReply) MatchFrameID

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

DeleteObjectStoreEntriesReply returns whether or not the FrameID matches the reply value for DeleteObjectStoreEntries in the IndexedDB domain.

func (*DeleteObjectStoreEntriesReply) UnmarshalJSON

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

Unmarshal the byte array into a return value for DeleteObjectStoreEntries in the IndexedDB domain.

type DisableArgs

type DisableArgs struct {
}

DisableArgs represents the arguments for Disable in the IndexedDB domain.

func (*DisableArgs) MarshalJSON

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

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

func (*DisableArgs) UnmarshalJSON

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

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

type DisableReply

type DisableReply struct {
}

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

func (*DisableReply) GetFrameID

func (a *DisableReply) GetFrameID() string

DisableReply returns the FrameID value for Disable in the IndexedDB 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 IndexedDB domain.

func (*DisableReply) UnmarshalJSON

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

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

type EnableArgs

type EnableArgs struct {
}

EnableArgs represents the arguments for Enable in the IndexedDB domain.

func (*EnableArgs) MarshalJSON

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

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

func (*EnableArgs) UnmarshalJSON

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

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

type EnableReply

type EnableReply struct {
}

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

func (*EnableReply) GetFrameID

func (a *EnableReply) GetFrameID() string

EnableReply returns the FrameID value for Enable in the IndexedDB 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 IndexedDB domain.

func (*EnableReply) UnmarshalJSON

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

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

type GetMetadataArgs

type GetMetadataArgs struct {
	SecurityOrigin  string `json:"securityOrigin"`  // Security origin.
	DatabaseName    string `json:"databaseName"`    // Database name.
	ObjectStoreName string `json:"objectStoreName"` // Object store name.
}

GetMetadataArgs represents the arguments for GetMetadata in the IndexedDB domain.

func (*GetMetadataArgs) MarshalJSON

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

Marshall the byte array into a return value for GetMetadata in the IndexedDB domain.

func (*GetMetadataArgs) UnmarshalJSON

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

Unmarshal the byte array into a return value for GetMetadata in the IndexedDB domain.

type GetMetadataReply

type GetMetadataReply struct {
	EntriesCount      float64 `json:"entriesCount"`      // the entries count
	KeyGeneratorValue float64 `json:"keyGeneratorValue"` // the current value of key generator, to become the next inserted key into the object store. Valid if objectStore.autoIncrement is true.
}

GetMetadataReply represents the return values for GetMetadata in the IndexedDB domain.

func (*GetMetadataReply) GetFrameID

func (a *GetMetadataReply) GetFrameID() string

GetMetadataReply returns the FrameID value for GetMetadata in the IndexedDB domain.

func (*GetMetadataReply) MatchFrameID

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

GetMetadataReply returns whether or not the FrameID matches the reply value for GetMetadata in the IndexedDB domain.

func (*GetMetadataReply) UnmarshalJSON

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

Unmarshal the byte array into a return value for GetMetadata in the IndexedDB domain.

type Key

type Key struct {
	// Type Key type.
	//
	// Values: "number", "string", "date", "array".
	Type   string  `json:"type"`
	Number float64 `json:"number,omitempty"` // Number value.
	String string  `json:"string,omitempty"` // String value.
	Date   float64 `json:"date,omitempty"`   // Date value.
	Array  *[]Key  `json:"array,omitempty"`  // Array value.
}

Key Key.

type KeyPath

type KeyPath struct {
	// Type Key path type.
	//
	// Values: "null", "string", "array".
	Type   string    `json:"type"`
	String string    `json:"string,omitempty"` // String value.
	Array  *[]string `json:"array,omitempty"`  // Array value.
}

KeyPath Key path.

type KeyRange

type KeyRange struct {
	Lower     *Key `json:"lower,omitempty"` // Lower bound.
	Upper     *Key `json:"upper,omitempty"` // Upper bound.
	LowerOpen bool `json:"lowerOpen"`       // If true lower bound is open.
	UpperOpen bool `json:"upperOpen"`       // If true upper bound is open.
}

KeyRange Key range.

type ObjectStore

type ObjectStore struct {
	Name          string             `json:"name"`          // Object store name.
	KeyPath       KeyPath            `json:"keyPath"`       // Object store key path.
	AutoIncrement bool               `json:"autoIncrement"` // If true, object store has auto increment flag set.
	Indexes       []ObjectStoreIndex `json:"indexes"`       // Indexes in this object store.
}

ObjectStore Object store.

type ObjectStoreIndex

type ObjectStoreIndex struct {
	Name       string  `json:"name"`       // Index name.
	KeyPath    KeyPath `json:"keyPath"`    // Index key path.
	Unique     bool    `json:"unique"`     // If true, index is unique.
	MultiEntry bool    `json:"multiEntry"` // If true, index allows multiple entries for a key.
}

ObjectStoreIndex Object store index.

type RequestDataArgs

type RequestDataArgs struct {
	SecurityOrigin  string    `json:"securityOrigin"`     // Security origin.
	DatabaseName    string    `json:"databaseName"`       // Database name.
	ObjectStoreName string    `json:"objectStoreName"`    // Object store name.
	IndexName       string    `json:"indexName"`          // Index name, empty string for object store data requests.
	SkipCount       int       `json:"skipCount"`          // Number of records to skip.
	PageSize        int       `json:"pageSize"`           // Number of records to fetch.
	KeyRange        *KeyRange `json:"keyRange,omitempty"` // Key range.
}

RequestDataArgs represents the arguments for RequestData in the IndexedDB domain.

func (*RequestDataArgs) MarshalJSON

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

Marshall the byte array into a return value for RequestData in the IndexedDB domain.

func (*RequestDataArgs) UnmarshalJSON

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

Unmarshal the byte array into a return value for RequestData in the IndexedDB domain.

type RequestDataReply

type RequestDataReply struct {
	ObjectStoreDataEntries []DataEntry `json:"objectStoreDataEntries"` // Array of object store data entries.
	HasMore                bool        `json:"hasMore"`                // If true, there are more entries to fetch in the given range.
}

RequestDataReply represents the return values for RequestData in the IndexedDB domain.

func (*RequestDataReply) GetFrameID

func (a *RequestDataReply) GetFrameID() string

RequestDataReply returns the FrameID value for RequestData in the IndexedDB domain.

func (*RequestDataReply) MatchFrameID

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

RequestDataReply returns whether or not the FrameID matches the reply value for RequestData in the IndexedDB domain.

func (*RequestDataReply) UnmarshalJSON

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

Unmarshal the byte array into a return value for RequestData in the IndexedDB domain.

type RequestDatabaseArgs

type RequestDatabaseArgs struct {
	SecurityOrigin string `json:"securityOrigin"` // Security origin.
	DatabaseName   string `json:"databaseName"`   // Database name.
}

RequestDatabaseArgs represents the arguments for RequestDatabase in the IndexedDB domain.

func (*RequestDatabaseArgs) MarshalJSON

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

Marshall the byte array into a return value for RequestDatabase in the IndexedDB domain.

func (*RequestDatabaseArgs) UnmarshalJSON

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

Unmarshal the byte array into a return value for RequestDatabase in the IndexedDB domain.

type RequestDatabaseNamesArgs

type RequestDatabaseNamesArgs struct {
	SecurityOrigin string `json:"securityOrigin"` // Security origin.
}

RequestDatabaseNamesArgs represents the arguments for RequestDatabaseNames in the IndexedDB domain.

func (*RequestDatabaseNamesArgs) MarshalJSON

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

Marshall the byte array into a return value for RequestDatabaseNames in the IndexedDB domain.

func (*RequestDatabaseNamesArgs) UnmarshalJSON

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

Unmarshal the byte array into a return value for RequestDatabaseNames in the IndexedDB domain.

type RequestDatabaseNamesReply

type RequestDatabaseNamesReply struct {
	DatabaseNames []string `json:"databaseNames"` // Database names for origin.
}

RequestDatabaseNamesReply represents the return values for RequestDatabaseNames in the IndexedDB domain.

func (*RequestDatabaseNamesReply) GetFrameID

func (a *RequestDatabaseNamesReply) GetFrameID() string

RequestDatabaseNamesReply returns the FrameID value for RequestDatabaseNames in the IndexedDB domain.

func (*RequestDatabaseNamesReply) MatchFrameID

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

RequestDatabaseNamesReply returns whether or not the FrameID matches the reply value for RequestDatabaseNames in the IndexedDB domain.

func (*RequestDatabaseNamesReply) UnmarshalJSON

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

Unmarshal the byte array into a return value for RequestDatabaseNames in the IndexedDB domain.

type RequestDatabaseReply

type RequestDatabaseReply struct {
	DatabaseWithObjectStores DatabaseWithObjectStores `json:"databaseWithObjectStores"` // Database with an array of object stores.
}

RequestDatabaseReply represents the return values for RequestDatabase in the IndexedDB domain.

func (*RequestDatabaseReply) GetFrameID

func (a *RequestDatabaseReply) GetFrameID() string

RequestDatabaseReply returns the FrameID value for RequestDatabase in the IndexedDB domain.

func (*RequestDatabaseReply) MatchFrameID

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

RequestDatabaseReply returns whether or not the FrameID matches the reply value for RequestDatabase in the IndexedDB domain.

func (*RequestDatabaseReply) UnmarshalJSON

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

Unmarshal the byte array into a return value for RequestDatabase in the IndexedDB domain.

Jump to

Keyboard shortcuts

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