cdproto: github.com/chromedp/cdproto/indexeddb Index | Files

package indexeddb

import "github.com/chromedp/cdproto/indexeddb"

Package indexeddb provides the Chrome DevTools Protocol commands, types, and events for the IndexedDB domain.

Generated by the cdproto-gen command.

Index

Package Files

easyjson.go indexeddb.go types.go

Constants

const (
    CommandClearObjectStore         = "IndexedDB.clearObjectStore"
    CommandDeleteDatabase           = "IndexedDB.deleteDatabase"
    CommandDeleteObjectStoreEntries = "IndexedDB.deleteObjectStoreEntries"
    CommandDisable                  = "IndexedDB.disable"
    CommandEnable                   = "IndexedDB.enable"
    CommandRequestData              = "IndexedDB.requestData"
    CommandGetMetadata              = "IndexedDB.getMetadata"
    CommandRequestDatabase          = "IndexedDB.requestDatabase"
    CommandRequestDatabaseNames     = "IndexedDB.requestDatabaseNames"
)

Command names.

type ClearObjectStoreParams Uses

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

ClearObjectStoreParams clears all entries from an object store.

func ClearObjectStore Uses

func ClearObjectStore(securityOrigin string, databaseName string, objectStoreName string) *ClearObjectStoreParams

ClearObjectStore clears all entries from an object store.

See: https://chromedevtools.github.io/devtools-protocol/tot/IndexedDB#method-clearObjectStore

parameters:

securityOrigin - Security origin.
databaseName - Database name.
objectStoreName - Object store name.

func (*ClearObjectStoreParams) Do Uses

func (p *ClearObjectStoreParams) Do(ctx context.Context) (err error)

Do executes IndexedDB.clearObjectStore against the provided context.

func (ClearObjectStoreParams) MarshalEasyJSON Uses

func (v ClearObjectStoreParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ClearObjectStoreParams) MarshalJSON Uses

func (v ClearObjectStoreParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ClearObjectStoreParams) UnmarshalEasyJSON Uses

func (v *ClearObjectStoreParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ClearObjectStoreParams) UnmarshalJSON Uses

func (v *ClearObjectStoreParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DataEntry Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/IndexedDB#type-DataEntry

func (DataEntry) MarshalEasyJSON Uses

func (v DataEntry) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DataEntry) MarshalJSON Uses

func (v DataEntry) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DataEntry) UnmarshalEasyJSON Uses

func (v *DataEntry) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DataEntry) UnmarshalJSON Uses

func (v *DataEntry) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DatabaseWithObjectStores Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/IndexedDB#type-DatabaseWithObjectStores

func (DatabaseWithObjectStores) MarshalEasyJSON Uses

func (v DatabaseWithObjectStores) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DatabaseWithObjectStores) MarshalJSON Uses

func (v DatabaseWithObjectStores) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DatabaseWithObjectStores) UnmarshalEasyJSON Uses

func (v *DatabaseWithObjectStores) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DatabaseWithObjectStores) UnmarshalJSON Uses

func (v *DatabaseWithObjectStores) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DeleteDatabaseParams Uses

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

DeleteDatabaseParams deletes a database.

func DeleteDatabase Uses

func DeleteDatabase(securityOrigin string, databaseName string) *DeleteDatabaseParams

DeleteDatabase deletes a database.

See: https://chromedevtools.github.io/devtools-protocol/tot/IndexedDB#method-deleteDatabase

parameters:

securityOrigin - Security origin.
databaseName - Database name.

func (*DeleteDatabaseParams) Do Uses

func (p *DeleteDatabaseParams) Do(ctx context.Context) (err error)

Do executes IndexedDB.deleteDatabase against the provided context.

func (DeleteDatabaseParams) MarshalEasyJSON Uses

func (v DeleteDatabaseParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DeleteDatabaseParams) MarshalJSON Uses

func (v DeleteDatabaseParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DeleteDatabaseParams) UnmarshalEasyJSON Uses

func (v *DeleteDatabaseParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DeleteDatabaseParams) UnmarshalJSON Uses

func (v *DeleteDatabaseParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DeleteObjectStoreEntriesParams Uses

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

DeleteObjectStoreEntriesParams delete a range of entries from an object store.

func DeleteObjectStoreEntries Uses

func DeleteObjectStoreEntries(securityOrigin string, databaseName string, objectStoreName string, keyRange *KeyRange) *DeleteObjectStoreEntriesParams

DeleteObjectStoreEntries delete a range of entries from an object store.

See: https://chromedevtools.github.io/devtools-protocol/tot/IndexedDB#method-deleteObjectStoreEntries

parameters:

securityOrigin
databaseName
objectStoreName
keyRange - Range of entry keys to delete

func (*DeleteObjectStoreEntriesParams) Do Uses

func (p *DeleteObjectStoreEntriesParams) Do(ctx context.Context) (err error)

Do executes IndexedDB.deleteObjectStoreEntries against the provided context.

func (DeleteObjectStoreEntriesParams) MarshalEasyJSON Uses

func (v DeleteObjectStoreEntriesParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DeleteObjectStoreEntriesParams) MarshalJSON Uses

func (v DeleteObjectStoreEntriesParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DeleteObjectStoreEntriesParams) UnmarshalEasyJSON Uses

func (v *DeleteObjectStoreEntriesParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DeleteObjectStoreEntriesParams) UnmarshalJSON Uses

func (v *DeleteObjectStoreEntriesParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DisableParams Uses

type DisableParams struct{}

DisableParams disables events from backend.

func Disable Uses

func Disable() *DisableParams

Disable disables events from backend.

See: https://chromedevtools.github.io/devtools-protocol/tot/IndexedDB#method-disable

func (*DisableParams) Do Uses

func (p *DisableParams) Do(ctx context.Context) (err error)

Do executes IndexedDB.disable against the provided context.

func (DisableParams) MarshalEasyJSON Uses

func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON Uses

func (v DisableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON Uses

func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON Uses

func (v *DisableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EnableParams Uses

type EnableParams struct{}

EnableParams enables events from backend.

func Enable Uses

func Enable() *EnableParams

Enable enables events from backend.

See: https://chromedevtools.github.io/devtools-protocol/tot/IndexedDB#method-enable

func (*EnableParams) Do Uses

func (p *EnableParams) Do(ctx context.Context) (err error)

Do executes IndexedDB.enable against the provided context.

func (EnableParams) MarshalEasyJSON Uses

func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON Uses

func (v EnableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON Uses

func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON Uses

func (v *EnableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetMetadataParams Uses

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

GetMetadataParams gets metadata of an object store.

func GetMetadata Uses

func GetMetadata(securityOrigin string, databaseName string, objectStoreName string) *GetMetadataParams

GetMetadata gets metadata of an object store.

See: https://chromedevtools.github.io/devtools-protocol/tot/IndexedDB#method-getMetadata

parameters:

securityOrigin - Security origin.
databaseName - Database name.
objectStoreName - Object store name.

func (*GetMetadataParams) Do Uses

func (p *GetMetadataParams) Do(ctx context.Context) (entriesCount float64, keyGeneratorValue float64, err error)

Do executes IndexedDB.getMetadata against the provided context.

returns:

entriesCount - the entries count
keyGeneratorValue - the current value of key generator, to become the next inserted key into the object store. Valid if objectStore.autoIncrement is true.

func (GetMetadataParams) MarshalEasyJSON Uses

func (v GetMetadataParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetMetadataParams) MarshalJSON Uses

func (v GetMetadataParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetMetadataParams) UnmarshalEasyJSON Uses

func (v *GetMetadataParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetMetadataParams) UnmarshalJSON Uses

func (v *GetMetadataParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetMetadataReturns Uses

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

GetMetadataReturns return values.

func (GetMetadataReturns) MarshalEasyJSON Uses

func (v GetMetadataReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetMetadataReturns) MarshalJSON Uses

func (v GetMetadataReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetMetadataReturns) UnmarshalEasyJSON Uses

func (v *GetMetadataReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetMetadataReturns) UnmarshalJSON Uses

func (v *GetMetadataReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Key Uses

type Key struct {
    Type   KeyType `json:"type"`             // Key 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.

See: https://chromedevtools.github.io/devtools-protocol/tot/IndexedDB#type-Key

func (Key) MarshalEasyJSON Uses

func (v Key) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Key) MarshalJSON Uses

func (v Key) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Key) UnmarshalEasyJSON Uses

func (v *Key) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Key) UnmarshalJSON Uses

func (v *Key) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type KeyPath Uses

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

KeyPath key path.

See: https://chromedevtools.github.io/devtools-protocol/tot/IndexedDB#type-KeyPath

func (KeyPath) MarshalEasyJSON Uses

func (v KeyPath) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (KeyPath) MarshalJSON Uses

func (v KeyPath) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*KeyPath) UnmarshalEasyJSON Uses

func (v *KeyPath) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*KeyPath) UnmarshalJSON Uses

func (v *KeyPath) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type KeyPathType Uses

type KeyPathType string

KeyPathType key path type.

See: https://chromedevtools.github.io/devtools-protocol/tot/IndexedDB#type-KeyPath

const (
    KeyPathTypeNull   KeyPathType = "null"
    KeyPathTypeString KeyPathType = "string"
    KeyPathTypeArray  KeyPathType = "array"
)

KeyPathType values.

func (KeyPathType) MarshalEasyJSON Uses

func (t KeyPathType) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (KeyPathType) MarshalJSON Uses

func (t KeyPathType) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (KeyPathType) String Uses

func (t KeyPathType) String() string

String returns the KeyPathType as string value.

func (*KeyPathType) UnmarshalEasyJSON Uses

func (t *KeyPathType) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*KeyPathType) UnmarshalJSON Uses

func (t *KeyPathType) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type KeyRange Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/IndexedDB#type-KeyRange

func (KeyRange) MarshalEasyJSON Uses

func (v KeyRange) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (KeyRange) MarshalJSON Uses

func (v KeyRange) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*KeyRange) UnmarshalEasyJSON Uses

func (v *KeyRange) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*KeyRange) UnmarshalJSON Uses

func (v *KeyRange) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type KeyType Uses

type KeyType string

KeyType key type.

See: https://chromedevtools.github.io/devtools-protocol/tot/IndexedDB#type-Key

const (
    KeyTypeNumber KeyType = "number"
    KeyTypeString KeyType = "string"
    KeyTypeDate   KeyType = "date"
    KeyTypeArray  KeyType = "array"
)

KeyType values.

func (KeyType) MarshalEasyJSON Uses

func (t KeyType) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (KeyType) MarshalJSON Uses

func (t KeyType) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (KeyType) String Uses

func (t KeyType) String() string

String returns the KeyType as string value.

func (*KeyType) UnmarshalEasyJSON Uses

func (t *KeyType) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*KeyType) UnmarshalJSON Uses

func (t *KeyType) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type ObjectStore Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/IndexedDB#type-ObjectStore

func (ObjectStore) MarshalEasyJSON Uses

func (v ObjectStore) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ObjectStore) MarshalJSON Uses

func (v ObjectStore) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ObjectStore) UnmarshalEasyJSON Uses

func (v *ObjectStore) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ObjectStore) UnmarshalJSON Uses

func (v *ObjectStore) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ObjectStoreIndex Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/IndexedDB#type-ObjectStoreIndex

func (ObjectStoreIndex) MarshalEasyJSON Uses

func (v ObjectStoreIndex) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ObjectStoreIndex) MarshalJSON Uses

func (v ObjectStoreIndex) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ObjectStoreIndex) UnmarshalEasyJSON Uses

func (v *ObjectStoreIndex) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ObjectStoreIndex) UnmarshalJSON Uses

func (v *ObjectStoreIndex) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RequestDataParams Uses

type RequestDataParams 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       int64     `json:"skipCount"`          // Number of records to skip.
    PageSize        int64     `json:"pageSize"`           // Number of records to fetch.
    KeyRange        *KeyRange `json:"keyRange,omitempty"` // Key range.
}

RequestDataParams requests data from object store or index.

func RequestData Uses

func RequestData(securityOrigin string, databaseName string, objectStoreName string, indexName string, skipCount int64, pageSize int64) *RequestDataParams

RequestData requests data from object store or index.

See: https://chromedevtools.github.io/devtools-protocol/tot/IndexedDB#method-requestData

parameters:

securityOrigin - Security origin.
databaseName - Database name.
objectStoreName - Object store name.
indexName - Index name, empty string for object store data requests.
skipCount - Number of records to skip.
pageSize - Number of records to fetch.

func (*RequestDataParams) Do Uses

func (p *RequestDataParams) Do(ctx context.Context) (objectStoreDataEntries []*DataEntry, hasMore bool, err error)

Do executes IndexedDB.requestData against the provided context.

returns:

objectStoreDataEntries - Array of object store data entries.
hasMore - If true, there are more entries to fetch in the given range.

func (RequestDataParams) MarshalEasyJSON Uses

func (v RequestDataParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RequestDataParams) MarshalJSON Uses

func (v RequestDataParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RequestDataParams) UnmarshalEasyJSON Uses

func (v *RequestDataParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RequestDataParams) UnmarshalJSON Uses

func (v *RequestDataParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (RequestDataParams) WithKeyRange Uses

func (p RequestDataParams) WithKeyRange(keyRange *KeyRange) *RequestDataParams

WithKeyRange key range.

type RequestDataReturns Uses

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

RequestDataReturns return values.

func (RequestDataReturns) MarshalEasyJSON Uses

func (v RequestDataReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RequestDataReturns) MarshalJSON Uses

func (v RequestDataReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RequestDataReturns) UnmarshalEasyJSON Uses

func (v *RequestDataReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RequestDataReturns) UnmarshalJSON Uses

func (v *RequestDataReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RequestDatabaseNamesParams Uses

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

RequestDatabaseNamesParams requests database names for given security origin.

func RequestDatabaseNames Uses

func RequestDatabaseNames(securityOrigin string) *RequestDatabaseNamesParams

RequestDatabaseNames requests database names for given security origin.

See: https://chromedevtools.github.io/devtools-protocol/tot/IndexedDB#method-requestDatabaseNames

parameters:

securityOrigin - Security origin.

func (*RequestDatabaseNamesParams) Do Uses

func (p *RequestDatabaseNamesParams) Do(ctx context.Context) (databaseNames []string, err error)

Do executes IndexedDB.requestDatabaseNames against the provided context.

returns:

databaseNames - Database names for origin.

func (RequestDatabaseNamesParams) MarshalEasyJSON Uses

func (v RequestDatabaseNamesParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RequestDatabaseNamesParams) MarshalJSON Uses

func (v RequestDatabaseNamesParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RequestDatabaseNamesParams) UnmarshalEasyJSON Uses

func (v *RequestDatabaseNamesParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RequestDatabaseNamesParams) UnmarshalJSON Uses

func (v *RequestDatabaseNamesParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RequestDatabaseNamesReturns Uses

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

RequestDatabaseNamesReturns return values.

func (RequestDatabaseNamesReturns) MarshalEasyJSON Uses

func (v RequestDatabaseNamesReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RequestDatabaseNamesReturns) MarshalJSON Uses

func (v RequestDatabaseNamesReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RequestDatabaseNamesReturns) UnmarshalEasyJSON Uses

func (v *RequestDatabaseNamesReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RequestDatabaseNamesReturns) UnmarshalJSON Uses

func (v *RequestDatabaseNamesReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RequestDatabaseParams Uses

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

RequestDatabaseParams requests database with given name in given frame.

func RequestDatabase Uses

func RequestDatabase(securityOrigin string, databaseName string) *RequestDatabaseParams

RequestDatabase requests database with given name in given frame.

See: https://chromedevtools.github.io/devtools-protocol/tot/IndexedDB#method-requestDatabase

parameters:

securityOrigin - Security origin.
databaseName - Database name.

func (*RequestDatabaseParams) Do Uses

func (p *RequestDatabaseParams) Do(ctx context.Context) (databaseWithObjectStores *DatabaseWithObjectStores, err error)

Do executes IndexedDB.requestDatabase against the provided context.

returns:

databaseWithObjectStores - Database with an array of object stores.

func (RequestDatabaseParams) MarshalEasyJSON Uses

func (v RequestDatabaseParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RequestDatabaseParams) MarshalJSON Uses

func (v RequestDatabaseParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RequestDatabaseParams) UnmarshalEasyJSON Uses

func (v *RequestDatabaseParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RequestDatabaseParams) UnmarshalJSON Uses

func (v *RequestDatabaseParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RequestDatabaseReturns Uses

type RequestDatabaseReturns struct {
    DatabaseWithObjectStores *DatabaseWithObjectStores `json:"databaseWithObjectStores,omitempty"` // Database with an array of object stores.
}

RequestDatabaseReturns return values.

func (RequestDatabaseReturns) MarshalEasyJSON Uses

func (v RequestDatabaseReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RequestDatabaseReturns) MarshalJSON Uses

func (v RequestDatabaseReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RequestDatabaseReturns) UnmarshalEasyJSON Uses

func (v *RequestDatabaseReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RequestDatabaseReturns) UnmarshalJSON Uses

func (v *RequestDatabaseReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Package indexeddb imports 8 packages (graph) and is imported by 3 packages. Updated 2021-01-07. Refresh now. Tools for package owners.