webapi: github.com/gowebapi/webapi/serviceworker Index | Files | Directories

package serviceworker

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

Package serviceworker is to enables applications to take advantage of persistent background processing, including hooks to enable bootstrapping of web applications while offline.

Index

Package Files

doc.go serviceworker.go

type BackgroundFetchEvent Uses

type BackgroundFetchEvent struct {
    domcore.ExtendableEvent
}

class: BackgroundFetchEvent

func BackgroundFetchEventFromJS Uses

func BackgroundFetchEventFromJS(value js.Wrapper) *BackgroundFetchEvent

BackgroundFetchEventFromJS is casting a js.Wrapper into BackgroundFetchEvent.

func NewBackgroundFetchEvent Uses

func NewBackgroundFetchEvent(_type string, init *BackgroundFetchEventInit) (_result *BackgroundFetchEvent)

func (*BackgroundFetchEvent) Registration Uses

func (_this *BackgroundFetchEvent) Registration() *BackgroundFetchRegistration

Registration returning attribute 'registration' with type BackgroundFetchRegistration (idl: BackgroundFetchRegistration).

type BackgroundFetchEventInit Uses

type BackgroundFetchEventInit struct {
    Bubbles      bool
    Cancelable   bool
    Composed     bool
    Registration *BackgroundFetchRegistration
}

dictionary: BackgroundFetchEventInit

func BackgroundFetchEventInitFromJS Uses

func BackgroundFetchEventInitFromJS(value js.Wrapper) *BackgroundFetchEventInit

BackgroundFetchEventInitFromJS is allocating a new BackgroundFetchEventInit object and copy all values from input javascript object

func (*BackgroundFetchEventInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type BackgroundFetchFailureReason Uses

type BackgroundFetchFailureReason int

enum: BackgroundFetchFailureReason

const (
    EmptyString0BackgroundFetchFailureReason BackgroundFetchFailureReason = iota
    AbortedBackgroundFetchFailureReason
    BadStatusBackgroundFetchFailureReason
    FetchErrorBackgroundFetchFailureReason
    QuotaExceededBackgroundFetchFailureReason
    DownloadTotalExceededBackgroundFetchFailureReason
)

func BackgroundFetchFailureReasonFromJS Uses

func BackgroundFetchFailureReasonFromJS(value js.Value) BackgroundFetchFailureReason

BackgroundFetchFailureReasonFromJS is converting a javascript value into a BackgroundFetchFailureReason enum value.

func (*BackgroundFetchFailureReason) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (BackgroundFetchFailureReason) Value Uses

func (this BackgroundFetchFailureReason) Value() string

Value is converting this into javascript defined string value

type BackgroundFetchManager Uses

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

class: BackgroundFetchManager

func BackgroundFetchManagerFromJS Uses

func BackgroundFetchManagerFromJS(value js.Wrapper) *BackgroundFetchManager

BackgroundFetchManagerFromJS is casting a js.Wrapper into BackgroundFetchManager.

func (*BackgroundFetchManager) Fetch Uses

func (_this *BackgroundFetchManager) Fetch(id string, requests *Union, options *BackgroundFetchOptions) (_result *PromiseBackgroundFetchRegistration)

func (*BackgroundFetchManager) Get Uses

func (_this *BackgroundFetchManager) Get(id string) (_result *PromiseNilBackgroundFetchRegistration)

func (*BackgroundFetchManager) GetIds Uses

func (_this *BackgroundFetchManager) GetIds() (_result *javascript.PromiseSequenceString)

func (*BackgroundFetchManager) JSValue Uses

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

type BackgroundFetchOptions Uses

type BackgroundFetchOptions struct {
    Icons         []*appmenifestres.ImageResource
    Title         string
    DownloadTotal int
}

dictionary: BackgroundFetchOptions

func BackgroundFetchOptionsFromJS Uses

func BackgroundFetchOptionsFromJS(value js.Wrapper) *BackgroundFetchOptions

BackgroundFetchOptionsFromJS is allocating a new BackgroundFetchOptions object and copy all values from input javascript object

func (*BackgroundFetchOptions) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type BackgroundFetchRecord Uses

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

class: BackgroundFetchRecord

func BackgroundFetchRecordFromJS Uses

func BackgroundFetchRecordFromJS(value js.Wrapper) *BackgroundFetchRecord

BackgroundFetchRecordFromJS is casting a js.Wrapper into BackgroundFetchRecord.

func (*BackgroundFetchRecord) JSValue Uses

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

func (*BackgroundFetchRecord) Request Uses

func (_this *BackgroundFetchRecord) Request() *fetch.Request

Request returning attribute 'request' with type fetch.Request (idl: Request).

func (*BackgroundFetchRecord) ResponseReady Uses

func (_this *BackgroundFetchRecord) ResponseReady() *javascript.Promise

ResponseReady returning attribute 'responseReady' with type javascript.Promise (idl: Promise).

type BackgroundFetchRegistration Uses

type BackgroundFetchRegistration struct {
    domcore.EventTarget
}

class: BackgroundFetchRegistration

func BackgroundFetchRegistrationFromJS Uses

func BackgroundFetchRegistrationFromJS(value js.Wrapper) *BackgroundFetchRegistration

BackgroundFetchRegistrationFromJS is casting a js.Wrapper into BackgroundFetchRegistration.

func (*BackgroundFetchRegistration) Abort Uses

func (_this *BackgroundFetchRegistration) Abort() (_result *javascript.PromiseBool)

func (*BackgroundFetchRegistration) AddEventProgress Uses

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 Uses

func (_this *BackgroundFetchRegistration) DownloadTotal() int

DownloadTotal returning attribute 'downloadTotal' with type int (idl: unsigned long long).

func (*BackgroundFetchRegistration) Downloaded Uses

func (_this *BackgroundFetchRegistration) Downloaded() int

Downloaded returning attribute 'downloaded' with type int (idl: unsigned long long).

func (*BackgroundFetchRegistration) FailureReason Uses

func (_this *BackgroundFetchRegistration) FailureReason() BackgroundFetchFailureReason

FailureReason returning attribute 'failureReason' with type BackgroundFetchFailureReason (idl: BackgroundFetchFailureReason).

func (*BackgroundFetchRegistration) Id Uses

func (_this *BackgroundFetchRegistration) Id() string

Id returning attribute 'id' with type string (idl: DOMString).

func (*BackgroundFetchRegistration) Match Uses

func (_this *BackgroundFetchRegistration) Match(request *Union, options *CacheQueryOptions) (_result *PromiseBackgroundFetchRecord)

func (*BackgroundFetchRegistration) MatchAll Uses

func (_this *BackgroundFetchRegistration) MatchAll(request *Union, options *CacheQueryOptions) (_result *PromiseSequenceBackgroundFetchRecord)

func (*BackgroundFetchRegistration) OnProgress Uses

func (_this *BackgroundFetchRegistration) OnProgress() domcore.EventHandlerFunc

OnProgress returning attribute 'onprogress' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*BackgroundFetchRegistration) RecordsAvailable Uses

func (_this *BackgroundFetchRegistration) RecordsAvailable() bool

RecordsAvailable returning attribute 'recordsAvailable' with type bool (idl: boolean).

func (*BackgroundFetchRegistration) Result Uses

func (_this *BackgroundFetchRegistration) Result() BackgroundFetchResult

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

func (*BackgroundFetchRegistration) SetOnProgress Uses

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 Uses

func (_this *BackgroundFetchRegistration) UploadTotal() int

UploadTotal returning attribute 'uploadTotal' with type int (idl: unsigned long long).

func (*BackgroundFetchRegistration) Uploaded Uses

func (_this *BackgroundFetchRegistration) Uploaded() int

Uploaded returning attribute 'uploaded' with type int (idl: unsigned long long).

type BackgroundFetchResult Uses

type BackgroundFetchResult int

enum: BackgroundFetchResult

const (
    EmptyString0BackgroundFetchResult BackgroundFetchResult = iota
    SuccessBackgroundFetchResult
    FailureBackgroundFetchResult
)

func BackgroundFetchResultFromJS Uses

func BackgroundFetchResultFromJS(value js.Value) BackgroundFetchResult

BackgroundFetchResultFromJS is converting a javascript value into a BackgroundFetchResult enum value.

func (*BackgroundFetchResult) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (BackgroundFetchResult) Value Uses

func (this BackgroundFetchResult) Value() string

Value is converting this into javascript defined string value

type BackgroundFetchUIOptions Uses

type BackgroundFetchUIOptions struct {
    Icons []*appmenifestres.ImageResource
    Title string
}

dictionary: BackgroundFetchUIOptions

func BackgroundFetchUIOptionsFromJS Uses

func BackgroundFetchUIOptionsFromJS(value js.Wrapper) *BackgroundFetchUIOptions

BackgroundFetchUIOptionsFromJS is allocating a new BackgroundFetchUIOptions object and copy all values from input javascript object

func (*BackgroundFetchUIOptions) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type BackgroundFetchUpdateUIEvent Uses

type BackgroundFetchUpdateUIEvent struct {
    BackgroundFetchEvent
}

class: BackgroundFetchUpdateUIEvent

func BackgroundFetchUpdateUIEventFromJS Uses

func BackgroundFetchUpdateUIEventFromJS(value js.Wrapper) *BackgroundFetchUpdateUIEvent

BackgroundFetchUpdateUIEventFromJS is casting a js.Wrapper into BackgroundFetchUpdateUIEvent.

func NewBackgroundFetchUpdateUIEvent Uses

func NewBackgroundFetchUpdateUIEvent(_type string, init *BackgroundFetchEventInit) (_result *BackgroundFetchUpdateUIEvent)

func (*BackgroundFetchUpdateUIEvent) UpdateUI Uses

func (_this *BackgroundFetchUpdateUIEvent) UpdateUI(options *BackgroundFetchUIOptions) (_result *javascript.PromiseVoid)

type Cache Uses

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

class: Cache

func CacheFromJS Uses

func CacheFromJS(value js.Wrapper) *Cache

CacheFromJS is casting a js.Wrapper into Cache.

func (*Cache) Add Uses

func (_this *Cache) Add(request *Union) (_result *javascript.PromiseVoid)

func (*Cache) AddAll Uses

func (_this *Cache) AddAll(requests []*Union) (_result *javascript.PromiseVoid)

func (*Cache) Delete Uses

func (_this *Cache) Delete(request *Union, options *CacheQueryOptions) (_result *javascript.PromiseBool)

func (*Cache) JSValue Uses

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

func (*Cache) Keys Uses

func (_this *Cache) Keys(request *Union, options *CacheQueryOptions) (_result *javascript.PromiseFrozenArray)

func (*Cache) Match Uses

func (_this *Cache) Match(request *Union, options *CacheQueryOptions) (_result *javascript.Promise)

func (*Cache) MatchAll Uses

func (_this *Cache) MatchAll(request *Union, options *CacheQueryOptions) (_result *javascript.PromiseFrozenArray)

func (*Cache) Put Uses

func (_this *Cache) Put(request *Union, response *fetch.Response) (_result *javascript.PromiseVoid)

type CacheQueryOptions Uses

type CacheQueryOptions struct {
    IgnoreSearch bool
    IgnoreMethod bool
    IgnoreVary   bool
}

dictionary: CacheQueryOptions

func CacheQueryOptionsFromJS Uses

func CacheQueryOptionsFromJS(value js.Wrapper) *CacheQueryOptions

CacheQueryOptionsFromJS is allocating a new CacheQueryOptions object and copy all values from input javascript object

func (*CacheQueryOptions) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type CacheStorage Uses

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

class: CacheStorage

func CacheStorageFromJS Uses

func CacheStorageFromJS(value js.Wrapper) *CacheStorage

CacheStorageFromJS is casting a js.Wrapper into CacheStorage.

func (*CacheStorage) Delete Uses

func (_this *CacheStorage) Delete(cacheName string) (_result *javascript.PromiseBool)

func (*CacheStorage) Has Uses

func (_this *CacheStorage) Has(cacheName string) (_result *javascript.PromiseBool)

func (*CacheStorage) JSValue Uses

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

func (*CacheStorage) Keys Uses

func (_this *CacheStorage) Keys() (_result *javascript.PromiseSequenceString)

func (*CacheStorage) Match Uses

func (_this *CacheStorage) Match(request *Union, options *MultiCacheQueryOptions) (_result *javascript.Promise)

func (*CacheStorage) Open Uses

func (_this *CacheStorage) Open(cacheName string) (_result *PromiseCache)

type ClientQueryOptions Uses

type ClientQueryOptions struct {
    IncludeUncontrolled bool
    Type                client.ClientType
}

dictionary: ClientQueryOptions

func ClientQueryOptionsFromJS Uses

func ClientQueryOptionsFromJS(value js.Wrapper) *ClientQueryOptions

ClientQueryOptionsFromJS is allocating a new ClientQueryOptions object and copy all values from input javascript object

func (*ClientQueryOptions) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type Clients Uses

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

class: Clients

func ClientsFromJS Uses

func ClientsFromJS(value js.Wrapper) *Clients

ClientsFromJS is casting a js.Wrapper into Clients.

func (*Clients) Claim Uses

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

func (*Clients) Get Uses

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

func (*Clients) JSValue Uses

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

func (*Clients) MatchAll Uses

func (_this *Clients) MatchAll(options *ClientQueryOptions) (_result *javascript.PromiseFrozenArray)

func (*Clients) OpenWindow Uses

func (_this *Clients) OpenWindow(url string) (_result *client.PromiseNilWindowClient)

type ExtendableMessageEvent Uses

type ExtendableMessageEvent struct {
    domcore.ExtendableEvent
}

class: ExtendableMessageEvent

func ExtendableMessageEventFromJS Uses

func ExtendableMessageEventFromJS(value js.Wrapper) *ExtendableMessageEvent

ExtendableMessageEventFromJS is casting a js.Wrapper into ExtendableMessageEvent.

func NewExtendableMessageEvent Uses

func NewExtendableMessageEvent(_type string, eventInitDict *ExtendableMessageEventInit) (_result *ExtendableMessageEvent)

func (*ExtendableMessageEvent) Data Uses

func (_this *ExtendableMessageEvent) Data() js.Value

Data returning attribute 'data' with type Any (idl: any).

func (*ExtendableMessageEvent) LastEventId Uses

func (_this *ExtendableMessageEvent) LastEventId() string

LastEventId returning attribute 'lastEventId' with type string (idl: DOMString).

func (*ExtendableMessageEvent) Origin Uses

func (_this *ExtendableMessageEvent) Origin() string

Origin returning attribute 'origin' with type string (idl: USVString).

func (*ExtendableMessageEvent) Ports Uses

func (_this *ExtendableMessageEvent) Ports() *javascript.FrozenArray

Ports returning attribute 'ports' with type javascript.FrozenArray (idl: FrozenArray).

func (*ExtendableMessageEvent) Source Uses

func (_this *ExtendableMessageEvent) Source() *Union

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

type ExtendableMessageEventInit Uses

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 Uses

func ExtendableMessageEventInitFromJS(value js.Wrapper) *ExtendableMessageEventInit

ExtendableMessageEventInitFromJS is allocating a new ExtendableMessageEventInit object and copy all values from input javascript object

func (*ExtendableMessageEventInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type FetchEvent Uses

type FetchEvent struct {
    domcore.ExtendableEvent
}

class: FetchEvent

func FetchEventFromJS Uses

func FetchEventFromJS(value js.Wrapper) *FetchEvent

FetchEventFromJS is casting a js.Wrapper into FetchEvent.

func NewFetchEvent Uses

func NewFetchEvent(_type string, eventInitDict *FetchEventInit) (_result *FetchEvent)

func (*FetchEvent) ClientId Uses

func (_this *FetchEvent) ClientId() string

ClientId returning attribute 'clientId' with type string (idl: DOMString).

func (*FetchEvent) Request Uses

func (_this *FetchEvent) Request() *fetch.Request

Request returning attribute 'request' with type fetch.Request (idl: Request).

func (*FetchEvent) RespondWith Uses

func (_this *FetchEvent) RespondWith(r *fetch.PromiseResponse)

type FetchEventInit Uses

type FetchEventInit struct {
    Bubbles    bool
    Cancelable bool
    Composed   bool
    Request    *fetch.Request
    ClientId   string
}

dictionary: FetchEventInit

func FetchEventInitFromJS Uses

func FetchEventInitFromJS(value js.Wrapper) *FetchEventInit

FetchEventInitFromJS is allocating a new FetchEventInit object and copy all values from input javascript object

func (*FetchEventInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type MultiCacheQueryOptions Uses

type MultiCacheQueryOptions struct {
    IgnoreSearch bool
    IgnoreMethod bool
    IgnoreVary   bool
    CacheName    string
}

dictionary: MultiCacheQueryOptions

func MultiCacheQueryOptionsFromJS Uses

func MultiCacheQueryOptionsFromJS(value js.Wrapper) *MultiCacheQueryOptions

MultiCacheQueryOptionsFromJS is allocating a new MultiCacheQueryOptions object and copy all values from input javascript object

func (*MultiCacheQueryOptions) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type PromiseBackgroundFetchRecord Uses

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

class: Promise

func PromiseBackgroundFetchRecordFromJS Uses

func PromiseBackgroundFetchRecordFromJS(value js.Wrapper) *PromiseBackgroundFetchRecord

PromiseBackgroundFetchRecordFromJS is casting a js.Wrapper into PromiseBackgroundFetchRecord.

func (*PromiseBackgroundFetchRecord) Catch Uses

func (_this *PromiseBackgroundFetchRecord) Catch(onRejected *PromiseBackgroundFetchRecordOnRejected) (_result *PromiseBackgroundFetchRecord)

func (*PromiseBackgroundFetchRecord) Finally Uses

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

func (*PromiseBackgroundFetchRecord) JSValue Uses

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

func (*PromiseBackgroundFetchRecord) Then Uses

func (_this *PromiseBackgroundFetchRecord) Then(onFulfilled *PromiseBackgroundFetchRecordOnFulfilled, onRejected *PromiseBackgroundFetchRecordOnRejected) (_result *PromiseBackgroundFetchRecord)

type PromiseBackgroundFetchRecordOnFulfilled Uses

type PromiseBackgroundFetchRecordOnFulfilled js.Func

PromiseBackgroundFetchRecordOnFulfilled is a javascript function type.

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

func PromiseBackgroundFetchRecordOnFulfilledToJS Uses

func PromiseBackgroundFetchRecordOnFulfilledToJS(callback PromiseBackgroundFetchRecordOnFulfilledFunc) *PromiseBackgroundFetchRecordOnFulfilled

type PromiseBackgroundFetchRecordOnFulfilledFunc Uses

type PromiseBackgroundFetchRecordOnFulfilledFunc func(value *BackgroundFetchRecord)

callback: PromiseTemplateOnFulfilled

func PromiseBackgroundFetchRecordOnFulfilledFromJS Uses

func PromiseBackgroundFetchRecordOnFulfilledFromJS(_value js.Value) PromiseBackgroundFetchRecordOnFulfilledFunc

type PromiseBackgroundFetchRecordOnRejected Uses

type PromiseBackgroundFetchRecordOnRejected js.Func

PromiseBackgroundFetchRecordOnRejected is a javascript function type.

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

func PromiseBackgroundFetchRecordOnRejectedToJS Uses

func PromiseBackgroundFetchRecordOnRejectedToJS(callback PromiseBackgroundFetchRecordOnRejectedFunc) *PromiseBackgroundFetchRecordOnRejected

type PromiseBackgroundFetchRecordOnRejectedFunc Uses

type PromiseBackgroundFetchRecordOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseBackgroundFetchRecordOnRejectedFromJS Uses

func PromiseBackgroundFetchRecordOnRejectedFromJS(_value js.Value) PromiseBackgroundFetchRecordOnRejectedFunc

type PromiseBackgroundFetchRegistration Uses

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

class: Promise

func PromiseBackgroundFetchRegistrationFromJS Uses

func PromiseBackgroundFetchRegistrationFromJS(value js.Wrapper) *PromiseBackgroundFetchRegistration

PromiseBackgroundFetchRegistrationFromJS is casting a js.Wrapper into PromiseBackgroundFetchRegistration.

func (*PromiseBackgroundFetchRegistration) Catch Uses

func (_this *PromiseBackgroundFetchRegistration) Catch(onRejected *PromiseBackgroundFetchRegistrationOnRejected) (_result *PromiseBackgroundFetchRegistration)

func (*PromiseBackgroundFetchRegistration) Finally Uses

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

func (*PromiseBackgroundFetchRegistration) JSValue Uses

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

func (*PromiseBackgroundFetchRegistration) Then Uses

func (_this *PromiseBackgroundFetchRegistration) Then(onFulfilled *PromiseBackgroundFetchRegistrationOnFulfilled, onRejected *PromiseBackgroundFetchRegistrationOnRejected) (_result *PromiseBackgroundFetchRegistration)

type PromiseBackgroundFetchRegistrationOnFulfilled Uses

type PromiseBackgroundFetchRegistrationOnFulfilled js.Func

PromiseBackgroundFetchRegistrationOnFulfilled is a javascript function type.

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

func PromiseBackgroundFetchRegistrationOnFulfilledToJS Uses

func PromiseBackgroundFetchRegistrationOnFulfilledToJS(callback PromiseBackgroundFetchRegistrationOnFulfilledFunc) *PromiseBackgroundFetchRegistrationOnFulfilled

type PromiseBackgroundFetchRegistrationOnFulfilledFunc Uses

type PromiseBackgroundFetchRegistrationOnFulfilledFunc func(value *BackgroundFetchRegistration)

callback: PromiseTemplateOnFulfilled

func PromiseBackgroundFetchRegistrationOnFulfilledFromJS Uses

func PromiseBackgroundFetchRegistrationOnFulfilledFromJS(_value js.Value) PromiseBackgroundFetchRegistrationOnFulfilledFunc

type PromiseBackgroundFetchRegistrationOnRejected Uses

type PromiseBackgroundFetchRegistrationOnRejected js.Func

PromiseBackgroundFetchRegistrationOnRejected is a javascript function type.

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

func PromiseBackgroundFetchRegistrationOnRejectedToJS Uses

func PromiseBackgroundFetchRegistrationOnRejectedToJS(callback PromiseBackgroundFetchRegistrationOnRejectedFunc) *PromiseBackgroundFetchRegistrationOnRejected

type PromiseBackgroundFetchRegistrationOnRejectedFunc Uses

type PromiseBackgroundFetchRegistrationOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseBackgroundFetchRegistrationOnRejectedFromJS Uses

func PromiseBackgroundFetchRegistrationOnRejectedFromJS(_value js.Value) PromiseBackgroundFetchRegistrationOnRejectedFunc

type PromiseCache Uses

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

class: Promise

func PromiseCacheFromJS Uses

func PromiseCacheFromJS(value js.Wrapper) *PromiseCache

PromiseCacheFromJS is casting a js.Wrapper into PromiseCache.

func (*PromiseCache) Catch Uses

func (_this *PromiseCache) Catch(onRejected *PromiseCacheOnRejected) (_result *PromiseCache)

func (*PromiseCache) Finally Uses

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

func (*PromiseCache) JSValue Uses

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

func (*PromiseCache) Then Uses

func (_this *PromiseCache) Then(onFulfilled *PromiseCacheOnFulfilled, onRejected *PromiseCacheOnRejected) (_result *PromiseCache)

type PromiseCacheOnFulfilled Uses

type PromiseCacheOnFulfilled js.Func

PromiseCacheOnFulfilled is a javascript function type.

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

func PromiseCacheOnFulfilledToJS Uses

func PromiseCacheOnFulfilledToJS(callback PromiseCacheOnFulfilledFunc) *PromiseCacheOnFulfilled

type PromiseCacheOnFulfilledFunc Uses

type PromiseCacheOnFulfilledFunc func(value *Cache)

callback: PromiseTemplateOnFulfilled

func PromiseCacheOnFulfilledFromJS Uses

func PromiseCacheOnFulfilledFromJS(_value js.Value) PromiseCacheOnFulfilledFunc

type PromiseCacheOnRejected Uses

type PromiseCacheOnRejected js.Func

PromiseCacheOnRejected is a javascript function type.

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

func PromiseCacheOnRejectedToJS Uses

func PromiseCacheOnRejectedToJS(callback PromiseCacheOnRejectedFunc) *PromiseCacheOnRejected

type PromiseCacheOnRejectedFunc Uses

type PromiseCacheOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseCacheOnRejectedFromJS Uses

func PromiseCacheOnRejectedFromJS(_value js.Value) PromiseCacheOnRejectedFunc

type PromiseNilBackgroundFetchRegistration Uses

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

class: Promise

func PromiseNilBackgroundFetchRegistrationFromJS Uses

func PromiseNilBackgroundFetchRegistrationFromJS(value js.Wrapper) *PromiseNilBackgroundFetchRegistration

PromiseNilBackgroundFetchRegistrationFromJS is casting a js.Wrapper into PromiseNilBackgroundFetchRegistration.

func (*PromiseNilBackgroundFetchRegistration) Catch Uses

func (_this *PromiseNilBackgroundFetchRegistration) Catch(onRejected *PromiseNilBackgroundFetchRegistrationOnRejected) (_result *PromiseNilBackgroundFetchRegistration)

func (*PromiseNilBackgroundFetchRegistration) Finally Uses

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

func (*PromiseNilBackgroundFetchRegistration) JSValue Uses

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

func (*PromiseNilBackgroundFetchRegistration) Then Uses

func (_this *PromiseNilBackgroundFetchRegistration) Then(onFulfilled *PromiseNilBackgroundFetchRegistrationOnFulfilled, onRejected *PromiseNilBackgroundFetchRegistrationOnRejected) (_result *PromiseNilBackgroundFetchRegistration)

type PromiseNilBackgroundFetchRegistrationOnFulfilled Uses

type PromiseNilBackgroundFetchRegistrationOnFulfilled js.Func

PromiseNilBackgroundFetchRegistrationOnFulfilled is a javascript function type.

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

func PromiseNilBackgroundFetchRegistrationOnFulfilledToJS Uses

func PromiseNilBackgroundFetchRegistrationOnFulfilledToJS(callback PromiseNilBackgroundFetchRegistrationOnFulfilledFunc) *PromiseNilBackgroundFetchRegistrationOnFulfilled

type PromiseNilBackgroundFetchRegistrationOnFulfilledFunc Uses

type PromiseNilBackgroundFetchRegistrationOnFulfilledFunc func(value *BackgroundFetchRegistration)

callback: PromiseTemplateOnFulfilled

func PromiseNilBackgroundFetchRegistrationOnFulfilledFromJS Uses

func PromiseNilBackgroundFetchRegistrationOnFulfilledFromJS(_value js.Value) PromiseNilBackgroundFetchRegistrationOnFulfilledFunc

type PromiseNilBackgroundFetchRegistrationOnRejected Uses

type PromiseNilBackgroundFetchRegistrationOnRejected js.Func

PromiseNilBackgroundFetchRegistrationOnRejected is a javascript function type.

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

func PromiseNilBackgroundFetchRegistrationOnRejectedToJS Uses

func PromiseNilBackgroundFetchRegistrationOnRejectedToJS(callback PromiseNilBackgroundFetchRegistrationOnRejectedFunc) *PromiseNilBackgroundFetchRegistrationOnRejected

type PromiseNilBackgroundFetchRegistrationOnRejectedFunc Uses

type PromiseNilBackgroundFetchRegistrationOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseNilBackgroundFetchRegistrationOnRejectedFromJS Uses

func PromiseNilBackgroundFetchRegistrationOnRejectedFromJS(_value js.Value) PromiseNilBackgroundFetchRegistrationOnRejectedFunc

type PromiseSequenceBackgroundFetchRecord Uses

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

class: Promise

func PromiseSequenceBackgroundFetchRecordFromJS Uses

func PromiseSequenceBackgroundFetchRecordFromJS(value js.Wrapper) *PromiseSequenceBackgroundFetchRecord

PromiseSequenceBackgroundFetchRecordFromJS is casting a js.Wrapper into PromiseSequenceBackgroundFetchRecord.

func (*PromiseSequenceBackgroundFetchRecord) Catch Uses

func (_this *PromiseSequenceBackgroundFetchRecord) Catch(onRejected *PromiseSequenceBackgroundFetchRecordOnRejected) (_result *PromiseSequenceBackgroundFetchRecord)

func (*PromiseSequenceBackgroundFetchRecord) Finally Uses

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

func (*PromiseSequenceBackgroundFetchRecord) JSValue Uses

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

func (*PromiseSequenceBackgroundFetchRecord) Then Uses

func (_this *PromiseSequenceBackgroundFetchRecord) Then(onFulfilled *PromiseSequenceBackgroundFetchRecordOnFulfilled, onRejected *PromiseSequenceBackgroundFetchRecordOnRejected) (_result *PromiseSequenceBackgroundFetchRecord)

type PromiseSequenceBackgroundFetchRecordOnFulfilled Uses

type PromiseSequenceBackgroundFetchRecordOnFulfilled js.Func

PromiseSequenceBackgroundFetchRecordOnFulfilled is a javascript function type.

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

func PromiseSequenceBackgroundFetchRecordOnFulfilledToJS Uses

func PromiseSequenceBackgroundFetchRecordOnFulfilledToJS(callback PromiseSequenceBackgroundFetchRecordOnFulfilledFunc) *PromiseSequenceBackgroundFetchRecordOnFulfilled

type PromiseSequenceBackgroundFetchRecordOnFulfilledFunc Uses

type PromiseSequenceBackgroundFetchRecordOnFulfilledFunc func(value []*BackgroundFetchRecord)

callback: PromiseTemplateOnFulfilled

func PromiseSequenceBackgroundFetchRecordOnFulfilledFromJS Uses

func PromiseSequenceBackgroundFetchRecordOnFulfilledFromJS(_value js.Value) PromiseSequenceBackgroundFetchRecordOnFulfilledFunc

type PromiseSequenceBackgroundFetchRecordOnRejected Uses

type PromiseSequenceBackgroundFetchRecordOnRejected js.Func

PromiseSequenceBackgroundFetchRecordOnRejected is a javascript function type.

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

func PromiseSequenceBackgroundFetchRecordOnRejectedToJS Uses

func PromiseSequenceBackgroundFetchRecordOnRejectedToJS(callback PromiseSequenceBackgroundFetchRecordOnRejectedFunc) *PromiseSequenceBackgroundFetchRecordOnRejected

type PromiseSequenceBackgroundFetchRecordOnRejectedFunc Uses

type PromiseSequenceBackgroundFetchRecordOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseSequenceBackgroundFetchRecordOnRejectedFromJS Uses

func PromiseSequenceBackgroundFetchRecordOnRejectedFromJS(_value js.Value) PromiseSequenceBackgroundFetchRecordOnRejectedFunc

type PromiseServiceWorkerRegistration Uses

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

class: Promise

func PromiseServiceWorkerRegistrationFromJS Uses

func PromiseServiceWorkerRegistrationFromJS(value js.Wrapper) *PromiseServiceWorkerRegistration

PromiseServiceWorkerRegistrationFromJS is casting a js.Wrapper into PromiseServiceWorkerRegistration.

func (*PromiseServiceWorkerRegistration) Catch Uses

func (_this *PromiseServiceWorkerRegistration) Catch(onRejected *PromiseServiceWorkerRegistrationOnRejected) (_result *PromiseServiceWorkerRegistration)

func (*PromiseServiceWorkerRegistration) Finally Uses

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

func (*PromiseServiceWorkerRegistration) JSValue Uses

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

func (*PromiseServiceWorkerRegistration) Then Uses

func (_this *PromiseServiceWorkerRegistration) Then(onFulfilled *PromiseServiceWorkerRegistrationOnFulfilled, onRejected *PromiseServiceWorkerRegistrationOnRejected) (_result *PromiseServiceWorkerRegistration)

type PromiseServiceWorkerRegistrationOnFulfilled Uses

type PromiseServiceWorkerRegistrationOnFulfilled js.Func

PromiseServiceWorkerRegistrationOnFulfilled is a javascript function type.

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

func PromiseServiceWorkerRegistrationOnFulfilledToJS Uses

func PromiseServiceWorkerRegistrationOnFulfilledToJS(callback PromiseServiceWorkerRegistrationOnFulfilledFunc) *PromiseServiceWorkerRegistrationOnFulfilled

type PromiseServiceWorkerRegistrationOnFulfilledFunc Uses

type PromiseServiceWorkerRegistrationOnFulfilledFunc func(value *ServiceWorkerRegistration)

callback: PromiseTemplateOnFulfilled

func PromiseServiceWorkerRegistrationOnFulfilledFromJS Uses

func PromiseServiceWorkerRegistrationOnFulfilledFromJS(_value js.Value) PromiseServiceWorkerRegistrationOnFulfilledFunc

type PromiseServiceWorkerRegistrationOnRejected Uses

type PromiseServiceWorkerRegistrationOnRejected js.Func

PromiseServiceWorkerRegistrationOnRejected is a javascript function type.

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

func PromiseServiceWorkerRegistrationOnRejectedToJS Uses

func PromiseServiceWorkerRegistrationOnRejectedToJS(callback PromiseServiceWorkerRegistrationOnRejectedFunc) *PromiseServiceWorkerRegistrationOnRejected

type PromiseServiceWorkerRegistrationOnRejectedFunc Uses

type PromiseServiceWorkerRegistrationOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseServiceWorkerRegistrationOnRejectedFromJS Uses

func PromiseServiceWorkerRegistrationOnRejectedFromJS(_value js.Value) PromiseServiceWorkerRegistrationOnRejectedFunc

type RegistrationOptions Uses

type RegistrationOptions struct {
    Scope          string
    Type           htmlcommon.WorkerType
    UpdateViaCache ServiceWorkerUpdateViaCache
}

dictionary: RegistrationOptions

func RegistrationOptionsFromJS Uses

func RegistrationOptionsFromJS(value js.Wrapper) *RegistrationOptions

RegistrationOptionsFromJS is allocating a new RegistrationOptions object and copy all values from input javascript object

func (*RegistrationOptions) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type ServiceWorker Uses

type ServiceWorker struct {
    domcore.EventTarget
}

class: ServiceWorker

func ServiceWorkerFromJS Uses

func ServiceWorkerFromJS(value js.Wrapper) *ServiceWorker

ServiceWorkerFromJS is casting a js.Wrapper into ServiceWorker.

func (*ServiceWorker) AddEventError Uses

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 Uses

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 Uses

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

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

func (*ServiceWorker) OnStateChange Uses

func (_this *ServiceWorker) OnStateChange() domcore.EventHandlerFunc

OnStateChange returning attribute 'onstatechange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*ServiceWorker) PostMessage Uses

func (_this *ServiceWorker) PostMessage(message interface{}, transfer []*javascript.Object)

func (*ServiceWorker) ScriptURL Uses

func (_this *ServiceWorker) ScriptURL() string

ScriptURL returning attribute 'scriptURL' with type string (idl: USVString).

func (*ServiceWorker) SetOnError Uses

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 Uses

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 Uses

func (_this *ServiceWorker) State() ServiceWorkerState

State returning attribute 'state' with type ServiceWorkerState (idl: ServiceWorkerState).

type ServiceWorkerContainer Uses

type ServiceWorkerContainer struct {
    domcore.EventTarget
}

class: ServiceWorkerContainer

func ServiceWorkerContainerFromJS Uses

func ServiceWorkerContainerFromJS(value js.Wrapper) *ServiceWorkerContainer

ServiceWorkerContainerFromJS is casting a js.Wrapper into ServiceWorkerContainer.

func (*ServiceWorkerContainer) AddEventControllerChange Uses

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 Uses

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 Uses

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 Uses

func (_this *ServiceWorkerContainer) Controller() *ServiceWorker

Controller returning attribute 'controller' with type ServiceWorker (idl: ServiceWorker).

func (*ServiceWorkerContainer) GetRegistration Uses

func (_this *ServiceWorkerContainer) GetRegistration(clientURL *string) (_result *javascript.Promise)

func (*ServiceWorkerContainer) GetRegistrations Uses

func (_this *ServiceWorkerContainer) GetRegistrations() (_result *javascript.PromiseFrozenArray)

func (*ServiceWorkerContainer) OnControllerChange Uses

func (_this *ServiceWorkerContainer) OnControllerChange() domcore.EventHandlerFunc

OnControllerChange returning attribute 'oncontrollerchange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*ServiceWorkerContainer) OnMessage Uses

func (_this *ServiceWorkerContainer) OnMessage() domcore.EventHandlerFunc

OnMessage returning attribute 'onmessage' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*ServiceWorkerContainer) OnMessageError Uses

func (_this *ServiceWorkerContainer) OnMessageError() domcore.EventHandlerFunc

OnMessageError returning attribute 'onmessageerror' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*ServiceWorkerContainer) Ready Uses

func (_this *ServiceWorkerContainer) Ready() *javascript.Promise

Ready returning attribute 'ready' with type javascript.Promise (idl: Promise).

func (*ServiceWorkerContainer) Register Uses

func (_this *ServiceWorkerContainer) Register(scriptURL string, options *RegistrationOptions) (_result *PromiseServiceWorkerRegistration)

func (*ServiceWorkerContainer) SetOnControllerChange Uses

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 Uses

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 Uses

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 Uses

func (_this *ServiceWorkerContainer) StartMessages()

type ServiceWorkerRegistration Uses

type ServiceWorkerRegistration struct {
    domcore.EventTarget
}

class: ServiceWorkerRegistration

func ServiceWorkerRegistrationFromJS Uses

func ServiceWorkerRegistrationFromJS(value js.Wrapper) *ServiceWorkerRegistration

ServiceWorkerRegistrationFromJS is casting a js.Wrapper into ServiceWorkerRegistration.

func (*ServiceWorkerRegistration) Active Uses

func (_this *ServiceWorkerRegistration) Active() *ServiceWorker

Active returning attribute 'active' with type ServiceWorker (idl: ServiceWorker).

func (*ServiceWorkerRegistration) AddEventUpdateFound Uses

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 Uses

func (_this *ServiceWorkerRegistration) BackgroundFetch() *BackgroundFetchManager

BackgroundFetch returning attribute 'backgroundFetch' with type BackgroundFetchManager (idl: BackgroundFetchManager).

func (*ServiceWorkerRegistration) Installing Uses

func (_this *ServiceWorkerRegistration) Installing() *ServiceWorker

Installing returning attribute 'installing' with type ServiceWorker (idl: ServiceWorker).

func (*ServiceWorkerRegistration) OnUpdateFound Uses

func (_this *ServiceWorkerRegistration) OnUpdateFound() domcore.EventHandlerFunc

OnUpdateFound returning attribute 'onupdatefound' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*ServiceWorkerRegistration) PaymentManager Uses

func (_this *ServiceWorkerRegistration) PaymentManager() *payment.PaymentManager

PaymentManager returning attribute 'paymentManager' with type payment.PaymentManager (idl: PaymentManager).

func (*ServiceWorkerRegistration) PushManager Uses

func (_this *ServiceWorkerRegistration) PushManager() *push.Manager

PushManager returning attribute 'pushManager' with type push.Manager (idl: PushManager).

func (*ServiceWorkerRegistration) Scope Uses

func (_this *ServiceWorkerRegistration) Scope() string

Scope returning attribute 'scope' with type string (idl: USVString).

func (*ServiceWorkerRegistration) SetOnUpdateFound Uses

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 Uses

func (_this *ServiceWorkerRegistration) Sync() *SyncManager

Sync returning attribute 'sync' with type SyncManager (idl: SyncManager).

func (*ServiceWorkerRegistration) Unregister Uses

func (_this *ServiceWorkerRegistration) Unregister() (_result *javascript.PromiseBool)

func (*ServiceWorkerRegistration) Update Uses

func (_this *ServiceWorkerRegistration) Update() (_result *javascript.PromiseVoid)

func (*ServiceWorkerRegistration) UpdateViaCache Uses

func (_this *ServiceWorkerRegistration) UpdateViaCache() ServiceWorkerUpdateViaCache

UpdateViaCache returning attribute 'updateViaCache' with type ServiceWorkerUpdateViaCache (idl: ServiceWorkerUpdateViaCache).

func (*ServiceWorkerRegistration) Waiting Uses

func (_this *ServiceWorkerRegistration) Waiting() *ServiceWorker

Waiting returning attribute 'waiting' with type ServiceWorker (idl: ServiceWorker).

type ServiceWorkerState Uses

type ServiceWorkerState int

enum: ServiceWorkerState

const (
    InstallingServiceWorkerState ServiceWorkerState = iota
    InstalledServiceWorkerState
    ActivatingServiceWorkerState
    ActivatedServiceWorkerState
    RedundantServiceWorkerState
)

func ServiceWorkerStateFromJS Uses

func ServiceWorkerStateFromJS(value js.Value) ServiceWorkerState

ServiceWorkerStateFromJS is converting a javascript value into a ServiceWorkerState enum value.

func (*ServiceWorkerState) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (ServiceWorkerState) Value Uses

func (this ServiceWorkerState) Value() string

Value is converting this into javascript defined string value

type ServiceWorkerUpdateViaCache Uses

type ServiceWorkerUpdateViaCache int

enum: ServiceWorkerUpdateViaCache

const (
    ImportsServiceWorkerUpdateViaCache ServiceWorkerUpdateViaCache = iota
    AllServiceWorkerUpdateViaCache
    NoneServiceWorkerUpdateViaCache
)

func ServiceWorkerUpdateViaCacheFromJS Uses

func ServiceWorkerUpdateViaCacheFromJS(value js.Value) ServiceWorkerUpdateViaCache

ServiceWorkerUpdateViaCacheFromJS is converting a javascript value into a ServiceWorkerUpdateViaCache enum value.

func (*ServiceWorkerUpdateViaCache) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (ServiceWorkerUpdateViaCache) Value Uses

func (this ServiceWorkerUpdateViaCache) Value() string

Value is converting this into javascript defined string value

type SyncEvent Uses

type SyncEvent struct {
    domcore.ExtendableEvent
}

class: SyncEvent

func NewSyncEvent Uses

func NewSyncEvent(_type string, init *SyncEventInit) (_result *SyncEvent)

func SyncEventFromJS Uses

func SyncEventFromJS(value js.Wrapper) *SyncEvent

SyncEventFromJS is casting a js.Wrapper into SyncEvent.

func (*SyncEvent) LastChance Uses

func (_this *SyncEvent) LastChance() bool

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

func (*SyncEvent) Tag Uses

func (_this *SyncEvent) Tag() string

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

type SyncEventInit Uses

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

dictionary: SyncEventInit

func SyncEventInitFromJS Uses

func SyncEventInitFromJS(value js.Wrapper) *SyncEventInit

SyncEventInitFromJS is allocating a new SyncEventInit object and copy all values from input javascript object

func (*SyncEventInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type SyncManager Uses

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

class: SyncManager

func SyncManagerFromJS Uses

func SyncManagerFromJS(value js.Wrapper) *SyncManager

SyncManagerFromJS is casting a js.Wrapper into SyncManager.

func (*SyncManager) GetTags Uses

func (_this *SyncManager) GetTags() (_result *javascript.PromiseSequenceString)

func (*SyncManager) JSValue Uses

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

func (*SyncManager) Register Uses

func (_this *SyncManager) Register(tag string) (_result *javascript.PromiseVoid)

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

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

Directories

PathSynopsis
clientPackage client is to enables applications to take advantage of persistent background processing, including hooks to enable bootstrapping of web applications while offline.

Package serviceworker imports 10 packages (graph) and is imported by 4 packages. Updated 2019-09-17. Refresh now. Tools for package owners.