Documentation ¶
Overview ¶
Package serviceworker is to enables applications to take advantage of persistent background processing, including hooks to enable bootstrapping of web applications while offline.
Index ¶
- type BackgroundFetchEvent
- type BackgroundFetchEventInit
- type BackgroundFetchFailureReason
- type BackgroundFetchManager
- func (_this *BackgroundFetchManager) Fetch(id string, requests *Union, options *BackgroundFetchOptions) (_result *PromiseBackgroundFetchRegistration)
- func (_this *BackgroundFetchManager) Get(id string) (_result *PromiseNilBackgroundFetchRegistration)
- func (_this *BackgroundFetchManager) GetIds() (_result *javascript.PromiseSequenceString)
- func (_this *BackgroundFetchManager) JSValue() js.Value
- type BackgroundFetchOptions
- type BackgroundFetchRecord
- type BackgroundFetchRegistration
- func (_this *BackgroundFetchRegistration) Abort() (_result *javascript.PromiseBool)
- func (_this *BackgroundFetchRegistration) AddEventProgress(...) js.Func
- func (_this *BackgroundFetchRegistration) DownloadTotal() int
- func (_this *BackgroundFetchRegistration) Downloaded() int
- func (_this *BackgroundFetchRegistration) FailureReason() BackgroundFetchFailureReason
- func (_this *BackgroundFetchRegistration) Id() string
- func (_this *BackgroundFetchRegistration) Match(request *Union, options *CacheQueryOptions) (_result *PromiseBackgroundFetchRecord)
- func (_this *BackgroundFetchRegistration) MatchAll(request *Union, options *CacheQueryOptions) (_result *PromiseSequenceBackgroundFetchRecord)
- func (_this *BackgroundFetchRegistration) OnProgress() domcore.EventHandlerFunc
- func (_this *BackgroundFetchRegistration) RecordsAvailable() bool
- func (_this *BackgroundFetchRegistration) Result() BackgroundFetchResult
- func (_this *BackgroundFetchRegistration) SetOnProgress(...) js.Func
- func (_this *BackgroundFetchRegistration) UploadTotal() int
- func (_this *BackgroundFetchRegistration) Uploaded() int
- type BackgroundFetchResult
- type BackgroundFetchUIOptions
- type BackgroundFetchUpdateUIEvent
- func BackgroundFetchUpdateUIEventFromJS(value js.Value) *BackgroundFetchUpdateUIEvent
- func BackgroundFetchUpdateUIEventFromWrapper(input core.Wrapper) *BackgroundFetchUpdateUIEvent
- func NewBackgroundFetchUpdateUIEvent(_type string, init *BackgroundFetchEventInit) (_result *BackgroundFetchUpdateUIEvent)
- type Cache
- func (_this *Cache) Add(request *Union) (_result *javascript.PromiseVoid)
- func (_this *Cache) AddAll(requests []*Union) (_result *javascript.PromiseVoid)
- func (_this *Cache) Delete(request *Union, options *CacheQueryOptions) (_result *javascript.PromiseBool)
- func (_this *Cache) JSValue() js.Value
- func (_this *Cache) Keys(request *Union, options *CacheQueryOptions) (_result *javascript.PromiseFrozenArray)
- func (_this *Cache) Match(request *Union, options *CacheQueryOptions) (_result *javascript.Promise)
- func (_this *Cache) MatchAll(request *Union, options *CacheQueryOptions) (_result *javascript.PromiseFrozenArray)
- func (_this *Cache) Put(request *Union, response *fetch.Response) (_result *javascript.PromiseVoid)
- type CacheQueryOptions
- type CacheStorage
- func (_this *CacheStorage) Delete(cacheName string) (_result *javascript.PromiseBool)
- func (_this *CacheStorage) Has(cacheName string) (_result *javascript.PromiseBool)
- func (_this *CacheStorage) JSValue() js.Value
- func (_this *CacheStorage) Keys() (_result *javascript.PromiseSequenceString)
- func (_this *CacheStorage) Match(request *Union, options *MultiCacheQueryOptions) (_result *javascript.Promise)
- func (_this *CacheStorage) Open(cacheName string) (_result *PromiseCache)
- type ClientQueryOptions
- type Clients
- func (_this *Clients) Claim() (_result *javascript.PromiseVoid)
- func (_this *Clients) Get(id string) (_result *javascript.Promise)
- func (_this *Clients) JSValue() js.Value
- func (_this *Clients) MatchAll(options *ClientQueryOptions) (_result *javascript.PromiseFrozenArray)
- func (_this *Clients) OpenWindow(url string) (_result *client.PromiseNilWindowClient)
- type ExtendableMessageEvent
- type ExtendableMessageEventInit
- type FetchEvent
- type FetchEventInit
- type MultiCacheQueryOptions
- type PromiseBackgroundFetchRecord
- func (_this *PromiseBackgroundFetchRecord) Catch(onRejected *PromiseBackgroundFetchRecordOnRejected) (_result *PromiseBackgroundFetchRecord)
- func (_this *PromiseBackgroundFetchRecord) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseBackgroundFetchRecord)
- func (_this *PromiseBackgroundFetchRecord) JSValue() js.Value
- func (_this *PromiseBackgroundFetchRecord) Then(onFulfilled *PromiseBackgroundFetchRecordOnFulfilled, ...) (_result *PromiseBackgroundFetchRecord)
- type PromiseBackgroundFetchRecordOnFulfilled
- type PromiseBackgroundFetchRecordOnFulfilledFunc
- type PromiseBackgroundFetchRecordOnRejected
- type PromiseBackgroundFetchRecordOnRejectedFunc
- type PromiseBackgroundFetchRegistration
- func (_this *PromiseBackgroundFetchRegistration) Catch(onRejected *PromiseBackgroundFetchRegistrationOnRejected) (_result *PromiseBackgroundFetchRegistration)
- func (_this *PromiseBackgroundFetchRegistration) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseBackgroundFetchRegistration)
- func (_this *PromiseBackgroundFetchRegistration) JSValue() js.Value
- func (_this *PromiseBackgroundFetchRegistration) Then(onFulfilled *PromiseBackgroundFetchRegistrationOnFulfilled, ...) (_result *PromiseBackgroundFetchRegistration)
- type PromiseBackgroundFetchRegistrationOnFulfilled
- type PromiseBackgroundFetchRegistrationOnFulfilledFunc
- type PromiseBackgroundFetchRegistrationOnRejected
- type PromiseBackgroundFetchRegistrationOnRejectedFunc
- type PromiseCache
- func (_this *PromiseCache) Catch(onRejected *PromiseCacheOnRejected) (_result *PromiseCache)
- func (_this *PromiseCache) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseCache)
- func (_this *PromiseCache) JSValue() js.Value
- func (_this *PromiseCache) Then(onFulfilled *PromiseCacheOnFulfilled, onRejected *PromiseCacheOnRejected) (_result *PromiseCache)
- type PromiseCacheOnFulfilled
- type PromiseCacheOnFulfilledFunc
- type PromiseCacheOnRejected
- type PromiseCacheOnRejectedFunc
- type PromiseNilBackgroundFetchRegistration
- func (_this *PromiseNilBackgroundFetchRegistration) Catch(onRejected *PromiseNilBackgroundFetchRegistrationOnRejected) (_result *PromiseNilBackgroundFetchRegistration)
- func (_this *PromiseNilBackgroundFetchRegistration) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseNilBackgroundFetchRegistration)
- func (_this *PromiseNilBackgroundFetchRegistration) JSValue() js.Value
- func (_this *PromiseNilBackgroundFetchRegistration) Then(onFulfilled *PromiseNilBackgroundFetchRegistrationOnFulfilled, ...) (_result *PromiseNilBackgroundFetchRegistration)
- type PromiseNilBackgroundFetchRegistrationOnFulfilled
- type PromiseNilBackgroundFetchRegistrationOnFulfilledFunc
- type PromiseNilBackgroundFetchRegistrationOnRejected
- type PromiseNilBackgroundFetchRegistrationOnRejectedFunc
- type PromiseSequenceBackgroundFetchRecord
- func (_this *PromiseSequenceBackgroundFetchRecord) Catch(onRejected *PromiseSequenceBackgroundFetchRecordOnRejected) (_result *PromiseSequenceBackgroundFetchRecord)
- func (_this *PromiseSequenceBackgroundFetchRecord) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseSequenceBackgroundFetchRecord)
- func (_this *PromiseSequenceBackgroundFetchRecord) JSValue() js.Value
- func (_this *PromiseSequenceBackgroundFetchRecord) Then(onFulfilled *PromiseSequenceBackgroundFetchRecordOnFulfilled, ...) (_result *PromiseSequenceBackgroundFetchRecord)
- type PromiseSequenceBackgroundFetchRecordOnFulfilled
- type PromiseSequenceBackgroundFetchRecordOnFulfilledFunc
- type PromiseSequenceBackgroundFetchRecordOnRejected
- type PromiseSequenceBackgroundFetchRecordOnRejectedFunc
- type PromiseServiceWorkerRegistration
- func (_this *PromiseServiceWorkerRegistration) Catch(onRejected *PromiseServiceWorkerRegistrationOnRejected) (_result *PromiseServiceWorkerRegistration)
- func (_this *PromiseServiceWorkerRegistration) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseServiceWorkerRegistration)
- func (_this *PromiseServiceWorkerRegistration) JSValue() js.Value
- func (_this *PromiseServiceWorkerRegistration) Then(onFulfilled *PromiseServiceWorkerRegistrationOnFulfilled, ...) (_result *PromiseServiceWorkerRegistration)
- type PromiseServiceWorkerRegistrationOnFulfilled
- type PromiseServiceWorkerRegistrationOnFulfilledFunc
- type PromiseServiceWorkerRegistrationOnRejected
- type PromiseServiceWorkerRegistrationOnRejectedFunc
- type RegistrationOptions
- type ServiceWorker
- func (_this *ServiceWorker) AddEventError(listener func(event *domcore.Event, currentTarget *ServiceWorker)) js.Func
- func (_this *ServiceWorker) AddEventStateChange(listener func(event *domcore.Event, currentTarget *ServiceWorker)) js.Func
- func (_this *ServiceWorker) OnError() domcore.EventHandlerFunc
- func (_this *ServiceWorker) OnStateChange() domcore.EventHandlerFunc
- func (_this *ServiceWorker) PostMessage(message interface{}, transfer []*javascript.Object)
- func (_this *ServiceWorker) ScriptURL() string
- func (_this *ServiceWorker) SetOnError(listener func(event *domcore.Event, currentTarget *ServiceWorker)) js.Func
- func (_this *ServiceWorker) SetOnStateChange(listener func(event *domcore.Event, currentTarget *ServiceWorker)) js.Func
- func (_this *ServiceWorker) State() ServiceWorkerState
- type ServiceWorkerContainer
- func (_this *ServiceWorkerContainer) AddEventControllerChange(listener func(event *domcore.Event, currentTarget *ServiceWorkerContainer)) js.Func
- func (_this *ServiceWorkerContainer) AddEventMessage(...) js.Func
- func (_this *ServiceWorkerContainer) AddEventMessageError(...) js.Func
- func (_this *ServiceWorkerContainer) Controller() *ServiceWorker
- func (_this *ServiceWorkerContainer) GetRegistration(clientURL *string) (_result *javascript.Promise)
- func (_this *ServiceWorkerContainer) GetRegistrations() (_result *javascript.PromiseFrozenArray)
- func (_this *ServiceWorkerContainer) OnControllerChange() domcore.EventHandlerFunc
- func (_this *ServiceWorkerContainer) OnMessage() domcore.EventHandlerFunc
- func (_this *ServiceWorkerContainer) OnMessageError() domcore.EventHandlerFunc
- func (_this *ServiceWorkerContainer) Ready() *javascript.Promise
- func (_this *ServiceWorkerContainer) Register(scriptURL string, options *RegistrationOptions) (_result *PromiseServiceWorkerRegistration)
- func (_this *ServiceWorkerContainer) SetOnControllerChange(listener func(event *domcore.Event, currentTarget *ServiceWorkerContainer)) js.Func
- func (_this *ServiceWorkerContainer) SetOnMessage(...) js.Func
- func (_this *ServiceWorkerContainer) SetOnMessageError(...) js.Func
- func (_this *ServiceWorkerContainer) StartMessages()
- type ServiceWorkerRegistration
- func (_this *ServiceWorkerRegistration) Active() *ServiceWorker
- func (_this *ServiceWorkerRegistration) AddEventUpdateFound(listener func(event *domcore.Event, currentTarget *ServiceWorkerRegistration)) js.Func
- func (_this *ServiceWorkerRegistration) BackgroundFetch() *BackgroundFetchManager
- func (_this *ServiceWorkerRegistration) Installing() *ServiceWorker
- func (_this *ServiceWorkerRegistration) OnUpdateFound() domcore.EventHandlerFunc
- func (_this *ServiceWorkerRegistration) PaymentManager() *payment.PaymentManager
- func (_this *ServiceWorkerRegistration) PushManager() *push.Manager
- func (_this *ServiceWorkerRegistration) Scope() string
- func (_this *ServiceWorkerRegistration) SetOnUpdateFound(listener func(event *domcore.Event, currentTarget *ServiceWorkerRegistration)) js.Func
- func (_this *ServiceWorkerRegistration) Sync() *SyncManager
- func (_this *ServiceWorkerRegistration) Unregister() (_result *javascript.PromiseBool)
- func (_this *ServiceWorkerRegistration) Update() (_result *javascript.PromiseVoid)
- func (_this *ServiceWorkerRegistration) UpdateViaCache() ServiceWorkerUpdateViaCache
- func (_this *ServiceWorkerRegistration) Waiting() *ServiceWorker
- type ServiceWorkerState
- type ServiceWorkerUpdateViaCache
- type SyncEvent
- type SyncEventInit
- type SyncManager
- type Union
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackgroundFetchEvent ¶
type BackgroundFetchEvent struct {
domcore.ExtendableEvent
}
class: BackgroundFetchEvent
func BackgroundFetchEventFromJS ¶
func BackgroundFetchEventFromJS(value js.Value) *BackgroundFetchEvent
BackgroundFetchEventFromJS is casting a js.Value into BackgroundFetchEvent.
func BackgroundFetchEventFromWrapper ¶
func BackgroundFetchEventFromWrapper(input core.Wrapper) *BackgroundFetchEvent
BackgroundFetchEventFromJS is casting from something that holds a js.Value into BackgroundFetchEvent.
func NewBackgroundFetchEvent ¶
func NewBackgroundFetchEvent(_type string, init *BackgroundFetchEventInit) (_result *BackgroundFetchEvent)
func (*BackgroundFetchEvent) Registration ¶
func (_this *BackgroundFetchEvent) Registration() *BackgroundFetchRegistration
Registration returning attribute 'registration' with type BackgroundFetchRegistration (idl: BackgroundFetchRegistration).
type BackgroundFetchEventInit ¶
type BackgroundFetchEventInit struct { Bubbles bool Cancelable bool Composed bool Registration *BackgroundFetchRegistration }
dictionary: BackgroundFetchEventInit
func BackgroundFetchEventInitFromJS ¶
func BackgroundFetchEventInitFromJS(value js.Value) *BackgroundFetchEventInit
BackgroundFetchEventInitFromJS is allocating a new BackgroundFetchEventInit object and copy all values in the value javascript object.
func (*BackgroundFetchEventInit) JSValue ¶
func (_this *BackgroundFetchEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type BackgroundFetchFailureReason ¶
type BackgroundFetchFailureReason int
enum: BackgroundFetchFailureReason
const ( EmptyString0BackgroundFetchFailureReason BackgroundFetchFailureReason = iota AbortedBackgroundFetchFailureReason BadStatusBackgroundFetchFailureReason FetchErrorBackgroundFetchFailureReason QuotaExceededBackgroundFetchFailureReason DownloadTotalExceededBackgroundFetchFailureReason )
func BackgroundFetchFailureReasonFromJS ¶
func BackgroundFetchFailureReasonFromJS(value js.Value) BackgroundFetchFailureReason
BackgroundFetchFailureReasonFromJS is converting a javascript value into a BackgroundFetchFailureReason enum value.
func (*BackgroundFetchFailureReason) JSValue ¶
func (this *BackgroundFetchFailureReason) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (BackgroundFetchFailureReason) Value ¶
func (this BackgroundFetchFailureReason) Value() string
Value is converting this into javascript defined string value
type BackgroundFetchManager ¶
type BackgroundFetchManager struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: BackgroundFetchManager
func BackgroundFetchManagerFromJS ¶
func BackgroundFetchManagerFromJS(value js.Value) *BackgroundFetchManager
BackgroundFetchManagerFromJS is casting a js.Value into BackgroundFetchManager.
func BackgroundFetchManagerFromWrapper ¶
func BackgroundFetchManagerFromWrapper(input core.Wrapper) *BackgroundFetchManager
BackgroundFetchManagerFromJS is casting from something that holds a js.Value into BackgroundFetchManager.
func (*BackgroundFetchManager) Fetch ¶
func (_this *BackgroundFetchManager) Fetch(id string, requests *Union, options *BackgroundFetchOptions) (_result *PromiseBackgroundFetchRegistration)
func (*BackgroundFetchManager) Get ¶
func (_this *BackgroundFetchManager) Get(id string) (_result *PromiseNilBackgroundFetchRegistration)
func (*BackgroundFetchManager) GetIds ¶
func (_this *BackgroundFetchManager) GetIds() (_result *javascript.PromiseSequenceString)
func (*BackgroundFetchManager) JSValue ¶
func (_this *BackgroundFetchManager) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
type BackgroundFetchOptions ¶
type BackgroundFetchOptions struct { Icons []*appmenifestres.ImageResource Title string DownloadTotal int }
dictionary: BackgroundFetchOptions
func BackgroundFetchOptionsFromJS ¶
func BackgroundFetchOptionsFromJS(value js.Value) *BackgroundFetchOptions
BackgroundFetchOptionsFromJS is allocating a new BackgroundFetchOptions object and copy all values in the value javascript object.
func (*BackgroundFetchOptions) JSValue ¶
func (_this *BackgroundFetchOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type BackgroundFetchRecord ¶
type BackgroundFetchRecord struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: BackgroundFetchRecord
func BackgroundFetchRecordFromJS ¶
func BackgroundFetchRecordFromJS(value js.Value) *BackgroundFetchRecord
BackgroundFetchRecordFromJS is casting a js.Value into BackgroundFetchRecord.
func BackgroundFetchRecordFromWrapper ¶
func BackgroundFetchRecordFromWrapper(input core.Wrapper) *BackgroundFetchRecord
BackgroundFetchRecordFromJS is casting from something that holds a js.Value into BackgroundFetchRecord.
func (*BackgroundFetchRecord) JSValue ¶
func (_this *BackgroundFetchRecord) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*BackgroundFetchRecord) Request ¶
func (_this *BackgroundFetchRecord) Request() *fetch.Request
Request returning attribute 'request' with type fetch.Request (idl: Request).
func (*BackgroundFetchRecord) ResponseReady ¶
func (_this *BackgroundFetchRecord) ResponseReady() *javascript.Promise
ResponseReady returning attribute 'responseReady' with type javascript.Promise (idl: Promise).
type BackgroundFetchRegistration ¶
type BackgroundFetchRegistration struct {
domcore.EventTarget
}
class: BackgroundFetchRegistration
func BackgroundFetchRegistrationFromJS ¶
func BackgroundFetchRegistrationFromJS(value js.Value) *BackgroundFetchRegistration
BackgroundFetchRegistrationFromJS is casting a js.Value into BackgroundFetchRegistration.
func BackgroundFetchRegistrationFromWrapper ¶
func BackgroundFetchRegistrationFromWrapper(input core.Wrapper) *BackgroundFetchRegistration
BackgroundFetchRegistrationFromJS is casting from something that holds a js.Value into BackgroundFetchRegistration.
func (*BackgroundFetchRegistration) Abort ¶
func (_this *BackgroundFetchRegistration) Abort() (_result *javascript.PromiseBool)
func (*BackgroundFetchRegistration) AddEventProgress ¶
func (_this *BackgroundFetchRegistration) AddEventProgress(listener func(event *domcore.Event, currentTarget *BackgroundFetchRegistration)) js.Func
AddProgress is adding doing AddEventListener for 'Progress' on target. This method is returning allocated javascript function that need to be released.
func (*BackgroundFetchRegistration) DownloadTotal ¶
func (_this *BackgroundFetchRegistration) DownloadTotal() int
DownloadTotal returning attribute 'downloadTotal' with type int (idl: unsigned long long).
func (*BackgroundFetchRegistration) Downloaded ¶
func (_this *BackgroundFetchRegistration) Downloaded() int
Downloaded returning attribute 'downloaded' with type int (idl: unsigned long long).
func (*BackgroundFetchRegistration) FailureReason ¶
func (_this *BackgroundFetchRegistration) FailureReason() BackgroundFetchFailureReason
FailureReason returning attribute 'failureReason' with type BackgroundFetchFailureReason (idl: BackgroundFetchFailureReason).
func (*BackgroundFetchRegistration) Id ¶
func (_this *BackgroundFetchRegistration) Id() string
Id returning attribute 'id' with type string (idl: DOMString).
func (*BackgroundFetchRegistration) Match ¶
func (_this *BackgroundFetchRegistration) Match(request *Union, options *CacheQueryOptions) (_result *PromiseBackgroundFetchRecord)
func (*BackgroundFetchRegistration) MatchAll ¶
func (_this *BackgroundFetchRegistration) MatchAll(request *Union, options *CacheQueryOptions) (_result *PromiseSequenceBackgroundFetchRecord)
func (*BackgroundFetchRegistration) OnProgress ¶
func (_this *BackgroundFetchRegistration) OnProgress() domcore.EventHandlerFunc
OnProgress returning attribute 'onprogress' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*BackgroundFetchRegistration) RecordsAvailable ¶
func (_this *BackgroundFetchRegistration) RecordsAvailable() bool
RecordsAvailable returning attribute 'recordsAvailable' with type bool (idl: boolean).
func (*BackgroundFetchRegistration) Result ¶
func (_this *BackgroundFetchRegistration) Result() BackgroundFetchResult
Result returning attribute 'result' with type BackgroundFetchResult (idl: BackgroundFetchResult).
func (*BackgroundFetchRegistration) SetOnProgress ¶
func (_this *BackgroundFetchRegistration) SetOnProgress(listener func(event *domcore.Event, currentTarget *BackgroundFetchRegistration)) js.Func
SetOnProgress is assigning a function to 'onprogress'. This This method is returning allocated javascript function that need to be released.
func (*BackgroundFetchRegistration) UploadTotal ¶
func (_this *BackgroundFetchRegistration) UploadTotal() int
UploadTotal returning attribute 'uploadTotal' with type int (idl: unsigned long long).
func (*BackgroundFetchRegistration) Uploaded ¶
func (_this *BackgroundFetchRegistration) Uploaded() int
Uploaded returning attribute 'uploaded' with type int (idl: unsigned long long).
type BackgroundFetchResult ¶
type BackgroundFetchResult int
enum: BackgroundFetchResult
const ( EmptyString0BackgroundFetchResult BackgroundFetchResult = iota SuccessBackgroundFetchResult FailureBackgroundFetchResult )
func BackgroundFetchResultFromJS ¶
func BackgroundFetchResultFromJS(value js.Value) BackgroundFetchResult
BackgroundFetchResultFromJS is converting a javascript value into a BackgroundFetchResult enum value.
func (*BackgroundFetchResult) JSValue ¶
func (this *BackgroundFetchResult) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (BackgroundFetchResult) Value ¶
func (this BackgroundFetchResult) Value() string
Value is converting this into javascript defined string value
type BackgroundFetchUIOptions ¶
type BackgroundFetchUIOptions struct { Icons []*appmenifestres.ImageResource Title string }
dictionary: BackgroundFetchUIOptions
func BackgroundFetchUIOptionsFromJS ¶
func BackgroundFetchUIOptionsFromJS(value js.Value) *BackgroundFetchUIOptions
BackgroundFetchUIOptionsFromJS is allocating a new BackgroundFetchUIOptions object and copy all values in the value javascript object.
func (*BackgroundFetchUIOptions) JSValue ¶
func (_this *BackgroundFetchUIOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type BackgroundFetchUpdateUIEvent ¶
type BackgroundFetchUpdateUIEvent struct {
BackgroundFetchEvent
}
class: BackgroundFetchUpdateUIEvent
func BackgroundFetchUpdateUIEventFromJS ¶
func BackgroundFetchUpdateUIEventFromJS(value js.Value) *BackgroundFetchUpdateUIEvent
BackgroundFetchUpdateUIEventFromJS is casting a js.Value into BackgroundFetchUpdateUIEvent.
func BackgroundFetchUpdateUIEventFromWrapper ¶
func BackgroundFetchUpdateUIEventFromWrapper(input core.Wrapper) *BackgroundFetchUpdateUIEvent
BackgroundFetchUpdateUIEventFromJS is casting from something that holds a js.Value into BackgroundFetchUpdateUIEvent.
func NewBackgroundFetchUpdateUIEvent ¶
func NewBackgroundFetchUpdateUIEvent(_type string, init *BackgroundFetchEventInit) (_result *BackgroundFetchUpdateUIEvent)
func (*BackgroundFetchUpdateUIEvent) UpdateUI ¶
func (_this *BackgroundFetchUpdateUIEvent) UpdateUI(options *BackgroundFetchUIOptions) (_result *javascript.PromiseVoid)
type Cache ¶
class: Cache
func CacheFromJS ¶
CacheFromJS is casting a js.Value into Cache.
func CacheFromWrapper ¶
CacheFromJS is casting from something that holds a js.Value into Cache.
func (*Cache) Add ¶
func (_this *Cache) Add(request *Union) (_result *javascript.PromiseVoid)
func (*Cache) AddAll ¶
func (_this *Cache) AddAll(requests []*Union) (_result *javascript.PromiseVoid)
func (*Cache) Delete ¶
func (_this *Cache) Delete(request *Union, options *CacheQueryOptions) (_result *javascript.PromiseBool)
func (*Cache) Keys ¶
func (_this *Cache) Keys(request *Union, options *CacheQueryOptions) (_result *javascript.PromiseFrozenArray)
func (*Cache) Match ¶
func (_this *Cache) Match(request *Union, options *CacheQueryOptions) (_result *javascript.Promise)
func (*Cache) MatchAll ¶
func (_this *Cache) MatchAll(request *Union, options *CacheQueryOptions) (_result *javascript.PromiseFrozenArray)
func (*Cache) Put ¶
func (_this *Cache) Put(request *Union, response *fetch.Response) (_result *javascript.PromiseVoid)
type CacheQueryOptions ¶
dictionary: CacheQueryOptions
func CacheQueryOptionsFromJS ¶
func CacheQueryOptionsFromJS(value js.Value) *CacheQueryOptions
CacheQueryOptionsFromJS is allocating a new CacheQueryOptions object and copy all values in the value javascript object.
func (*CacheQueryOptions) JSValue ¶
func (_this *CacheQueryOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type CacheStorage ¶
class: CacheStorage
func CacheStorageFromJS ¶
func CacheStorageFromJS(value js.Value) *CacheStorage
CacheStorageFromJS is casting a js.Value into CacheStorage.
func CacheStorageFromWrapper ¶
func CacheStorageFromWrapper(input core.Wrapper) *CacheStorage
CacheStorageFromJS is casting from something that holds a js.Value into CacheStorage.
func (*CacheStorage) Delete ¶
func (_this *CacheStorage) Delete(cacheName string) (_result *javascript.PromiseBool)
func (*CacheStorage) Has ¶
func (_this *CacheStorage) Has(cacheName string) (_result *javascript.PromiseBool)
func (*CacheStorage) JSValue ¶
func (_this *CacheStorage) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*CacheStorage) Keys ¶
func (_this *CacheStorage) Keys() (_result *javascript.PromiseSequenceString)
func (*CacheStorage) Match ¶
func (_this *CacheStorage) Match(request *Union, options *MultiCacheQueryOptions) (_result *javascript.Promise)
func (*CacheStorage) Open ¶
func (_this *CacheStorage) Open(cacheName string) (_result *PromiseCache)
type ClientQueryOptions ¶
type ClientQueryOptions struct { IncludeUncontrolled bool Type client.ClientType }
dictionary: ClientQueryOptions
func ClientQueryOptionsFromJS ¶
func ClientQueryOptionsFromJS(value js.Value) *ClientQueryOptions
ClientQueryOptionsFromJS is allocating a new ClientQueryOptions object and copy all values in the value javascript object.
func (*ClientQueryOptions) JSValue ¶
func (_this *ClientQueryOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type Clients ¶
class: Clients
func ClientsFromJS ¶
ClientsFromJS is casting a js.Value into Clients.
func ClientsFromWrapper ¶
ClientsFromJS is casting from something that holds a js.Value into Clients.
func (*Clients) Claim ¶
func (_this *Clients) Claim() (_result *javascript.PromiseVoid)
func (*Clients) MatchAll ¶
func (_this *Clients) MatchAll(options *ClientQueryOptions) (_result *javascript.PromiseFrozenArray)
func (*Clients) OpenWindow ¶
func (_this *Clients) OpenWindow(url string) (_result *client.PromiseNilWindowClient)
type ExtendableMessageEvent ¶
type ExtendableMessageEvent struct {
domcore.ExtendableEvent
}
class: ExtendableMessageEvent
func ExtendableMessageEventFromJS ¶
func ExtendableMessageEventFromJS(value js.Value) *ExtendableMessageEvent
ExtendableMessageEventFromJS is casting a js.Value into ExtendableMessageEvent.
func ExtendableMessageEventFromWrapper ¶
func ExtendableMessageEventFromWrapper(input core.Wrapper) *ExtendableMessageEvent
ExtendableMessageEventFromJS is casting from something that holds a js.Value into ExtendableMessageEvent.
func NewExtendableMessageEvent ¶
func NewExtendableMessageEvent(_type string, eventInitDict *ExtendableMessageEventInit) (_result *ExtendableMessageEvent)
func (*ExtendableMessageEvent) Data ¶
func (_this *ExtendableMessageEvent) Data() js.Value
Data returning attribute 'data' with type Any (idl: any).
func (*ExtendableMessageEvent) LastEventId ¶
func (_this *ExtendableMessageEvent) LastEventId() string
LastEventId returning attribute 'lastEventId' with type string (idl: DOMString).
func (*ExtendableMessageEvent) Origin ¶
func (_this *ExtendableMessageEvent) Origin() string
Origin returning attribute 'origin' with type string (idl: USVString).
func (*ExtendableMessageEvent) Ports ¶
func (_this *ExtendableMessageEvent) Ports() *javascript.FrozenArray
Ports returning attribute 'ports' with type javascript.FrozenArray (idl: FrozenArray).
func (*ExtendableMessageEvent) Source ¶
func (_this *ExtendableMessageEvent) Source() *Union
Source returning attribute 'source' with type Union (idl: Union).
type ExtendableMessageEventInit ¶
type ExtendableMessageEventInit struct { Bubbles bool Cancelable bool Composed bool Data js.Value Origin string LastEventId string Source *Union Ports []*channel.MessagePort }
dictionary: ExtendableMessageEventInit
func ExtendableMessageEventInitFromJS ¶
func ExtendableMessageEventInitFromJS(value js.Value) *ExtendableMessageEventInit
ExtendableMessageEventInitFromJS is allocating a new ExtendableMessageEventInit object and copy all values in the value javascript object.
func (*ExtendableMessageEventInit) JSValue ¶
func (_this *ExtendableMessageEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type FetchEvent ¶
type FetchEvent struct {
domcore.ExtendableEvent
}
class: FetchEvent
func FetchEventFromJS ¶
func FetchEventFromJS(value js.Value) *FetchEvent
FetchEventFromJS is casting a js.Value into FetchEvent.
func FetchEventFromWrapper ¶
func FetchEventFromWrapper(input core.Wrapper) *FetchEvent
FetchEventFromJS is casting from something that holds a js.Value into FetchEvent.
func NewFetchEvent ¶
func NewFetchEvent(_type string, eventInitDict *FetchEventInit) (_result *FetchEvent)
func (*FetchEvent) ClientId ¶
func (_this *FetchEvent) ClientId() string
ClientId returning attribute 'clientId' with type string (idl: DOMString).
func (*FetchEvent) Request ¶
func (_this *FetchEvent) Request() *fetch.Request
Request returning attribute 'request' with type fetch.Request (idl: Request).
func (*FetchEvent) RespondWith ¶
func (_this *FetchEvent) RespondWith(r *fetch.PromiseResponse)
type FetchEventInit ¶
type FetchEventInit struct { Bubbles bool Cancelable bool Composed bool Request *fetch.Request ClientId string }
dictionary: FetchEventInit
func FetchEventInitFromJS ¶
func FetchEventInitFromJS(value js.Value) *FetchEventInit
FetchEventInitFromJS is allocating a new FetchEventInit object and copy all values in the value javascript object.
func (*FetchEventInit) JSValue ¶
func (_this *FetchEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type MultiCacheQueryOptions ¶
type MultiCacheQueryOptions struct { IgnoreSearch bool IgnoreMethod bool IgnoreVary bool CacheName string }
dictionary: MultiCacheQueryOptions
func MultiCacheQueryOptionsFromJS ¶
func MultiCacheQueryOptionsFromJS(value js.Value) *MultiCacheQueryOptions
MultiCacheQueryOptionsFromJS is allocating a new MultiCacheQueryOptions object and copy all values in the value javascript object.
func (*MultiCacheQueryOptions) JSValue ¶
func (_this *MultiCacheQueryOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type PromiseBackgroundFetchRecord ¶
type PromiseBackgroundFetchRecord struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: Promise
func PromiseBackgroundFetchRecordFromJS ¶
func PromiseBackgroundFetchRecordFromJS(value js.Value) *PromiseBackgroundFetchRecord
PromiseBackgroundFetchRecordFromJS is casting a js.Value into PromiseBackgroundFetchRecord.
func PromiseBackgroundFetchRecordFromWrapper ¶
func PromiseBackgroundFetchRecordFromWrapper(input core.Wrapper) *PromiseBackgroundFetchRecord
PromiseBackgroundFetchRecordFromJS is casting from something that holds a js.Value into PromiseBackgroundFetchRecord.
func (*PromiseBackgroundFetchRecord) Catch ¶
func (_this *PromiseBackgroundFetchRecord) Catch(onRejected *PromiseBackgroundFetchRecordOnRejected) (_result *PromiseBackgroundFetchRecord)
func (*PromiseBackgroundFetchRecord) Finally ¶
func (_this *PromiseBackgroundFetchRecord) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseBackgroundFetchRecord)
func (*PromiseBackgroundFetchRecord) JSValue ¶
func (_this *PromiseBackgroundFetchRecord) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*PromiseBackgroundFetchRecord) Then ¶
func (_this *PromiseBackgroundFetchRecord) Then(onFulfilled *PromiseBackgroundFetchRecordOnFulfilled, onRejected *PromiseBackgroundFetchRecordOnRejected) (_result *PromiseBackgroundFetchRecord)
type PromiseBackgroundFetchRecordOnFulfilled ¶
PromiseBackgroundFetchRecordOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseBackgroundFetchRecordOnFulfilledToJS ¶
func PromiseBackgroundFetchRecordOnFulfilledToJS(callback PromiseBackgroundFetchRecordOnFulfilledFunc) *PromiseBackgroundFetchRecordOnFulfilled
type PromiseBackgroundFetchRecordOnFulfilledFunc ¶
type PromiseBackgroundFetchRecordOnFulfilledFunc func(value *BackgroundFetchRecord)
callback: PromiseTemplateOnFulfilled
func PromiseBackgroundFetchRecordOnFulfilledFromJS ¶
func PromiseBackgroundFetchRecordOnFulfilledFromJS(_value js.Value) PromiseBackgroundFetchRecordOnFulfilledFunc
type PromiseBackgroundFetchRecordOnRejected ¶
PromiseBackgroundFetchRecordOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseBackgroundFetchRecordOnRejectedToJS ¶
func PromiseBackgroundFetchRecordOnRejectedToJS(callback PromiseBackgroundFetchRecordOnRejectedFunc) *PromiseBackgroundFetchRecordOnRejected
type PromiseBackgroundFetchRecordOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromiseBackgroundFetchRecordOnRejectedFromJS ¶
func PromiseBackgroundFetchRecordOnRejectedFromJS(_value js.Value) PromiseBackgroundFetchRecordOnRejectedFunc
type PromiseBackgroundFetchRegistration ¶
type PromiseBackgroundFetchRegistration struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: Promise
func PromiseBackgroundFetchRegistrationFromJS ¶
func PromiseBackgroundFetchRegistrationFromJS(value js.Value) *PromiseBackgroundFetchRegistration
PromiseBackgroundFetchRegistrationFromJS is casting a js.Value into PromiseBackgroundFetchRegistration.
func PromiseBackgroundFetchRegistrationFromWrapper ¶
func PromiseBackgroundFetchRegistrationFromWrapper(input core.Wrapper) *PromiseBackgroundFetchRegistration
PromiseBackgroundFetchRegistrationFromJS is casting from something that holds a js.Value into PromiseBackgroundFetchRegistration.
func (*PromiseBackgroundFetchRegistration) Catch ¶
func (_this *PromiseBackgroundFetchRegistration) Catch(onRejected *PromiseBackgroundFetchRegistrationOnRejected) (_result *PromiseBackgroundFetchRegistration)
func (*PromiseBackgroundFetchRegistration) Finally ¶
func (_this *PromiseBackgroundFetchRegistration) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseBackgroundFetchRegistration)
func (*PromiseBackgroundFetchRegistration) JSValue ¶
func (_this *PromiseBackgroundFetchRegistration) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*PromiseBackgroundFetchRegistration) Then ¶
func (_this *PromiseBackgroundFetchRegistration) Then(onFulfilled *PromiseBackgroundFetchRegistrationOnFulfilled, onRejected *PromiseBackgroundFetchRegistrationOnRejected) (_result *PromiseBackgroundFetchRegistration)
type PromiseBackgroundFetchRegistrationOnFulfilled ¶
PromiseBackgroundFetchRegistrationOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseBackgroundFetchRegistrationOnFulfilledToJS ¶
func PromiseBackgroundFetchRegistrationOnFulfilledToJS(callback PromiseBackgroundFetchRegistrationOnFulfilledFunc) *PromiseBackgroundFetchRegistrationOnFulfilled
type PromiseBackgroundFetchRegistrationOnFulfilledFunc ¶
type PromiseBackgroundFetchRegistrationOnFulfilledFunc func(value *BackgroundFetchRegistration)
callback: PromiseTemplateOnFulfilled
func PromiseBackgroundFetchRegistrationOnFulfilledFromJS ¶
func PromiseBackgroundFetchRegistrationOnFulfilledFromJS(_value js.Value) PromiseBackgroundFetchRegistrationOnFulfilledFunc
type PromiseBackgroundFetchRegistrationOnRejected ¶
PromiseBackgroundFetchRegistrationOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseBackgroundFetchRegistrationOnRejectedToJS ¶
func PromiseBackgroundFetchRegistrationOnRejectedToJS(callback PromiseBackgroundFetchRegistrationOnRejectedFunc) *PromiseBackgroundFetchRegistrationOnRejected
type PromiseBackgroundFetchRegistrationOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromiseBackgroundFetchRegistrationOnRejectedFromJS ¶
func PromiseBackgroundFetchRegistrationOnRejectedFromJS(_value js.Value) PromiseBackgroundFetchRegistrationOnRejectedFunc
type PromiseCache ¶
class: Promise
func PromiseCacheFromJS ¶
func PromiseCacheFromJS(value js.Value) *PromiseCache
PromiseCacheFromJS is casting a js.Value into PromiseCache.
func PromiseCacheFromWrapper ¶
func PromiseCacheFromWrapper(input core.Wrapper) *PromiseCache
PromiseCacheFromJS is casting from something that holds a js.Value into PromiseCache.
func (*PromiseCache) Catch ¶
func (_this *PromiseCache) Catch(onRejected *PromiseCacheOnRejected) (_result *PromiseCache)
func (*PromiseCache) Finally ¶
func (_this *PromiseCache) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseCache)
func (*PromiseCache) JSValue ¶
func (_this *PromiseCache) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*PromiseCache) Then ¶
func (_this *PromiseCache) Then(onFulfilled *PromiseCacheOnFulfilled, onRejected *PromiseCacheOnRejected) (_result *PromiseCache)
type PromiseCacheOnFulfilled ¶
PromiseCacheOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseCacheOnFulfilledToJS ¶
func PromiseCacheOnFulfilledToJS(callback PromiseCacheOnFulfilledFunc) *PromiseCacheOnFulfilled
type PromiseCacheOnFulfilledFunc ¶
type PromiseCacheOnFulfilledFunc func(value *Cache)
callback: PromiseTemplateOnFulfilled
func PromiseCacheOnFulfilledFromJS ¶
func PromiseCacheOnFulfilledFromJS(_value js.Value) PromiseCacheOnFulfilledFunc
type PromiseCacheOnRejected ¶
PromiseCacheOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseCacheOnRejectedToJS ¶
func PromiseCacheOnRejectedToJS(callback PromiseCacheOnRejectedFunc) *PromiseCacheOnRejected
type PromiseCacheOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromiseCacheOnRejectedFromJS ¶
func PromiseCacheOnRejectedFromJS(_value js.Value) PromiseCacheOnRejectedFunc
type PromiseNilBackgroundFetchRegistration ¶
type PromiseNilBackgroundFetchRegistration struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: Promise
func PromiseNilBackgroundFetchRegistrationFromJS ¶
func PromiseNilBackgroundFetchRegistrationFromJS(value js.Value) *PromiseNilBackgroundFetchRegistration
PromiseNilBackgroundFetchRegistrationFromJS is casting a js.Value into PromiseNilBackgroundFetchRegistration.
func PromiseNilBackgroundFetchRegistrationFromWrapper ¶
func PromiseNilBackgroundFetchRegistrationFromWrapper(input core.Wrapper) *PromiseNilBackgroundFetchRegistration
PromiseNilBackgroundFetchRegistrationFromJS is casting from something that holds a js.Value into PromiseNilBackgroundFetchRegistration.
func (*PromiseNilBackgroundFetchRegistration) Catch ¶
func (_this *PromiseNilBackgroundFetchRegistration) Catch(onRejected *PromiseNilBackgroundFetchRegistrationOnRejected) (_result *PromiseNilBackgroundFetchRegistration)
func (*PromiseNilBackgroundFetchRegistration) Finally ¶
func (_this *PromiseNilBackgroundFetchRegistration) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseNilBackgroundFetchRegistration)
func (*PromiseNilBackgroundFetchRegistration) JSValue ¶
func (_this *PromiseNilBackgroundFetchRegistration) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*PromiseNilBackgroundFetchRegistration) Then ¶
func (_this *PromiseNilBackgroundFetchRegistration) Then(onFulfilled *PromiseNilBackgroundFetchRegistrationOnFulfilled, onRejected *PromiseNilBackgroundFetchRegistrationOnRejected) (_result *PromiseNilBackgroundFetchRegistration)
type PromiseNilBackgroundFetchRegistrationOnFulfilled ¶
PromiseNilBackgroundFetchRegistrationOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseNilBackgroundFetchRegistrationOnFulfilledToJS ¶
func PromiseNilBackgroundFetchRegistrationOnFulfilledToJS(callback PromiseNilBackgroundFetchRegistrationOnFulfilledFunc) *PromiseNilBackgroundFetchRegistrationOnFulfilled
type PromiseNilBackgroundFetchRegistrationOnFulfilledFunc ¶
type PromiseNilBackgroundFetchRegistrationOnFulfilledFunc func(value *BackgroundFetchRegistration)
callback: PromiseTemplateOnFulfilled
func PromiseNilBackgroundFetchRegistrationOnFulfilledFromJS ¶
func PromiseNilBackgroundFetchRegistrationOnFulfilledFromJS(_value js.Value) PromiseNilBackgroundFetchRegistrationOnFulfilledFunc
type PromiseNilBackgroundFetchRegistrationOnRejected ¶
PromiseNilBackgroundFetchRegistrationOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseNilBackgroundFetchRegistrationOnRejectedToJS ¶
func PromiseNilBackgroundFetchRegistrationOnRejectedToJS(callback PromiseNilBackgroundFetchRegistrationOnRejectedFunc) *PromiseNilBackgroundFetchRegistrationOnRejected
type PromiseNilBackgroundFetchRegistrationOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromiseNilBackgroundFetchRegistrationOnRejectedFromJS ¶
func PromiseNilBackgroundFetchRegistrationOnRejectedFromJS(_value js.Value) PromiseNilBackgroundFetchRegistrationOnRejectedFunc
type PromiseSequenceBackgroundFetchRecord ¶
type PromiseSequenceBackgroundFetchRecord struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: Promise
func PromiseSequenceBackgroundFetchRecordFromJS ¶
func PromiseSequenceBackgroundFetchRecordFromJS(value js.Value) *PromiseSequenceBackgroundFetchRecord
PromiseSequenceBackgroundFetchRecordFromJS is casting a js.Value into PromiseSequenceBackgroundFetchRecord.
func PromiseSequenceBackgroundFetchRecordFromWrapper ¶
func PromiseSequenceBackgroundFetchRecordFromWrapper(input core.Wrapper) *PromiseSequenceBackgroundFetchRecord
PromiseSequenceBackgroundFetchRecordFromJS is casting from something that holds a js.Value into PromiseSequenceBackgroundFetchRecord.
func (*PromiseSequenceBackgroundFetchRecord) Catch ¶
func (_this *PromiseSequenceBackgroundFetchRecord) Catch(onRejected *PromiseSequenceBackgroundFetchRecordOnRejected) (_result *PromiseSequenceBackgroundFetchRecord)
func (*PromiseSequenceBackgroundFetchRecord) Finally ¶
func (_this *PromiseSequenceBackgroundFetchRecord) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseSequenceBackgroundFetchRecord)
func (*PromiseSequenceBackgroundFetchRecord) JSValue ¶
func (_this *PromiseSequenceBackgroundFetchRecord) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*PromiseSequenceBackgroundFetchRecord) Then ¶
func (_this *PromiseSequenceBackgroundFetchRecord) Then(onFulfilled *PromiseSequenceBackgroundFetchRecordOnFulfilled, onRejected *PromiseSequenceBackgroundFetchRecordOnRejected) (_result *PromiseSequenceBackgroundFetchRecord)
type PromiseSequenceBackgroundFetchRecordOnFulfilled ¶
PromiseSequenceBackgroundFetchRecordOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseSequenceBackgroundFetchRecordOnFulfilledToJS ¶
func PromiseSequenceBackgroundFetchRecordOnFulfilledToJS(callback PromiseSequenceBackgroundFetchRecordOnFulfilledFunc) *PromiseSequenceBackgroundFetchRecordOnFulfilled
type PromiseSequenceBackgroundFetchRecordOnFulfilledFunc ¶
type PromiseSequenceBackgroundFetchRecordOnFulfilledFunc func(value []*BackgroundFetchRecord)
callback: PromiseTemplateOnFulfilled
func PromiseSequenceBackgroundFetchRecordOnFulfilledFromJS ¶
func PromiseSequenceBackgroundFetchRecordOnFulfilledFromJS(_value js.Value) PromiseSequenceBackgroundFetchRecordOnFulfilledFunc
type PromiseSequenceBackgroundFetchRecordOnRejected ¶
PromiseSequenceBackgroundFetchRecordOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseSequenceBackgroundFetchRecordOnRejectedToJS ¶
func PromiseSequenceBackgroundFetchRecordOnRejectedToJS(callback PromiseSequenceBackgroundFetchRecordOnRejectedFunc) *PromiseSequenceBackgroundFetchRecordOnRejected
type PromiseSequenceBackgroundFetchRecordOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromiseSequenceBackgroundFetchRecordOnRejectedFromJS ¶
func PromiseSequenceBackgroundFetchRecordOnRejectedFromJS(_value js.Value) PromiseSequenceBackgroundFetchRecordOnRejectedFunc
type PromiseServiceWorkerRegistration ¶
type PromiseServiceWorkerRegistration struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: Promise
func PromiseServiceWorkerRegistrationFromJS ¶
func PromiseServiceWorkerRegistrationFromJS(value js.Value) *PromiseServiceWorkerRegistration
PromiseServiceWorkerRegistrationFromJS is casting a js.Value into PromiseServiceWorkerRegistration.
func PromiseServiceWorkerRegistrationFromWrapper ¶
func PromiseServiceWorkerRegistrationFromWrapper(input core.Wrapper) *PromiseServiceWorkerRegistration
PromiseServiceWorkerRegistrationFromJS is casting from something that holds a js.Value into PromiseServiceWorkerRegistration.
func (*PromiseServiceWorkerRegistration) Catch ¶
func (_this *PromiseServiceWorkerRegistration) Catch(onRejected *PromiseServiceWorkerRegistrationOnRejected) (_result *PromiseServiceWorkerRegistration)
func (*PromiseServiceWorkerRegistration) Finally ¶
func (_this *PromiseServiceWorkerRegistration) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseServiceWorkerRegistration)
func (*PromiseServiceWorkerRegistration) JSValue ¶
func (_this *PromiseServiceWorkerRegistration) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*PromiseServiceWorkerRegistration) Then ¶
func (_this *PromiseServiceWorkerRegistration) Then(onFulfilled *PromiseServiceWorkerRegistrationOnFulfilled, onRejected *PromiseServiceWorkerRegistrationOnRejected) (_result *PromiseServiceWorkerRegistration)
type PromiseServiceWorkerRegistrationOnFulfilled ¶
PromiseServiceWorkerRegistrationOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseServiceWorkerRegistrationOnFulfilledToJS ¶
func PromiseServiceWorkerRegistrationOnFulfilledToJS(callback PromiseServiceWorkerRegistrationOnFulfilledFunc) *PromiseServiceWorkerRegistrationOnFulfilled
type PromiseServiceWorkerRegistrationOnFulfilledFunc ¶
type PromiseServiceWorkerRegistrationOnFulfilledFunc func(value *ServiceWorkerRegistration)
callback: PromiseTemplateOnFulfilled
func PromiseServiceWorkerRegistrationOnFulfilledFromJS ¶
func PromiseServiceWorkerRegistrationOnFulfilledFromJS(_value js.Value) PromiseServiceWorkerRegistrationOnFulfilledFunc
type PromiseServiceWorkerRegistrationOnRejected ¶
PromiseServiceWorkerRegistrationOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseServiceWorkerRegistrationOnRejectedToJS ¶
func PromiseServiceWorkerRegistrationOnRejectedToJS(callback PromiseServiceWorkerRegistrationOnRejectedFunc) *PromiseServiceWorkerRegistrationOnRejected
type PromiseServiceWorkerRegistrationOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromiseServiceWorkerRegistrationOnRejectedFromJS ¶
func PromiseServiceWorkerRegistrationOnRejectedFromJS(_value js.Value) PromiseServiceWorkerRegistrationOnRejectedFunc
type RegistrationOptions ¶
type RegistrationOptions struct { Scope string Type htmlcommon.WorkerType UpdateViaCache ServiceWorkerUpdateViaCache }
dictionary: RegistrationOptions
func RegistrationOptionsFromJS ¶
func RegistrationOptionsFromJS(value js.Value) *RegistrationOptions
RegistrationOptionsFromJS is allocating a new RegistrationOptions object and copy all values in the value javascript object.
func (*RegistrationOptions) JSValue ¶
func (_this *RegistrationOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type ServiceWorker ¶
type ServiceWorker struct {
domcore.EventTarget
}
class: ServiceWorker
func ServiceWorkerFromJS ¶
func ServiceWorkerFromJS(value js.Value) *ServiceWorker
ServiceWorkerFromJS is casting a js.Value into ServiceWorker.
func ServiceWorkerFromWrapper ¶
func ServiceWorkerFromWrapper(input core.Wrapper) *ServiceWorker
ServiceWorkerFromJS is casting from something that holds a js.Value into ServiceWorker.
func (*ServiceWorker) AddEventError ¶
func (_this *ServiceWorker) AddEventError(listener func(event *domcore.Event, currentTarget *ServiceWorker)) js.Func
AddError is adding doing AddEventListener for 'Error' on target. This method is returning allocated javascript function that need to be released.
func (*ServiceWorker) AddEventStateChange ¶
func (_this *ServiceWorker) AddEventStateChange(listener func(event *domcore.Event, currentTarget *ServiceWorker)) js.Func
AddStateChange is adding doing AddEventListener for 'StateChange' on target. This method is returning allocated javascript function that need to be released.
func (*ServiceWorker) OnError ¶
func (_this *ServiceWorker) OnError() domcore.EventHandlerFunc
OnError returning attribute 'onerror' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*ServiceWorker) OnStateChange ¶
func (_this *ServiceWorker) OnStateChange() domcore.EventHandlerFunc
OnStateChange returning attribute 'onstatechange' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*ServiceWorker) PostMessage ¶
func (_this *ServiceWorker) PostMessage(message interface{}, transfer []*javascript.Object)
func (*ServiceWorker) ScriptURL ¶
func (_this *ServiceWorker) ScriptURL() string
ScriptURL returning attribute 'scriptURL' with type string (idl: USVString).
func (*ServiceWorker) SetOnError ¶
func (_this *ServiceWorker) SetOnError(listener func(event *domcore.Event, currentTarget *ServiceWorker)) js.Func
SetOnError is assigning a function to 'onerror'. This This method is returning allocated javascript function that need to be released.
func (*ServiceWorker) SetOnStateChange ¶
func (_this *ServiceWorker) SetOnStateChange(listener func(event *domcore.Event, currentTarget *ServiceWorker)) js.Func
SetOnStateChange is assigning a function to 'onstatechange'. This This method is returning allocated javascript function that need to be released.
func (*ServiceWorker) State ¶
func (_this *ServiceWorker) State() ServiceWorkerState
State returning attribute 'state' with type ServiceWorkerState (idl: ServiceWorkerState).
type ServiceWorkerContainer ¶
type ServiceWorkerContainer struct {
domcore.EventTarget
}
class: ServiceWorkerContainer
func ServiceWorkerContainerFromJS ¶
func ServiceWorkerContainerFromJS(value js.Value) *ServiceWorkerContainer
ServiceWorkerContainerFromJS is casting a js.Value into ServiceWorkerContainer.
func ServiceWorkerContainerFromWrapper ¶
func ServiceWorkerContainerFromWrapper(input core.Wrapper) *ServiceWorkerContainer
ServiceWorkerContainerFromJS is casting from something that holds a js.Value into ServiceWorkerContainer.
func (*ServiceWorkerContainer) AddEventControllerChange ¶
func (_this *ServiceWorkerContainer) AddEventControllerChange(listener func(event *domcore.Event, currentTarget *ServiceWorkerContainer)) js.Func
AddControllerChange is adding doing AddEventListener for 'ControllerChange' on target. This method is returning allocated javascript function that need to be released.
func (*ServiceWorkerContainer) AddEventMessage ¶
func (_this *ServiceWorkerContainer) AddEventMessage(listener func(event *ExtendableMessageEvent, currentTarget *ServiceWorkerContainer)) js.Func
AddMessage is adding doing AddEventListener for 'Message' on target. This method is returning allocated javascript function that need to be released.
func (*ServiceWorkerContainer) AddEventMessageError ¶
func (_this *ServiceWorkerContainer) AddEventMessageError(listener func(event *channel.MessageEvent, currentTarget *ServiceWorkerContainer)) js.Func
AddMessageError is adding doing AddEventListener for 'MessageError' on target. This method is returning allocated javascript function that need to be released.
func (*ServiceWorkerContainer) Controller ¶
func (_this *ServiceWorkerContainer) Controller() *ServiceWorker
Controller returning attribute 'controller' with type ServiceWorker (idl: ServiceWorker).
func (*ServiceWorkerContainer) GetRegistration ¶
func (_this *ServiceWorkerContainer) GetRegistration(clientURL *string) (_result *javascript.Promise)
func (*ServiceWorkerContainer) GetRegistrations ¶
func (_this *ServiceWorkerContainer) GetRegistrations() (_result *javascript.PromiseFrozenArray)
func (*ServiceWorkerContainer) OnControllerChange ¶
func (_this *ServiceWorkerContainer) OnControllerChange() domcore.EventHandlerFunc
OnControllerChange returning attribute 'oncontrollerchange' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*ServiceWorkerContainer) OnMessage ¶
func (_this *ServiceWorkerContainer) OnMessage() domcore.EventHandlerFunc
OnMessage returning attribute 'onmessage' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*ServiceWorkerContainer) OnMessageError ¶
func (_this *ServiceWorkerContainer) OnMessageError() domcore.EventHandlerFunc
OnMessageError returning attribute 'onmessageerror' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*ServiceWorkerContainer) Ready ¶
func (_this *ServiceWorkerContainer) Ready() *javascript.Promise
Ready returning attribute 'ready' with type javascript.Promise (idl: Promise).
func (*ServiceWorkerContainer) Register ¶
func (_this *ServiceWorkerContainer) Register(scriptURL string, options *RegistrationOptions) (_result *PromiseServiceWorkerRegistration)
func (*ServiceWorkerContainer) SetOnControllerChange ¶
func (_this *ServiceWorkerContainer) SetOnControllerChange(listener func(event *domcore.Event, currentTarget *ServiceWorkerContainer)) js.Func
SetOnControllerChange is assigning a function to 'oncontrollerchange'. This This method is returning allocated javascript function that need to be released.
func (*ServiceWorkerContainer) SetOnMessage ¶
func (_this *ServiceWorkerContainer) SetOnMessage(listener func(event *ExtendableMessageEvent, currentTarget *ServiceWorkerContainer)) js.Func
SetOnMessage is assigning a function to 'onmessage'. This This method is returning allocated javascript function that need to be released.
func (*ServiceWorkerContainer) SetOnMessageError ¶
func (_this *ServiceWorkerContainer) SetOnMessageError(listener func(event *channel.MessageEvent, currentTarget *ServiceWorkerContainer)) js.Func
SetOnMessageError is assigning a function to 'onmessageerror'. This This method is returning allocated javascript function that need to be released.
func (*ServiceWorkerContainer) StartMessages ¶
func (_this *ServiceWorkerContainer) StartMessages()
type ServiceWorkerRegistration ¶
type ServiceWorkerRegistration struct {
domcore.EventTarget
}
class: ServiceWorkerRegistration
func ServiceWorkerRegistrationFromJS ¶
func ServiceWorkerRegistrationFromJS(value js.Value) *ServiceWorkerRegistration
ServiceWorkerRegistrationFromJS is casting a js.Value into ServiceWorkerRegistration.
func ServiceWorkerRegistrationFromWrapper ¶
func ServiceWorkerRegistrationFromWrapper(input core.Wrapper) *ServiceWorkerRegistration
ServiceWorkerRegistrationFromJS is casting from something that holds a js.Value into ServiceWorkerRegistration.
func (*ServiceWorkerRegistration) Active ¶
func (_this *ServiceWorkerRegistration) Active() *ServiceWorker
Active returning attribute 'active' with type ServiceWorker (idl: ServiceWorker).
func (*ServiceWorkerRegistration) AddEventUpdateFound ¶
func (_this *ServiceWorkerRegistration) AddEventUpdateFound(listener func(event *domcore.Event, currentTarget *ServiceWorkerRegistration)) js.Func
AddUpdateFound is adding doing AddEventListener for 'UpdateFound' on target. This method is returning allocated javascript function that need to be released.
func (*ServiceWorkerRegistration) BackgroundFetch ¶
func (_this *ServiceWorkerRegistration) BackgroundFetch() *BackgroundFetchManager
BackgroundFetch returning attribute 'backgroundFetch' with type BackgroundFetchManager (idl: BackgroundFetchManager).
func (*ServiceWorkerRegistration) Installing ¶
func (_this *ServiceWorkerRegistration) Installing() *ServiceWorker
Installing returning attribute 'installing' with type ServiceWorker (idl: ServiceWorker).
func (*ServiceWorkerRegistration) OnUpdateFound ¶
func (_this *ServiceWorkerRegistration) OnUpdateFound() domcore.EventHandlerFunc
OnUpdateFound returning attribute 'onupdatefound' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*ServiceWorkerRegistration) PaymentManager ¶
func (_this *ServiceWorkerRegistration) PaymentManager() *payment.PaymentManager
PaymentManager returning attribute 'paymentManager' with type payment.PaymentManager (idl: PaymentManager).
func (*ServiceWorkerRegistration) PushManager ¶
func (_this *ServiceWorkerRegistration) PushManager() *push.Manager
PushManager returning attribute 'pushManager' with type push.Manager (idl: PushManager).
func (*ServiceWorkerRegistration) Scope ¶
func (_this *ServiceWorkerRegistration) Scope() string
Scope returning attribute 'scope' with type string (idl: USVString).
func (*ServiceWorkerRegistration) SetOnUpdateFound ¶
func (_this *ServiceWorkerRegistration) SetOnUpdateFound(listener func(event *domcore.Event, currentTarget *ServiceWorkerRegistration)) js.Func
SetOnUpdateFound is assigning a function to 'onupdatefound'. This This method is returning allocated javascript function that need to be released.
func (*ServiceWorkerRegistration) Sync ¶
func (_this *ServiceWorkerRegistration) Sync() *SyncManager
Sync returning attribute 'sync' with type SyncManager (idl: SyncManager).
func (*ServiceWorkerRegistration) Unregister ¶
func (_this *ServiceWorkerRegistration) Unregister() (_result *javascript.PromiseBool)
func (*ServiceWorkerRegistration) Update ¶
func (_this *ServiceWorkerRegistration) Update() (_result *javascript.PromiseVoid)
func (*ServiceWorkerRegistration) UpdateViaCache ¶
func (_this *ServiceWorkerRegistration) UpdateViaCache() ServiceWorkerUpdateViaCache
UpdateViaCache returning attribute 'updateViaCache' with type ServiceWorkerUpdateViaCache (idl: ServiceWorkerUpdateViaCache).
func (*ServiceWorkerRegistration) Waiting ¶
func (_this *ServiceWorkerRegistration) Waiting() *ServiceWorker
Waiting returning attribute 'waiting' with type ServiceWorker (idl: ServiceWorker).
type ServiceWorkerState ¶
type ServiceWorkerState int
enum: ServiceWorkerState
const ( InstallingServiceWorkerState ServiceWorkerState = iota InstalledServiceWorkerState ActivatingServiceWorkerState ActivatedServiceWorkerState RedundantServiceWorkerState )
func ServiceWorkerStateFromJS ¶
func ServiceWorkerStateFromJS(value js.Value) ServiceWorkerState
ServiceWorkerStateFromJS is converting a javascript value into a ServiceWorkerState enum value.
func (*ServiceWorkerState) JSValue ¶
func (this *ServiceWorkerState) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (ServiceWorkerState) Value ¶
func (this ServiceWorkerState) Value() string
Value is converting this into javascript defined string value
type ServiceWorkerUpdateViaCache ¶
type ServiceWorkerUpdateViaCache int
enum: ServiceWorkerUpdateViaCache
const ( ImportsServiceWorkerUpdateViaCache ServiceWorkerUpdateViaCache = iota AllServiceWorkerUpdateViaCache NoneServiceWorkerUpdateViaCache )
func ServiceWorkerUpdateViaCacheFromJS ¶
func ServiceWorkerUpdateViaCacheFromJS(value js.Value) ServiceWorkerUpdateViaCache
ServiceWorkerUpdateViaCacheFromJS is converting a javascript value into a ServiceWorkerUpdateViaCache enum value.
func (*ServiceWorkerUpdateViaCache) JSValue ¶
func (this *ServiceWorkerUpdateViaCache) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (ServiceWorkerUpdateViaCache) Value ¶
func (this ServiceWorkerUpdateViaCache) Value() string
Value is converting this into javascript defined string value
type SyncEvent ¶
type SyncEvent struct {
domcore.ExtendableEvent
}
class: SyncEvent
func NewSyncEvent ¶
func NewSyncEvent(_type string, init *SyncEventInit) (_result *SyncEvent)
func SyncEventFromJS ¶
SyncEventFromJS is casting a js.Value into SyncEvent.
func SyncEventFromWrapper ¶
SyncEventFromJS is casting from something that holds a js.Value into SyncEvent.
func (*SyncEvent) LastChance ¶
LastChance returning attribute 'lastChance' with type bool (idl: boolean).
type SyncEventInit ¶
dictionary: SyncEventInit
func SyncEventInitFromJS ¶
func SyncEventInitFromJS(value js.Value) *SyncEventInit
SyncEventInitFromJS is allocating a new SyncEventInit object and copy all values in the value javascript object.
func (*SyncEventInit) JSValue ¶
func (_this *SyncEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type SyncManager ¶
class: SyncManager
func SyncManagerFromJS ¶
func SyncManagerFromJS(value js.Value) *SyncManager
SyncManagerFromJS is casting a js.Value into SyncManager.
func SyncManagerFromWrapper ¶
func SyncManagerFromWrapper(input core.Wrapper) *SyncManager
SyncManagerFromJS is casting from something that holds a js.Value into SyncManager.
func (*SyncManager) GetTags ¶
func (_this *SyncManager) GetTags() (_result *javascript.PromiseSequenceString)
func (*SyncManager) JSValue ¶
func (_this *SyncManager) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*SyncManager) Register ¶
func (_this *SyncManager) Register(tag string) (_result *javascript.PromiseVoid)
Directories ¶
Path | Synopsis |
---|---|
Package client is to enables applications to take advantage of persistent background processing, including hooks to enable bootstrapping of web applications while offline.
|
Package client is to enables applications to take advantage of persistent background processing, including hooks to enable bootstrapping of web applications while offline. |