Versions in this module Expand all Collapse all v0 v0.0.4 Jun 30, 2024 Changes in this version + const CommandClearObjectStore + const CommandDeleteDatabase + const CommandDeleteObjectStoreEntries + const CommandDisable + const CommandEnable + const CommandGetMetadata + const CommandRequestData + const CommandRequestDatabase + const CommandRequestDatabaseNames + type ClearObjectStoreParams struct + DatabaseName string + ObjectStoreName string + SecurityOrigin string + StorageBucket *storage.Bucket + StorageKey string + func ClearObjectStore(databaseName string, objectStoreName string) *ClearObjectStoreParams + func (p *ClearObjectStoreParams) Do(ctx context.Context) (err error) + func (p ClearObjectStoreParams) WithSecurityOrigin(securityOrigin string) *ClearObjectStoreParams + func (p ClearObjectStoreParams) WithStorageBucket(storageBucket *storage.Bucket) *ClearObjectStoreParams + func (p ClearObjectStoreParams) WithStorageKey(storageKey string) *ClearObjectStoreParams + func (v *ClearObjectStoreParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *ClearObjectStoreParams) UnmarshalJSON(data []byte) error + func (v ClearObjectStoreParams) MarshalEasyJSON(w *jwriter.Writer) + func (v ClearObjectStoreParams) MarshalJSON() ([]byte, error) + type DataEntry struct + Key *runtime.RemoteObject + PrimaryKey *runtime.RemoteObject + Value *runtime.RemoteObject + func (v *DataEntry) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *DataEntry) UnmarshalJSON(data []byte) error + func (v DataEntry) MarshalEasyJSON(w *jwriter.Writer) + func (v DataEntry) MarshalJSON() ([]byte, error) + type DatabaseWithObjectStores struct + Name string + ObjectStores []*ObjectStore + Version float64 + func (v *DatabaseWithObjectStores) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *DatabaseWithObjectStores) UnmarshalJSON(data []byte) error + func (v DatabaseWithObjectStores) MarshalEasyJSON(w *jwriter.Writer) + func (v DatabaseWithObjectStores) MarshalJSON() ([]byte, error) + type DeleteDatabaseParams struct + DatabaseName string + SecurityOrigin string + StorageBucket *storage.Bucket + StorageKey string + func DeleteDatabase(databaseName string) *DeleteDatabaseParams + func (p *DeleteDatabaseParams) Do(ctx context.Context) (err error) + func (p DeleteDatabaseParams) WithSecurityOrigin(securityOrigin string) *DeleteDatabaseParams + func (p DeleteDatabaseParams) WithStorageBucket(storageBucket *storage.Bucket) *DeleteDatabaseParams + func (p DeleteDatabaseParams) WithStorageKey(storageKey string) *DeleteDatabaseParams + func (v *DeleteDatabaseParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *DeleteDatabaseParams) UnmarshalJSON(data []byte) error + func (v DeleteDatabaseParams) MarshalEasyJSON(w *jwriter.Writer) + func (v DeleteDatabaseParams) MarshalJSON() ([]byte, error) + type DeleteObjectStoreEntriesParams struct + DatabaseName string + KeyRange *KeyRange + ObjectStoreName string + SecurityOrigin string + StorageBucket *storage.Bucket + StorageKey string + func DeleteObjectStoreEntries(databaseName string, objectStoreName string, keyRange *KeyRange) *DeleteObjectStoreEntriesParams + func (p *DeleteObjectStoreEntriesParams) Do(ctx context.Context) (err error) + func (p DeleteObjectStoreEntriesParams) WithSecurityOrigin(securityOrigin string) *DeleteObjectStoreEntriesParams + func (p DeleteObjectStoreEntriesParams) WithStorageBucket(storageBucket *storage.Bucket) *DeleteObjectStoreEntriesParams + func (p DeleteObjectStoreEntriesParams) WithStorageKey(storageKey string) *DeleteObjectStoreEntriesParams + func (v *DeleteObjectStoreEntriesParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *DeleteObjectStoreEntriesParams) UnmarshalJSON(data []byte) error + func (v DeleteObjectStoreEntriesParams) MarshalEasyJSON(w *jwriter.Writer) + func (v DeleteObjectStoreEntriesParams) MarshalJSON() ([]byte, error) + type DisableParams struct + func Disable() *DisableParams + func (p *DisableParams) Do(ctx context.Context) (err error) + func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *DisableParams) UnmarshalJSON(data []byte) error + func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) + func (v DisableParams) MarshalJSON() ([]byte, error) + type EnableParams struct + func Enable() *EnableParams + func (p *EnableParams) Do(ctx context.Context) (err error) + func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *EnableParams) UnmarshalJSON(data []byte) error + func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) + func (v EnableParams) MarshalJSON() ([]byte, error) + type GetMetadataParams struct + DatabaseName string + ObjectStoreName string + SecurityOrigin string + StorageBucket *storage.Bucket + StorageKey string + func GetMetadata(databaseName string, objectStoreName string) *GetMetadataParams + func (p *GetMetadataParams) Do(ctx context.Context) (entriesCount float64, keyGeneratorValue float64, err error) + func (p GetMetadataParams) WithSecurityOrigin(securityOrigin string) *GetMetadataParams + func (p GetMetadataParams) WithStorageBucket(storageBucket *storage.Bucket) *GetMetadataParams + func (p GetMetadataParams) WithStorageKey(storageKey string) *GetMetadataParams + func (v *GetMetadataParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetMetadataParams) UnmarshalJSON(data []byte) error + func (v GetMetadataParams) MarshalEasyJSON(w *jwriter.Writer) + func (v GetMetadataParams) MarshalJSON() ([]byte, error) + type GetMetadataReturns struct + EntriesCount float64 + KeyGeneratorValue float64 + func (v *GetMetadataReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetMetadataReturns) UnmarshalJSON(data []byte) error + func (v GetMetadataReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v GetMetadataReturns) MarshalJSON() ([]byte, error) + type Key struct + Array []*Key + Date float64 + Number float64 + String string + Type KeyType + func (v *Key) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *Key) UnmarshalJSON(data []byte) error + func (v Key) MarshalEasyJSON(w *jwriter.Writer) + func (v Key) MarshalJSON() ([]byte, error) + type KeyPath struct + Array []string + String string + Type KeyPathType + func (v *KeyPath) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *KeyPath) UnmarshalJSON(data []byte) error + func (v KeyPath) MarshalEasyJSON(w *jwriter.Writer) + func (v KeyPath) MarshalJSON() ([]byte, error) + type KeyPathType string + const KeyPathTypeArray + const KeyPathTypeNull + const KeyPathTypeString + func (t *KeyPathType) UnmarshalEasyJSON(in *jlexer.Lexer) + func (t *KeyPathType) UnmarshalJSON(buf []byte) error + func (t KeyPathType) MarshalEasyJSON(out *jwriter.Writer) + func (t KeyPathType) MarshalJSON() ([]byte, error) + func (t KeyPathType) String() string + type KeyRange struct + Lower *Key + LowerOpen bool + Upper *Key + UpperOpen bool + func (v *KeyRange) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *KeyRange) UnmarshalJSON(data []byte) error + func (v KeyRange) MarshalEasyJSON(w *jwriter.Writer) + func (v KeyRange) MarshalJSON() ([]byte, error) + type KeyType string + const KeyTypeArray + const KeyTypeDate + const KeyTypeNumber + const KeyTypeString + func (t *KeyType) UnmarshalEasyJSON(in *jlexer.Lexer) + func (t *KeyType) UnmarshalJSON(buf []byte) error + func (t KeyType) MarshalEasyJSON(out *jwriter.Writer) + func (t KeyType) MarshalJSON() ([]byte, error) + func (t KeyType) String() string + type ObjectStore struct + AutoIncrement bool + Indexes []*ObjectStoreIndex + KeyPath *KeyPath + Name string + func (v *ObjectStore) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *ObjectStore) UnmarshalJSON(data []byte) error + func (v ObjectStore) MarshalEasyJSON(w *jwriter.Writer) + func (v ObjectStore) MarshalJSON() ([]byte, error) + type ObjectStoreIndex struct + KeyPath *KeyPath + MultiEntry bool + Name string + Unique bool + func (v *ObjectStoreIndex) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *ObjectStoreIndex) UnmarshalJSON(data []byte) error + func (v ObjectStoreIndex) MarshalEasyJSON(w *jwriter.Writer) + func (v ObjectStoreIndex) MarshalJSON() ([]byte, error) + type RequestDataParams struct + DatabaseName string + IndexName string + KeyRange *KeyRange + ObjectStoreName string + PageSize int64 + SecurityOrigin string + SkipCount int64 + StorageBucket *storage.Bucket + StorageKey string + func RequestData(databaseName string, objectStoreName string, indexName string, skipCount int64, ...) *RequestDataParams + func (p *RequestDataParams) Do(ctx context.Context) (objectStoreDataEntries []*DataEntry, hasMore bool, err error) + func (p RequestDataParams) WithKeyRange(keyRange *KeyRange) *RequestDataParams + func (p RequestDataParams) WithSecurityOrigin(securityOrigin string) *RequestDataParams + func (p RequestDataParams) WithStorageBucket(storageBucket *storage.Bucket) *RequestDataParams + func (p RequestDataParams) WithStorageKey(storageKey string) *RequestDataParams + func (v *RequestDataParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *RequestDataParams) UnmarshalJSON(data []byte) error + func (v RequestDataParams) MarshalEasyJSON(w *jwriter.Writer) + func (v RequestDataParams) MarshalJSON() ([]byte, error) + type RequestDataReturns struct + HasMore bool + ObjectStoreDataEntries []*DataEntry + func (v *RequestDataReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *RequestDataReturns) UnmarshalJSON(data []byte) error + func (v RequestDataReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v RequestDataReturns) MarshalJSON() ([]byte, error) + type RequestDatabaseNamesParams struct + SecurityOrigin string + StorageBucket *storage.Bucket + StorageKey string + func RequestDatabaseNames() *RequestDatabaseNamesParams + func (p *RequestDatabaseNamesParams) Do(ctx context.Context) (databaseNames []string, err error) + func (p RequestDatabaseNamesParams) WithSecurityOrigin(securityOrigin string) *RequestDatabaseNamesParams + func (p RequestDatabaseNamesParams) WithStorageBucket(storageBucket *storage.Bucket) *RequestDatabaseNamesParams + func (p RequestDatabaseNamesParams) WithStorageKey(storageKey string) *RequestDatabaseNamesParams + func (v *RequestDatabaseNamesParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *RequestDatabaseNamesParams) UnmarshalJSON(data []byte) error + func (v RequestDatabaseNamesParams) MarshalEasyJSON(w *jwriter.Writer) + func (v RequestDatabaseNamesParams) MarshalJSON() ([]byte, error) + type RequestDatabaseNamesReturns struct + DatabaseNames []string + func (v *RequestDatabaseNamesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *RequestDatabaseNamesReturns) UnmarshalJSON(data []byte) error + func (v RequestDatabaseNamesReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v RequestDatabaseNamesReturns) MarshalJSON() ([]byte, error) + type RequestDatabaseParams struct + DatabaseName string + SecurityOrigin string + StorageBucket *storage.Bucket + StorageKey string + func RequestDatabase(databaseName string) *RequestDatabaseParams + func (p *RequestDatabaseParams) Do(ctx context.Context) (databaseWithObjectStores *DatabaseWithObjectStores, err error) + func (p RequestDatabaseParams) WithSecurityOrigin(securityOrigin string) *RequestDatabaseParams + func (p RequestDatabaseParams) WithStorageBucket(storageBucket *storage.Bucket) *RequestDatabaseParams + func (p RequestDatabaseParams) WithStorageKey(storageKey string) *RequestDatabaseParams + func (v *RequestDatabaseParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *RequestDatabaseParams) UnmarshalJSON(data []byte) error + func (v RequestDatabaseParams) MarshalEasyJSON(w *jwriter.Writer) + func (v RequestDatabaseParams) MarshalJSON() ([]byte, error) + type RequestDatabaseReturns struct + DatabaseWithObjectStores *DatabaseWithObjectStores + func (v *RequestDatabaseReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *RequestDatabaseReturns) UnmarshalJSON(data []byte) error + func (v RequestDatabaseReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v RequestDatabaseReturns) MarshalJSON() ([]byte, error)