serviceworker

package
v0.0.0-...-41cedfc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 11 Imported by: 4

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

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 (*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

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

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

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

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

class: Cache

func CacheFromJS

func CacheFromJS(value js.Value) *Cache

CacheFromJS is casting a js.Value into Cache.

func CacheFromWrapper

func CacheFromWrapper(input core.Wrapper) *Cache

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) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

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

type CacheQueryOptions struct {
	IgnoreSearch bool
	IgnoreMethod bool
	IgnoreVary   bool
}

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

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

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

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

class: Clients

func ClientsFromJS

func ClientsFromJS(value js.Value) *Clients

ClientsFromJS is casting a js.Value into Clients.

func ClientsFromWrapper

func ClientsFromWrapper(input core.Wrapper) *Clients

ClientsFromJS is casting from something that holds a js.Value into Clients.

func (*Clients) Claim

func (_this *Clients) Claim() (_result *javascript.PromiseVoid)

func (*Clients) Get

func (_this *Clients) Get(id string) (_result *javascript.Promise)

func (*Clients) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

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

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 (*PromiseBackgroundFetchRecord) Finally

func (*PromiseBackgroundFetchRecord) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*PromiseBackgroundFetchRecord) Then

type PromiseBackgroundFetchRecordOnFulfilled

type PromiseBackgroundFetchRecordOnFulfilled js.Func

PromiseBackgroundFetchRecordOnFulfilled is a javascript function type.

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

type PromiseBackgroundFetchRecordOnFulfilledFunc

type PromiseBackgroundFetchRecordOnFulfilledFunc func(value *BackgroundFetchRecord)

callback: PromiseTemplateOnFulfilled

func PromiseBackgroundFetchRecordOnFulfilledFromJS

func PromiseBackgroundFetchRecordOnFulfilledFromJS(_value js.Value) PromiseBackgroundFetchRecordOnFulfilledFunc

type PromiseBackgroundFetchRecordOnRejected

type PromiseBackgroundFetchRecordOnRejected js.Func

PromiseBackgroundFetchRecordOnRejected is a javascript function type.

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

type PromiseBackgroundFetchRecordOnRejectedFunc

type PromiseBackgroundFetchRecordOnRejectedFunc func(reason js.Value)

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 (*PromiseBackgroundFetchRegistration) Finally

func (*PromiseBackgroundFetchRegistration) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

type PromiseBackgroundFetchRegistrationOnFulfilled

type PromiseBackgroundFetchRegistrationOnFulfilled js.Func

PromiseBackgroundFetchRegistrationOnFulfilled is a javascript function type.

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

type PromiseBackgroundFetchRegistrationOnFulfilledFunc

type PromiseBackgroundFetchRegistrationOnFulfilledFunc func(value *BackgroundFetchRegistration)

callback: PromiseTemplateOnFulfilled

func PromiseBackgroundFetchRegistrationOnFulfilledFromJS

func PromiseBackgroundFetchRegistrationOnFulfilledFromJS(_value js.Value) PromiseBackgroundFetchRegistrationOnFulfilledFunc

type PromiseBackgroundFetchRegistrationOnRejected

type PromiseBackgroundFetchRegistrationOnRejected js.Func

PromiseBackgroundFetchRegistrationOnRejected is a javascript function type.

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

type PromiseBackgroundFetchRegistrationOnRejectedFunc

type PromiseBackgroundFetchRegistrationOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseBackgroundFetchRegistrationOnRejectedFromJS

func PromiseBackgroundFetchRegistrationOnRejectedFromJS(_value js.Value) PromiseBackgroundFetchRegistrationOnRejectedFunc

type PromiseCache

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

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

type PromiseCacheOnFulfilled js.Func

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

type PromiseCacheOnRejected js.Func

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

type PromiseCacheOnRejectedFunc func(reason js.Value)

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 (*PromiseNilBackgroundFetchRegistration) Finally

func (*PromiseNilBackgroundFetchRegistration) JSValue

JSValue returns the js.Value or js.Null() if _this is nil

type PromiseNilBackgroundFetchRegistrationOnFulfilled

type PromiseNilBackgroundFetchRegistrationOnFulfilled js.Func

PromiseNilBackgroundFetchRegistrationOnFulfilled is a javascript function type.

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

type PromiseNilBackgroundFetchRegistrationOnFulfilledFunc

type PromiseNilBackgroundFetchRegistrationOnFulfilledFunc func(value *BackgroundFetchRegistration)

callback: PromiseTemplateOnFulfilled

func PromiseNilBackgroundFetchRegistrationOnFulfilledFromJS

func PromiseNilBackgroundFetchRegistrationOnFulfilledFromJS(_value js.Value) PromiseNilBackgroundFetchRegistrationOnFulfilledFunc

type PromiseNilBackgroundFetchRegistrationOnRejected

type PromiseNilBackgroundFetchRegistrationOnRejected js.Func

PromiseNilBackgroundFetchRegistrationOnRejected is a javascript function type.

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

type PromiseNilBackgroundFetchRegistrationOnRejectedFunc

type PromiseNilBackgroundFetchRegistrationOnRejectedFunc func(reason js.Value)

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 (*PromiseSequenceBackgroundFetchRecord) Finally

func (*PromiseSequenceBackgroundFetchRecord) JSValue

JSValue returns the js.Value or js.Null() if _this is nil

type PromiseSequenceBackgroundFetchRecordOnFulfilled

type PromiseSequenceBackgroundFetchRecordOnFulfilled js.Func

PromiseSequenceBackgroundFetchRecordOnFulfilled is a javascript function type.

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

type PromiseSequenceBackgroundFetchRecordOnFulfilledFunc

type PromiseSequenceBackgroundFetchRecordOnFulfilledFunc func(value []*BackgroundFetchRecord)

callback: PromiseTemplateOnFulfilled

func PromiseSequenceBackgroundFetchRecordOnFulfilledFromJS

func PromiseSequenceBackgroundFetchRecordOnFulfilledFromJS(_value js.Value) PromiseSequenceBackgroundFetchRecordOnFulfilledFunc

type PromiseSequenceBackgroundFetchRecordOnRejected

type PromiseSequenceBackgroundFetchRecordOnRejected js.Func

PromiseSequenceBackgroundFetchRecordOnRejected is a javascript function type.

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

type PromiseSequenceBackgroundFetchRecordOnRejectedFunc

type PromiseSequenceBackgroundFetchRecordOnRejectedFunc func(reason js.Value)

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 (*PromiseServiceWorkerRegistration) Finally

func (*PromiseServiceWorkerRegistration) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*PromiseServiceWorkerRegistration) Then

type PromiseServiceWorkerRegistrationOnFulfilled

type PromiseServiceWorkerRegistrationOnFulfilled js.Func

PromiseServiceWorkerRegistrationOnFulfilled is a javascript function type.

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

type PromiseServiceWorkerRegistrationOnFulfilledFunc

type PromiseServiceWorkerRegistrationOnFulfilledFunc func(value *ServiceWorkerRegistration)

callback: PromiseTemplateOnFulfilled

func PromiseServiceWorkerRegistrationOnFulfilledFromJS

func PromiseServiceWorkerRegistrationOnFulfilledFromJS(_value js.Value) PromiseServiceWorkerRegistrationOnFulfilledFunc

type PromiseServiceWorkerRegistrationOnRejected

type PromiseServiceWorkerRegistrationOnRejected js.Func

PromiseServiceWorkerRegistrationOnRejected is a javascript function type.

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

type PromiseServiceWorkerRegistrationOnRejectedFunc

type PromiseServiceWorkerRegistrationOnRejectedFunc func(reason js.Value)

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

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

func SyncEventFromJS(value js.Value) *SyncEvent

SyncEventFromJS is casting a js.Value into SyncEvent.

func SyncEventFromWrapper

func SyncEventFromWrapper(input core.Wrapper) *SyncEvent

SyncEventFromJS is casting from something that holds a js.Value into SyncEvent.

func (*SyncEvent) LastChance

func (_this *SyncEvent) LastChance() bool

LastChance returning attribute 'lastChance' with type bool (idl: boolean).

func (*SyncEvent) Tag

func (_this *SyncEvent) Tag() string

Tag returning attribute 'tag' with type string (idl: DOMString).

type SyncEventInit

type SyncEventInit struct {
	Bubbles    bool
	Cancelable bool
	Composed   bool
	Tag        string
	LastChance bool
}

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

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

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)

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL