package indexeddb// Code generated by cdproto-gen. DO NOT EDIT.import ()// DatabaseWithObjectStores database with an array of object stores.//// See: https://chromedevtools.github.io/devtools-protocol/tot/IndexedDB#type-DatabaseWithObjectStorestypeDatabaseWithObjectStoresstruct { 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.}// ObjectStore object store.//// See: https://chromedevtools.github.io/devtools-protocol/tot/IndexedDB#type-ObjectStoretypeObjectStorestruct { 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.}// ObjectStoreIndex object store index.//// See: https://chromedevtools.github.io/devtools-protocol/tot/IndexedDB#type-ObjectStoreIndextypeObjectStoreIndexstruct { 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.}// Key Key.//// See: https://chromedevtools.github.io/devtools-protocol/tot/IndexedDB#type-KeytypeKeystruct { 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.}// KeyRange key range.//// See: https://chromedevtools.github.io/devtools-protocol/tot/IndexedDB#type-KeyRangetypeKeyRangestruct { 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.}// DataEntry data entry.//// See: https://chromedevtools.github.io/devtools-protocol/tot/IndexedDB#type-DataEntrytypeDataEntrystruct { Key *runtime.RemoteObject`json:"key"`// Key object. PrimaryKey *runtime.RemoteObject`json:"primaryKey"`// Primary key object. Value *runtime.RemoteObject`json:"value"`// Value object.}// KeyPath key path.//// See: https://chromedevtools.github.io/devtools-protocol/tot/IndexedDB#type-KeyPathtypeKeyPathstruct { Type KeyPathType`json:"type"`// Key path type. String string`json:"string,omitempty"`// String value. Array []string`json:"array,omitempty"`// Array value.}// KeyType key type.//// See: https://chromedevtools.github.io/devtools-protocol/tot/IndexedDB#type-KeytypeKeyTypestring// String returns the KeyType as string value.func ( KeyType) () string {returnstring()}// KeyType values.const (KeyTypeNumberKeyType = "number"KeyTypeStringKeyType = "string"KeyTypeDateKeyType = "date"KeyTypeArrayKeyType = "array")// MarshalEasyJSON satisfies easyjson.Marshaler.func ( KeyType) ( *jwriter.Writer) { .String(string())}// MarshalJSON satisfies json.Marshaler.func ( KeyType) () ([]byte, error) {returneasyjson.Marshal()}// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.func ( *KeyType) ( *jlexer.Lexer) { := .String()switchKeyType() {caseKeyTypeNumber: * = KeyTypeNumbercaseKeyTypeString: * = KeyTypeStringcaseKeyTypeDate: * = KeyTypeDatecaseKeyTypeArray: * = KeyTypeArraydefault: .AddError(fmt.Errorf("unknown KeyType value: %v", )) }}// UnmarshalJSON satisfies json.Unmarshaler.func ( *KeyType) ( []byte) error {returneasyjson.Unmarshal(, )}// KeyPathType key path type.//// See: https://chromedevtools.github.io/devtools-protocol/tot/IndexedDB#type-KeyPathtypeKeyPathTypestring// String returns the KeyPathType as string value.func ( KeyPathType) () string {returnstring()}// KeyPathType values.const (KeyPathTypeNullKeyPathType = "null"KeyPathTypeStringKeyPathType = "string"KeyPathTypeArrayKeyPathType = "array")// MarshalEasyJSON satisfies easyjson.Marshaler.func ( KeyPathType) ( *jwriter.Writer) { .String(string())}// MarshalJSON satisfies json.Marshaler.func ( KeyPathType) () ([]byte, error) {returneasyjson.Marshal()}// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.func ( *KeyPathType) ( *jlexer.Lexer) { := .String()switchKeyPathType() {caseKeyPathTypeNull: * = KeyPathTypeNullcaseKeyPathTypeString: * = KeyPathTypeStringcaseKeyPathTypeArray: * = KeyPathTypeArraydefault: .AddError(fmt.Errorf("unknown KeyPathType value: %v", )) }}// UnmarshalJSON satisfies json.Unmarshaler.func ( *KeyPathType) ( []byte) error {returneasyjson.Unmarshal(, )}
The pages are generated with Goldsv0.8.2. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.