webapi: github.com/gowebapi/webapi/indexeddb Index | Examples | Files

package indexeddb

import "github.com/gowebapi/webapi/indexeddb"

Package indexeddb is a database of records holding simple values and hierarchical objects.

Code:

request := webapi.GetWindow().IndexedDB().Open("test", nil)
request.AddEventSuccess(func(event *domcore.Event, target *indexeddb.IDBRequest) {})
request.AddEventUpgradeNeeded(func(event *domcore.Event, currentTarget *indexeddb.IDBOpenDBRequest) {
    db := indexeddb.IDBDatabaseFromJS(request.Result())
    db.CreateObjectStore("names", &indexeddb.IDBObjectStoreParameters{
        AutoIncrement: true,
    })
    /* javascript version is:
       var db = event.target.result;
       var objStore = db.createObjectStore("names", { autoIncrement : true });
    */
})

Index

Examples

Package Files

doc.go indexeddb.go

type IDBCursor Uses

type IDBCursor struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: IDBCursor

func IDBCursorFromJS Uses

func IDBCursorFromJS(value js.Wrapper) *IDBCursor

IDBCursorFromJS is casting a js.Wrapper into IDBCursor.

func (*IDBCursor) Advance Uses

func (_this *IDBCursor) Advance(count uint)

func (*IDBCursor) Continue Uses

func (_this *IDBCursor) Continue(key interface{})

func (*IDBCursor) ContinuePrimaryKey Uses

func (_this *IDBCursor) ContinuePrimaryKey(key interface{}, primaryKey interface{})

func (*IDBCursor) Delete Uses

func (_this *IDBCursor) Delete() (_result *IDBRequest)

func (*IDBCursor) Direction Uses

func (_this *IDBCursor) Direction() IDBCursorDirection

Direction returning attribute 'direction' with type IDBCursorDirection (idl: IDBCursorDirection).

func (*IDBCursor) JSValue Uses

func (_this *IDBCursor) JSValue() js.Value

func (*IDBCursor) Key Uses

func (_this *IDBCursor) Key() js.Value

Key returning attribute 'key' with type Any (idl: any).

func (*IDBCursor) PrimaryKey Uses

func (_this *IDBCursor) PrimaryKey() js.Value

PrimaryKey returning attribute 'primaryKey' with type Any (idl: any).

func (*IDBCursor) Source Uses

func (_this *IDBCursor) Source() *Union

Source returning attribute 'source' with type Union (idl: Union).

func (*IDBCursor) Update Uses

func (_this *IDBCursor) Update(value interface{}) (_result *IDBRequest)

type IDBCursorDirection Uses

type IDBCursorDirection int

enum: IDBCursorDirection

const (
    NextIDBCursorDirection IDBCursorDirection = iota
    NextuniqueIDBCursorDirection
    PrevIDBCursorDirection
    PrevuniqueIDBCursorDirection
)

func IDBCursorDirectionFromJS Uses

func IDBCursorDirectionFromJS(value js.Value) IDBCursorDirection

IDBCursorDirectionFromJS is converting a javascript value into a IDBCursorDirection enum value.

func (*IDBCursorDirection) JSValue Uses

func (this *IDBCursorDirection) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (IDBCursorDirection) Value Uses

func (this IDBCursorDirection) Value() string

Value is converting this into javascript defined string value

type IDBCursorWithValue Uses

type IDBCursorWithValue struct {
    IDBCursor
}

class: IDBCursorWithValue

func IDBCursorWithValueFromJS Uses

func IDBCursorWithValueFromJS(value js.Wrapper) *IDBCursorWithValue

IDBCursorWithValueFromJS is casting a js.Wrapper into IDBCursorWithValue.

func (*IDBCursorWithValue) Value Uses

func (_this *IDBCursorWithValue) Value() js.Value

Value returning attribute 'value' with type Any (idl: any).

type IDBDatabase Uses

type IDBDatabase struct {
    domcore.EventTarget
}

class: IDBDatabase

func IDBDatabaseFromJS Uses

func IDBDatabaseFromJS(value js.Wrapper) *IDBDatabase

IDBDatabaseFromJS is casting a js.Wrapper into IDBDatabase.

func (*IDBDatabase) AddEventAbort Uses

func (_this *IDBDatabase) AddEventAbort(listener func(event *domcore.Event, currentTarget *IDBDatabase)) js.Func

AddAbort is adding doing AddEventListener for 'Abort' on target. This method is returning allocated javascript function that need to be released.

func (*IDBDatabase) AddEventClose Uses

func (_this *IDBDatabase) AddEventClose(listener func(event *domcore.Event, currentTarget *IDBDatabase)) js.Func

AddClose is adding doing AddEventListener for 'Close' on target. This method is returning allocated javascript function that need to be released.

func (*IDBDatabase) AddEventError Uses

func (_this *IDBDatabase) AddEventError(listener func(event *domcore.Event, currentTarget *IDBDatabase)) js.Func

AddError is adding doing AddEventListener for 'Error' on target. This method is returning allocated javascript function that need to be released.

func (*IDBDatabase) AddEventVersionChange Uses

func (_this *IDBDatabase) AddEventVersionChange(listener func(event *IDBVersionChangeEvent, currentTarget *IDBDatabase)) js.Func

AddVersionChange is adding doing AddEventListener for 'VersionChange' on target. This method is returning allocated javascript function that need to be released.

func (*IDBDatabase) Close Uses

func (_this *IDBDatabase) Close()

func (*IDBDatabase) CreateObjectStore Uses

func (_this *IDBDatabase) CreateObjectStore(name string, options *IDBObjectStoreParameters) (_result *IDBObjectStore)

func (*IDBDatabase) DeleteObjectStore Uses

func (_this *IDBDatabase) DeleteObjectStore(name string)

func (*IDBDatabase) Name Uses

func (_this *IDBDatabase) Name() string

Name returning attribute 'name' with type string (idl: DOMString).

func (*IDBDatabase) ObjectStoreNames Uses

func (_this *IDBDatabase) ObjectStoreNames() *domcore.DOMStringList

ObjectStoreNames returning attribute 'objectStoreNames' with type domcore.DOMStringList (idl: DOMStringList).

func (*IDBDatabase) OnAbort Uses

func (_this *IDBDatabase) OnAbort() domcore.EventHandlerFunc

OnAbort returning attribute 'onabort' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*IDBDatabase) OnClose Uses

func (_this *IDBDatabase) OnClose() domcore.EventHandlerFunc

OnClose returning attribute 'onclose' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*IDBDatabase) OnError Uses

func (_this *IDBDatabase) OnError() domcore.EventHandlerFunc

OnError returning attribute 'onerror' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*IDBDatabase) OnVersionChange Uses

func (_this *IDBDatabase) OnVersionChange() domcore.EventHandlerFunc

OnVersionChange returning attribute 'onversionchange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*IDBDatabase) SetOnAbort Uses

func (_this *IDBDatabase) SetOnAbort(listener func(event *domcore.Event, currentTarget *IDBDatabase)) js.Func

SetOnAbort is assigning a function to 'onabort'. This This method is returning allocated javascript function that need to be released.

func (*IDBDatabase) SetOnClose Uses

func (_this *IDBDatabase) SetOnClose(listener func(event *domcore.Event, currentTarget *IDBDatabase)) js.Func

SetOnClose is assigning a function to 'onclose'. This This method is returning allocated javascript function that need to be released.

func (*IDBDatabase) SetOnError Uses

func (_this *IDBDatabase) SetOnError(listener func(event *domcore.Event, currentTarget *IDBDatabase)) js.Func

SetOnError is assigning a function to 'onerror'. This This method is returning allocated javascript function that need to be released.

func (*IDBDatabase) SetOnVersionChange Uses

func (_this *IDBDatabase) SetOnVersionChange(listener func(event *IDBVersionChangeEvent, currentTarget *IDBDatabase)) js.Func

SetOnVersionChange is assigning a function to 'onversionchange'. This This method is returning allocated javascript function that need to be released.

func (*IDBDatabase) Transaction Uses

func (_this *IDBDatabase) Transaction(storeNames *Union, mode *IDBTransactionMode) (_result *IDBTransaction)

func (*IDBDatabase) Version Uses

func (_this *IDBDatabase) Version() int

Version returning attribute 'version' with type int (idl: unsigned long long).

type IDBDatabaseInfo Uses

type IDBDatabaseInfo struct {
    Name    string
    Version int
}

dictionary: IDBDatabaseInfo

func IDBDatabaseInfoFromJS Uses

func IDBDatabaseInfoFromJS(value js.Wrapper) *IDBDatabaseInfo

IDBDatabaseInfoFromJS is allocating a new IDBDatabaseInfo object and copy all values from input javascript object

func (*IDBDatabaseInfo) JSValue Uses

func (_this *IDBDatabaseInfo) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type IDBFactory Uses

type IDBFactory struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: IDBFactory

func IDBFactoryFromJS Uses

func IDBFactoryFromJS(value js.Wrapper) *IDBFactory

IDBFactoryFromJS is casting a js.Wrapper into IDBFactory.

func (*IDBFactory) Cmp Uses

func (_this *IDBFactory) Cmp(first interface{}, second interface{}) (_result int)

func (*IDBFactory) Databases Uses

func (_this *IDBFactory) Databases() (_result *PromiseSequenceIDBDatabaseInfo)

func (*IDBFactory) DeleteDatabase Uses

func (_this *IDBFactory) DeleteDatabase(name string) (_result *IDBOpenDBRequest)

func (*IDBFactory) JSValue Uses

func (_this *IDBFactory) JSValue() js.Value

func (*IDBFactory) Open Uses

func (_this *IDBFactory) Open(name string, version *int) (_result *IDBOpenDBRequest)

type IDBIndex Uses

type IDBIndex struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: IDBIndex

func IDBIndexFromJS Uses

func IDBIndexFromJS(value js.Wrapper) *IDBIndex

IDBIndexFromJS is casting a js.Wrapper into IDBIndex.

func (*IDBIndex) Count Uses

func (_this *IDBIndex) Count(query interface{}) (_result *IDBRequest)

func (*IDBIndex) Get Uses

func (_this *IDBIndex) Get(query interface{}) (_result *IDBRequest)

func (*IDBIndex) GetAll Uses

func (_this *IDBIndex) GetAll(query interface{}, count *uint) (_result *IDBRequest)

func (*IDBIndex) GetAllKeys Uses

func (_this *IDBIndex) GetAllKeys(query interface{}, count *uint) (_result *IDBRequest)

func (*IDBIndex) GetKey Uses

func (_this *IDBIndex) GetKey(query interface{}) (_result *IDBRequest)

func (*IDBIndex) JSValue Uses

func (_this *IDBIndex) JSValue() js.Value

func (*IDBIndex) KeyPath Uses

func (_this *IDBIndex) KeyPath() js.Value

KeyPath returning attribute 'keyPath' with type Any (idl: any).

func (*IDBIndex) MultiEntry Uses

func (_this *IDBIndex) MultiEntry() bool

MultiEntry returning attribute 'multiEntry' with type bool (idl: boolean).

func (*IDBIndex) Name Uses

func (_this *IDBIndex) Name() string

Name returning attribute 'name' with type string (idl: DOMString).

func (*IDBIndex) ObjectStore Uses

func (_this *IDBIndex) ObjectStore() *IDBObjectStore

ObjectStore returning attribute 'objectStore' with type IDBObjectStore (idl: IDBObjectStore).

func (*IDBIndex) OpenCursor Uses

func (_this *IDBIndex) OpenCursor(query interface{}, direction *IDBCursorDirection) (_result *IDBRequest)

func (*IDBIndex) OpenKeyCursor Uses

func (_this *IDBIndex) OpenKeyCursor(query interface{}, direction *IDBCursorDirection) (_result *IDBRequest)

func (*IDBIndex) SetName Uses

func (_this *IDBIndex) SetName(value string)

SetName setting attribute 'name' with type string (idl: DOMString).

func (*IDBIndex) Unique Uses

func (_this *IDBIndex) Unique() bool

Unique returning attribute 'unique' with type bool (idl: boolean).

type IDBIndexParameters Uses

type IDBIndexParameters struct {
    Unique     bool
    MultiEntry bool
}

dictionary: IDBIndexParameters

func IDBIndexParametersFromJS Uses

func IDBIndexParametersFromJS(value js.Wrapper) *IDBIndexParameters

IDBIndexParametersFromJS is allocating a new IDBIndexParameters object and copy all values from input javascript object

func (*IDBIndexParameters) JSValue Uses

func (_this *IDBIndexParameters) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type IDBKeyRange Uses

type IDBKeyRange struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: IDBKeyRange

func Bound Uses

func Bound(lower interface{}, upper interface{}, lowerOpen *bool, upperOpen *bool) (_result *IDBKeyRange)

func IDBKeyRangeFromJS Uses

func IDBKeyRangeFromJS(value js.Wrapper) *IDBKeyRange

IDBKeyRangeFromJS is casting a js.Wrapper into IDBKeyRange.

func LowerBound Uses

func LowerBound(lower interface{}, open *bool) (_result *IDBKeyRange)

func Only Uses

func Only(value interface{}) (_result *IDBKeyRange)

func UpperBound Uses

func UpperBound(upper interface{}, open *bool) (_result *IDBKeyRange)

func (*IDBKeyRange) Includes Uses

func (_this *IDBKeyRange) Includes(key interface{}) (_result bool)

func (*IDBKeyRange) JSValue Uses

func (_this *IDBKeyRange) JSValue() js.Value

func (*IDBKeyRange) Lower Uses

func (_this *IDBKeyRange) Lower() js.Value

Lower returning attribute 'lower' with type Any (idl: any).

func (*IDBKeyRange) LowerOpen Uses

func (_this *IDBKeyRange) LowerOpen() bool

LowerOpen returning attribute 'lowerOpen' with type bool (idl: boolean).

func (*IDBKeyRange) Upper Uses

func (_this *IDBKeyRange) Upper() js.Value

Upper returning attribute 'upper' with type Any (idl: any).

func (*IDBKeyRange) UpperOpen Uses

func (_this *IDBKeyRange) UpperOpen() bool

UpperOpen returning attribute 'upperOpen' with type bool (idl: boolean).

type IDBObjectStore Uses

type IDBObjectStore struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: IDBObjectStore

func IDBObjectStoreFromJS Uses

func IDBObjectStoreFromJS(value js.Wrapper) *IDBObjectStore

IDBObjectStoreFromJS is casting a js.Wrapper into IDBObjectStore.

func (*IDBObjectStore) Add Uses

func (_this *IDBObjectStore) Add(value interface{}, key interface{}) (_result *IDBRequest)

func (*IDBObjectStore) AutoIncrement Uses

func (_this *IDBObjectStore) AutoIncrement() bool

AutoIncrement returning attribute 'autoIncrement' with type bool (idl: boolean).

func (*IDBObjectStore) Clear Uses

func (_this *IDBObjectStore) Clear() (_result *IDBRequest)

func (*IDBObjectStore) Count Uses

func (_this *IDBObjectStore) Count(query interface{}) (_result *IDBRequest)

func (*IDBObjectStore) CreateIndex Uses

func (_this *IDBObjectStore) CreateIndex(name string, keyPath *Union, options *IDBIndexParameters) (_result *IDBIndex)

func (*IDBObjectStore) Delete Uses

func (_this *IDBObjectStore) Delete(query interface{}) (_result *IDBRequest)

func (*IDBObjectStore) DeleteIndex Uses

func (_this *IDBObjectStore) DeleteIndex(name string)

func (*IDBObjectStore) Get Uses

func (_this *IDBObjectStore) Get(query interface{}) (_result *IDBRequest)

func (*IDBObjectStore) GetAll Uses

func (_this *IDBObjectStore) GetAll(query interface{}, count *uint) (_result *IDBRequest)

func (*IDBObjectStore) GetAllKeys Uses

func (_this *IDBObjectStore) GetAllKeys(query interface{}, count *uint) (_result *IDBRequest)

func (*IDBObjectStore) GetKey Uses

func (_this *IDBObjectStore) GetKey(query interface{}) (_result *IDBRequest)

func (*IDBObjectStore) Index Uses

func (_this *IDBObjectStore) Index(name string) (_result *IDBIndex)

func (*IDBObjectStore) IndexNames Uses

func (_this *IDBObjectStore) IndexNames() *domcore.DOMStringList

IndexNames returning attribute 'indexNames' with type domcore.DOMStringList (idl: DOMStringList).

func (*IDBObjectStore) JSValue Uses

func (_this *IDBObjectStore) JSValue() js.Value

func (*IDBObjectStore) KeyPath Uses

func (_this *IDBObjectStore) KeyPath() js.Value

KeyPath returning attribute 'keyPath' with type Any (idl: any).

func (*IDBObjectStore) Name Uses

func (_this *IDBObjectStore) Name() string

Name returning attribute 'name' with type string (idl: DOMString).

func (*IDBObjectStore) OpenCursor Uses

func (_this *IDBObjectStore) OpenCursor(query interface{}, direction *IDBCursorDirection) (_result *IDBRequest)

func (*IDBObjectStore) OpenKeyCursor Uses

func (_this *IDBObjectStore) OpenKeyCursor(query interface{}, direction *IDBCursorDirection) (_result *IDBRequest)

func (*IDBObjectStore) Put Uses

func (_this *IDBObjectStore) Put(value interface{}, key interface{}) (_result *IDBRequest)

func (*IDBObjectStore) SetName Uses

func (_this *IDBObjectStore) SetName(value string)

SetName setting attribute 'name' with type string (idl: DOMString).

func (*IDBObjectStore) Transaction Uses

func (_this *IDBObjectStore) Transaction() *IDBTransaction

Transaction returning attribute 'transaction' with type IDBTransaction (idl: IDBTransaction).

type IDBObjectStoreParameters Uses

type IDBObjectStoreParameters struct {
    KeyPath       *Union
    AutoIncrement bool
}

dictionary: IDBObjectStoreParameters

func IDBObjectStoreParametersFromJS Uses

func IDBObjectStoreParametersFromJS(value js.Wrapper) *IDBObjectStoreParameters

IDBObjectStoreParametersFromJS is allocating a new IDBObjectStoreParameters object and copy all values from input javascript object

func (*IDBObjectStoreParameters) JSValue Uses

func (_this *IDBObjectStoreParameters) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type IDBOpenDBRequest Uses

type IDBOpenDBRequest struct {
    IDBRequest
}

class: IDBOpenDBRequest

func IDBOpenDBRequestFromJS Uses

func IDBOpenDBRequestFromJS(value js.Wrapper) *IDBOpenDBRequest

IDBOpenDBRequestFromJS is casting a js.Wrapper into IDBOpenDBRequest.

func (*IDBOpenDBRequest) AddEventBlocked Uses

func (_this *IDBOpenDBRequest) AddEventBlocked(listener func(event *domcore.Event, currentTarget *IDBOpenDBRequest)) js.Func

AddBlocked is adding doing AddEventListener for 'Blocked' on target. This method is returning allocated javascript function that need to be released.

func (*IDBOpenDBRequest) AddEventUpgradeNeeded Uses

func (_this *IDBOpenDBRequest) AddEventUpgradeNeeded(listener func(event *domcore.Event, currentTarget *IDBOpenDBRequest)) js.Func

AddUpgradeNeeded is adding doing AddEventListener for 'UpgradeNeeded' on target. This method is returning allocated javascript function that need to be released.

func (*IDBOpenDBRequest) OnBlocked Uses

func (_this *IDBOpenDBRequest) OnBlocked() domcore.EventHandlerFunc

OnBlocked returning attribute 'onblocked' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*IDBOpenDBRequest) OnUpgradeNeeded Uses

func (_this *IDBOpenDBRequest) OnUpgradeNeeded() domcore.EventHandlerFunc

OnUpgradeNeeded returning attribute 'onupgradeneeded' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*IDBOpenDBRequest) SetOnBlocked Uses

func (_this *IDBOpenDBRequest) SetOnBlocked(listener func(event *domcore.Event, currentTarget *IDBOpenDBRequest)) js.Func

SetOnBlocked is assigning a function to 'onblocked'. This This method is returning allocated javascript function that need to be released.

func (*IDBOpenDBRequest) SetOnUpgradeNeeded Uses

func (_this *IDBOpenDBRequest) SetOnUpgradeNeeded(listener func(event *domcore.Event, currentTarget *IDBOpenDBRequest)) js.Func

SetOnUpgradeNeeded is assigning a function to 'onupgradeneeded'. This This method is returning allocated javascript function that need to be released.

type IDBRequest Uses

type IDBRequest struct {
    domcore.EventTarget
}

class: IDBRequest

func IDBRequestFromJS Uses

func IDBRequestFromJS(value js.Wrapper) *IDBRequest

IDBRequestFromJS is casting a js.Wrapper into IDBRequest.

func (*IDBRequest) AddEventError Uses

func (_this *IDBRequest) AddEventError(listener func(event *domcore.Event, currentTarget *IDBRequest)) js.Func

AddError is adding doing AddEventListener for 'Error' on target. This method is returning allocated javascript function that need to be released.

func (*IDBRequest) AddEventSuccess Uses

func (_this *IDBRequest) AddEventSuccess(listener func(event *domcore.Event, currentTarget *IDBRequest)) js.Func

AddSuccess is adding doing AddEventListener for 'Success' on target. This method is returning allocated javascript function that need to be released.

func (*IDBRequest) Error Uses

func (_this *IDBRequest) Error() *domcore.DOMException

Error returning attribute 'error' with type domcore.DOMException (idl: DOMException).

func (*IDBRequest) OnError Uses

func (_this *IDBRequest) OnError() domcore.EventHandlerFunc

OnError returning attribute 'onerror' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*IDBRequest) OnSuccess Uses

func (_this *IDBRequest) OnSuccess() domcore.EventHandlerFunc

OnSuccess returning attribute 'onsuccess' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*IDBRequest) ReadyState Uses

func (_this *IDBRequest) ReadyState() IDBRequestReadyState

ReadyState returning attribute 'readyState' with type IDBRequestReadyState (idl: IDBRequestReadyState).

func (*IDBRequest) Result Uses

func (_this *IDBRequest) Result() js.Value

Result returning attribute 'result' with type Any (idl: any).

func (*IDBRequest) SetOnError Uses

func (_this *IDBRequest) SetOnError(listener func(event *domcore.Event, currentTarget *IDBRequest)) js.Func

SetOnError is assigning a function to 'onerror'. This This method is returning allocated javascript function that need to be released.

func (*IDBRequest) SetOnSuccess Uses

func (_this *IDBRequest) SetOnSuccess(listener func(event *domcore.Event, currentTarget *IDBRequest)) js.Func

SetOnSuccess is assigning a function to 'onsuccess'. This This method is returning allocated javascript function that need to be released.

func (*IDBRequest) Source Uses

func (_this *IDBRequest) Source() *Union

Source returning attribute 'source' with type Union (idl: Union).

func (*IDBRequest) Transaction Uses

func (_this *IDBRequest) Transaction() *IDBTransaction

Transaction returning attribute 'transaction' with type IDBTransaction (idl: IDBTransaction).

type IDBRequestReadyState Uses

type IDBRequestReadyState int

enum: IDBRequestReadyState

const (
    PendingIDBRequestReadyState IDBRequestReadyState = iota
    DoneIDBRequestReadyState
)

func IDBRequestReadyStateFromJS Uses

func IDBRequestReadyStateFromJS(value js.Value) IDBRequestReadyState

IDBRequestReadyStateFromJS is converting a javascript value into a IDBRequestReadyState enum value.

func (*IDBRequestReadyState) JSValue Uses

func (this *IDBRequestReadyState) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (IDBRequestReadyState) Value Uses

func (this IDBRequestReadyState) Value() string

Value is converting this into javascript defined string value

type IDBTransaction Uses

type IDBTransaction struct {
    domcore.EventTarget
}

class: IDBTransaction

func IDBTransactionFromJS Uses

func IDBTransactionFromJS(value js.Wrapper) *IDBTransaction

IDBTransactionFromJS is casting a js.Wrapper into IDBTransaction.

func (*IDBTransaction) Abort Uses

func (_this *IDBTransaction) Abort()

func (*IDBTransaction) AddEventAbort Uses

func (_this *IDBTransaction) AddEventAbort(listener func(event *domcore.Event, currentTarget *IDBTransaction)) js.Func

AddAbort is adding doing AddEventListener for 'Abort' on target. This method is returning allocated javascript function that need to be released.

func (*IDBTransaction) AddEventComplete Uses

func (_this *IDBTransaction) AddEventComplete(listener func(event *domcore.Event, currentTarget *IDBTransaction)) js.Func

AddComplete is adding doing AddEventListener for 'Complete' on target. This method is returning allocated javascript function that need to be released.

func (*IDBTransaction) AddEventError Uses

func (_this *IDBTransaction) AddEventError(listener func(event *domcore.Event, currentTarget *IDBTransaction)) js.Func

AddError is adding doing AddEventListener for 'Error' on target. This method is returning allocated javascript function that need to be released.

func (*IDBTransaction) Commit Uses

func (_this *IDBTransaction) Commit()

func (*IDBTransaction) Db Uses

func (_this *IDBTransaction) Db() *IDBDatabase

Db returning attribute 'db' with type IDBDatabase (idl: IDBDatabase).

func (*IDBTransaction) Error Uses

func (_this *IDBTransaction) Error() *domcore.DOMException

Error returning attribute 'error' with type domcore.DOMException (idl: DOMException).

func (*IDBTransaction) Mode Uses

func (_this *IDBTransaction) Mode() IDBTransactionMode

Mode returning attribute 'mode' with type IDBTransactionMode (idl: IDBTransactionMode).

func (*IDBTransaction) ObjectStore Uses

func (_this *IDBTransaction) ObjectStore(name string) (_result *IDBObjectStore)

func (*IDBTransaction) ObjectStoreNames Uses

func (_this *IDBTransaction) ObjectStoreNames() *domcore.DOMStringList

ObjectStoreNames returning attribute 'objectStoreNames' with type domcore.DOMStringList (idl: DOMStringList).

func (*IDBTransaction) OnAbort Uses

func (_this *IDBTransaction) OnAbort() domcore.EventHandlerFunc

OnAbort returning attribute 'onabort' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*IDBTransaction) OnComplete Uses

func (_this *IDBTransaction) OnComplete() domcore.EventHandlerFunc

OnComplete returning attribute 'oncomplete' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*IDBTransaction) OnError Uses

func (_this *IDBTransaction) OnError() domcore.EventHandlerFunc

OnError returning attribute 'onerror' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*IDBTransaction) SetOnAbort Uses

func (_this *IDBTransaction) SetOnAbort(listener func(event *domcore.Event, currentTarget *IDBTransaction)) js.Func

SetOnAbort is assigning a function to 'onabort'. This This method is returning allocated javascript function that need to be released.

func (*IDBTransaction) SetOnComplete Uses

func (_this *IDBTransaction) SetOnComplete(listener func(event *domcore.Event, currentTarget *IDBTransaction)) js.Func

SetOnComplete is assigning a function to 'oncomplete'. This This method is returning allocated javascript function that need to be released.

func (*IDBTransaction) SetOnError Uses

func (_this *IDBTransaction) SetOnError(listener func(event *domcore.Event, currentTarget *IDBTransaction)) js.Func

SetOnError is assigning a function to 'onerror'. This This method is returning allocated javascript function that need to be released.

type IDBTransactionMode Uses

type IDBTransactionMode int

enum: IDBTransactionMode

const (
    ReadonlyIDBTransactionMode IDBTransactionMode = iota
    ReadwriteIDBTransactionMode
    VersionchangeIDBTransactionMode
)

func IDBTransactionModeFromJS Uses

func IDBTransactionModeFromJS(value js.Value) IDBTransactionMode

IDBTransactionModeFromJS is converting a javascript value into a IDBTransactionMode enum value.

func (*IDBTransactionMode) JSValue Uses

func (this *IDBTransactionMode) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (IDBTransactionMode) Value Uses

func (this IDBTransactionMode) Value() string

Value is converting this into javascript defined string value

type IDBVersionChangeEvent Uses

type IDBVersionChangeEvent struct {
    domcore.Event
}

class: IDBVersionChangeEvent

func IDBVersionChangeEventFromJS Uses

func IDBVersionChangeEventFromJS(value js.Wrapper) *IDBVersionChangeEvent

IDBVersionChangeEventFromJS is casting a js.Wrapper into IDBVersionChangeEvent.

func NewIDBVersionChangeEvent Uses

func NewIDBVersionChangeEvent(_type string, eventInitDict *IDBVersionChangeEventInit) (_result *IDBVersionChangeEvent)

func (*IDBVersionChangeEvent) NewVersion Uses

func (_this *IDBVersionChangeEvent) NewVersion() *int

NewVersion returning attribute 'newVersion' with type int (idl: unsigned long long).

func (*IDBVersionChangeEvent) OldVersion Uses

func (_this *IDBVersionChangeEvent) OldVersion() int

OldVersion returning attribute 'oldVersion' with type int (idl: unsigned long long).

type IDBVersionChangeEventInit Uses

type IDBVersionChangeEventInit struct {
    Bubbles    bool
    Cancelable bool
    Composed   bool
    OldVersion int
    NewVersion *int
}

dictionary: IDBVersionChangeEventInit

func IDBVersionChangeEventInitFromJS Uses

func IDBVersionChangeEventInitFromJS(value js.Wrapper) *IDBVersionChangeEventInit

IDBVersionChangeEventInitFromJS is allocating a new IDBVersionChangeEventInit object and copy all values from input javascript object

func (*IDBVersionChangeEventInit) JSValue Uses

func (_this *IDBVersionChangeEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type PromiseSequenceIDBDatabaseInfo Uses

type PromiseSequenceIDBDatabaseInfo struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Promise

func PromiseSequenceIDBDatabaseInfoFromJS Uses

func PromiseSequenceIDBDatabaseInfoFromJS(value js.Wrapper) *PromiseSequenceIDBDatabaseInfo

PromiseSequenceIDBDatabaseInfoFromJS is casting a js.Wrapper into PromiseSequenceIDBDatabaseInfo.

func (*PromiseSequenceIDBDatabaseInfo) Catch Uses

func (_this *PromiseSequenceIDBDatabaseInfo) Catch(onRejected *PromiseSequenceIDBDatabaseInfoOnRejected) (_result *PromiseSequenceIDBDatabaseInfo)

func (*PromiseSequenceIDBDatabaseInfo) Finally Uses

func (_this *PromiseSequenceIDBDatabaseInfo) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseSequenceIDBDatabaseInfo)

func (*PromiseSequenceIDBDatabaseInfo) JSValue Uses

func (_this *PromiseSequenceIDBDatabaseInfo) JSValue() js.Value

func (*PromiseSequenceIDBDatabaseInfo) Then Uses

func (_this *PromiseSequenceIDBDatabaseInfo) Then(onFulfilled *PromiseSequenceIDBDatabaseInfoOnFulfilled, onRejected *PromiseSequenceIDBDatabaseInfoOnRejected) (_result *PromiseSequenceIDBDatabaseInfo)

type PromiseSequenceIDBDatabaseInfoOnFulfilled Uses

type PromiseSequenceIDBDatabaseInfoOnFulfilled js.Func

PromiseSequenceIDBDatabaseInfoOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseSequenceIDBDatabaseInfoOnFulfilledToJS Uses

func PromiseSequenceIDBDatabaseInfoOnFulfilledToJS(callback PromiseSequenceIDBDatabaseInfoOnFulfilledFunc) *PromiseSequenceIDBDatabaseInfoOnFulfilled

type PromiseSequenceIDBDatabaseInfoOnFulfilledFunc Uses

type PromiseSequenceIDBDatabaseInfoOnFulfilledFunc func(value []*IDBDatabaseInfo)

callback: PromiseTemplateOnFulfilled

func PromiseSequenceIDBDatabaseInfoOnFulfilledFromJS Uses

func PromiseSequenceIDBDatabaseInfoOnFulfilledFromJS(_value js.Value) PromiseSequenceIDBDatabaseInfoOnFulfilledFunc

type PromiseSequenceIDBDatabaseInfoOnRejected Uses

type PromiseSequenceIDBDatabaseInfoOnRejected js.Func

PromiseSequenceIDBDatabaseInfoOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseSequenceIDBDatabaseInfoOnRejectedToJS Uses

func PromiseSequenceIDBDatabaseInfoOnRejectedToJS(callback PromiseSequenceIDBDatabaseInfoOnRejectedFunc) *PromiseSequenceIDBDatabaseInfoOnRejected

type PromiseSequenceIDBDatabaseInfoOnRejectedFunc Uses

type PromiseSequenceIDBDatabaseInfoOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseSequenceIDBDatabaseInfoOnRejectedFromJS Uses

func PromiseSequenceIDBDatabaseInfoOnRejectedFromJS(_value js.Value) PromiseSequenceIDBDatabaseInfoOnRejectedFunc

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

func (u *Union) JSValue() js.Value

Package indexeddb imports 3 packages (graph) and is imported by 2 packages. Updated 2019-09-17. Refresh now. Tools for package owners.