webapi: github.com/gowebapi/webapi/html/worker Index | Files

package worker

import "github.com/gowebapi/webapi/html/worker"

Package worker makes it possible to run a script operation in a background thread separate from the main execution thread of a web application.

Source: HTML Standard (https://html.spec.whatwg.org/)

Index

Package Files

doc.go worker.go

type DedicatedWorkerGlobalScope Uses

type DedicatedWorkerGlobalScope struct {
    WorkerGlobalScope
}

class: DedicatedWorkerGlobalScope

func DedicatedWorkerGlobalScopeFromJS Uses

func DedicatedWorkerGlobalScopeFromJS(value js.Wrapper) *DedicatedWorkerGlobalScope

DedicatedWorkerGlobalScopeFromJS is casting a js.Wrapper into DedicatedWorkerGlobalScope.

func (*DedicatedWorkerGlobalScope) AddEventMessage Uses

func (_this *DedicatedWorkerGlobalScope) AddEventMessage(listener func(event *channel.MessageEvent, currentTarget *DedicatedWorkerGlobalScope)) js.Func

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

func (*DedicatedWorkerGlobalScope) AddEventMessageError Uses

func (_this *DedicatedWorkerGlobalScope) AddEventMessageError(listener func(event *channel.MessageEvent, currentTarget *DedicatedWorkerGlobalScope)) js.Func

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

func (*DedicatedWorkerGlobalScope) CancelAnimationFrame Uses

func (_this *DedicatedWorkerGlobalScope) CancelAnimationFrame(handle uint)

func (*DedicatedWorkerGlobalScope) Close Uses

func (_this *DedicatedWorkerGlobalScope) Close()

func (*DedicatedWorkerGlobalScope) Name Uses

func (_this *DedicatedWorkerGlobalScope) Name() string

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

func (*DedicatedWorkerGlobalScope) OnMessage Uses

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

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

func (*DedicatedWorkerGlobalScope) OnMessageError Uses

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

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

func (*DedicatedWorkerGlobalScope) PostMessage Uses

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

func (*DedicatedWorkerGlobalScope) PostMessage2 Uses

func (_this *DedicatedWorkerGlobalScope) PostMessage2(message interface{}, options *channel.PostMessageOptions)

func (*DedicatedWorkerGlobalScope) RequestAnimationFrame Uses

func (_this *DedicatedWorkerGlobalScope) RequestAnimationFrame(callback *htmlcommon.FrameRequestCallback) (_result uint)

func (*DedicatedWorkerGlobalScope) SetOnMessage Uses

func (_this *DedicatedWorkerGlobalScope) SetOnMessage(listener func(event *channel.MessageEvent, currentTarget *DedicatedWorkerGlobalScope)) js.Func

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

func (*DedicatedWorkerGlobalScope) SetOnMessageError Uses

func (_this *DedicatedWorkerGlobalScope) SetOnMessageError(listener func(event *channel.MessageEvent, currentTarget *DedicatedWorkerGlobalScope)) js.Func

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

type ServiceWorkerGlobalScope Uses

type ServiceWorkerGlobalScope struct {
    WorkerGlobalScope
}

class: ServiceWorkerGlobalScope

func ServiceWorkerGlobalScopeFromJS Uses

func ServiceWorkerGlobalScopeFromJS(value js.Wrapper) *ServiceWorkerGlobalScope

ServiceWorkerGlobalScopeFromJS is casting a js.Wrapper into ServiceWorkerGlobalScope.

func (*ServiceWorkerGlobalScope) AddEventActivate Uses

func (_this *ServiceWorkerGlobalScope) AddEventActivate(listener func(event *domcore.ExtendableEvent, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) AddEventBackgroundFetchAbort Uses

func (_this *ServiceWorkerGlobalScope) AddEventBackgroundFetchAbort(listener func(event *serviceworker.BackgroundFetchEvent, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) AddEventBackgroundFetchClick Uses

func (_this *ServiceWorkerGlobalScope) AddEventBackgroundFetchClick(listener func(event *serviceworker.BackgroundFetchEvent, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) AddEventBackgroundFetchFail Uses

func (_this *ServiceWorkerGlobalScope) AddEventBackgroundFetchFail(listener func(event *serviceworker.BackgroundFetchUpdateUIEvent, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) AddEventBackgroundFetchSuccess Uses

func (_this *ServiceWorkerGlobalScope) AddEventBackgroundFetchSuccess(listener func(event *serviceworker.BackgroundFetchUpdateUIEvent, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) AddEventCanMakePayment Uses

func (_this *ServiceWorkerGlobalScope) AddEventCanMakePayment(listener func(event *payment.CanMakePaymentEvent, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) AddEventCookieChange Uses

func (_this *ServiceWorkerGlobalScope) AddEventCookieChange(listener func(event *cookie.CookieChangeEvent, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) AddEventFetch Uses

func (_this *ServiceWorkerGlobalScope) AddEventFetch(listener func(event *serviceworker.FetchEvent, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) AddEventInstall Uses

func (_this *ServiceWorkerGlobalScope) AddEventInstall(listener func(event *domcore.ExtendableEvent, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) AddEventMessage Uses

func (_this *ServiceWorkerGlobalScope) AddEventMessage(listener func(event *serviceworker.ExtendableMessageEvent, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) AddEventMessageError Uses

func (_this *ServiceWorkerGlobalScope) AddEventMessageError(listener func(event *channel.MessageEvent, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) AddEventPaymentRequest Uses

func (_this *ServiceWorkerGlobalScope) AddEventPaymentRequest(listener func(event *payment.PaymentRequestEvent, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) AddEventPush Uses

func (_this *ServiceWorkerGlobalScope) AddEventPush(listener func(event *push.Event, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) AddEventPushSubscriptionChange Uses

func (_this *ServiceWorkerGlobalScope) AddEventPushSubscriptionChange(listener func(event *push.SubscriptionChangeEvent, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) AddEventSync Uses

func (_this *ServiceWorkerGlobalScope) AddEventSync(listener func(event *serviceworker.SyncEvent, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) Clients Uses

func (_this *ServiceWorkerGlobalScope) Clients() *serviceworker.Clients

Clients returning attribute 'clients' with type serviceworker.Clients (idl: Clients).

func (*ServiceWorkerGlobalScope) CookieStore Uses

func (_this *ServiceWorkerGlobalScope) CookieStore() *cookie.CookieStore

CookieStore returning attribute 'cookieStore' with type cookie.CookieStore (idl: CookieStore).

func (*ServiceWorkerGlobalScope) OnActivate Uses

func (_this *ServiceWorkerGlobalScope) OnActivate() domcore.EventHandlerFunc

OnActivate returning attribute 'onactivate' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*ServiceWorkerGlobalScope) OnBackgroundFetchAbort Uses

func (_this *ServiceWorkerGlobalScope) OnBackgroundFetchAbort() domcore.EventHandlerFunc

OnBackgroundFetchAbort returning attribute 'onbackgroundfetchabort' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*ServiceWorkerGlobalScope) OnBackgroundFetchClick Uses

func (_this *ServiceWorkerGlobalScope) OnBackgroundFetchClick() domcore.EventHandlerFunc

OnBackgroundFetchClick returning attribute 'onbackgroundfetchclick' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*ServiceWorkerGlobalScope) OnBackgroundFetchFail Uses

func (_this *ServiceWorkerGlobalScope) OnBackgroundFetchFail() domcore.EventHandlerFunc

OnBackgroundFetchFail returning attribute 'onbackgroundfetchfail' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*ServiceWorkerGlobalScope) OnBackgroundFetchSuccess Uses

func (_this *ServiceWorkerGlobalScope) OnBackgroundFetchSuccess() domcore.EventHandlerFunc

OnBackgroundFetchSuccess returning attribute 'onbackgroundfetchsuccess' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*ServiceWorkerGlobalScope) OnCanMakePayment Uses

func (_this *ServiceWorkerGlobalScope) OnCanMakePayment() domcore.EventHandlerFunc

OnCanMakePayment returning attribute 'oncanmakepayment' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*ServiceWorkerGlobalScope) OnCookieChange Uses

func (_this *ServiceWorkerGlobalScope) OnCookieChange() domcore.EventHandlerFunc

OnCookieChange returning attribute 'oncookiechange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*ServiceWorkerGlobalScope) OnFetch Uses

func (_this *ServiceWorkerGlobalScope) OnFetch() domcore.EventHandlerFunc

OnFetch returning attribute 'onfetch' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*ServiceWorkerGlobalScope) OnInstall Uses

func (_this *ServiceWorkerGlobalScope) OnInstall() domcore.EventHandlerFunc

OnInstall returning attribute 'oninstall' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*ServiceWorkerGlobalScope) OnMessage Uses

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

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

func (*ServiceWorkerGlobalScope) OnMessageError Uses

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

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

func (*ServiceWorkerGlobalScope) OnPaymentRequest Uses

func (_this *ServiceWorkerGlobalScope) OnPaymentRequest() domcore.EventHandlerFunc

OnPaymentRequest returning attribute 'onpaymentrequest' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*ServiceWorkerGlobalScope) OnPush Uses

func (_this *ServiceWorkerGlobalScope) OnPush() domcore.EventHandlerFunc

OnPush returning attribute 'onpush' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*ServiceWorkerGlobalScope) OnPushSubscriptionChange Uses

func (_this *ServiceWorkerGlobalScope) OnPushSubscriptionChange() domcore.EventHandlerFunc

OnPushSubscriptionChange returning attribute 'onpushsubscriptionchange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*ServiceWorkerGlobalScope) OnSync Uses

func (_this *ServiceWorkerGlobalScope) OnSync() domcore.EventHandlerFunc

OnSync returning attribute 'onsync' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*ServiceWorkerGlobalScope) Registration Uses

func (_this *ServiceWorkerGlobalScope) Registration() *serviceworker.ServiceWorkerRegistration

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

func (*ServiceWorkerGlobalScope) SetOnActivate Uses

func (_this *ServiceWorkerGlobalScope) SetOnActivate(listener func(event *domcore.ExtendableEvent, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) SetOnBackgroundFetchAbort Uses

func (_this *ServiceWorkerGlobalScope) SetOnBackgroundFetchAbort(listener func(event *serviceworker.BackgroundFetchEvent, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) SetOnBackgroundFetchClick Uses

func (_this *ServiceWorkerGlobalScope) SetOnBackgroundFetchClick(listener func(event *serviceworker.BackgroundFetchEvent, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) SetOnBackgroundFetchFail Uses

func (_this *ServiceWorkerGlobalScope) SetOnBackgroundFetchFail(listener func(event *serviceworker.BackgroundFetchUpdateUIEvent, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) SetOnBackgroundFetchSuccess Uses

func (_this *ServiceWorkerGlobalScope) SetOnBackgroundFetchSuccess(listener func(event *serviceworker.BackgroundFetchUpdateUIEvent, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) SetOnCanMakePayment Uses

func (_this *ServiceWorkerGlobalScope) SetOnCanMakePayment(listener func(event *payment.CanMakePaymentEvent, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) SetOnCookieChange Uses

func (_this *ServiceWorkerGlobalScope) SetOnCookieChange(listener func(event *cookie.CookieChangeEvent, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) SetOnFetch Uses

func (_this *ServiceWorkerGlobalScope) SetOnFetch(listener func(event *serviceworker.FetchEvent, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) SetOnInstall Uses

func (_this *ServiceWorkerGlobalScope) SetOnInstall(listener func(event *domcore.ExtendableEvent, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) SetOnMessage Uses

func (_this *ServiceWorkerGlobalScope) SetOnMessage(listener func(event *serviceworker.ExtendableMessageEvent, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) SetOnMessageError Uses

func (_this *ServiceWorkerGlobalScope) SetOnMessageError(listener func(event *channel.MessageEvent, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) SetOnPaymentRequest Uses

func (_this *ServiceWorkerGlobalScope) SetOnPaymentRequest(listener func(event *payment.PaymentRequestEvent, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) SetOnPush Uses

func (_this *ServiceWorkerGlobalScope) SetOnPush(listener func(event *push.Event, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) SetOnPushSubscriptionChange Uses

func (_this *ServiceWorkerGlobalScope) SetOnPushSubscriptionChange(listener func(event *push.SubscriptionChangeEvent, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) SetOnSync Uses

func (_this *ServiceWorkerGlobalScope) SetOnSync(listener func(event *serviceworker.SyncEvent, currentTarget *ServiceWorkerGlobalScope)) js.Func

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

func (*ServiceWorkerGlobalScope) SkipWaiting Uses

func (_this *ServiceWorkerGlobalScope) SkipWaiting() (_result *javascript.PromiseVoid)

type SharedWorker Uses

type SharedWorker struct {
    domcore.EventTarget
}

class: SharedWorker

func NewSharedWorker Uses

func NewSharedWorker(scriptURL string, options *Union) (_result *SharedWorker)

func SharedWorkerFromJS Uses

func SharedWorkerFromJS(value js.Wrapper) *SharedWorker

SharedWorkerFromJS is casting a js.Wrapper into SharedWorker.

func (*SharedWorker) AddEventError Uses

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

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

func (*SharedWorker) OnError Uses

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

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

func (*SharedWorker) Port Uses

func (_this *SharedWorker) Port() *channel.MessagePort

Port returning attribute 'port' with type channel.MessagePort (idl: MessagePort).

func (*SharedWorker) SetOnError Uses

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

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

type SharedWorkerGlobalScope Uses

type SharedWorkerGlobalScope struct {
    WorkerGlobalScope
}

class: SharedWorkerGlobalScope

func SharedWorkerGlobalScopeFromJS Uses

func SharedWorkerGlobalScopeFromJS(value js.Wrapper) *SharedWorkerGlobalScope

SharedWorkerGlobalScopeFromJS is casting a js.Wrapper into SharedWorkerGlobalScope.

func (*SharedWorkerGlobalScope) AddEventConnect Uses

func (_this *SharedWorkerGlobalScope) AddEventConnect(listener func(event *channel.MessageEvent, currentTarget *SharedWorkerGlobalScope)) js.Func

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

func (*SharedWorkerGlobalScope) Close Uses

func (_this *SharedWorkerGlobalScope) Close()

func (*SharedWorkerGlobalScope) Name Uses

func (_this *SharedWorkerGlobalScope) Name() string

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

func (*SharedWorkerGlobalScope) OnConnect Uses

func (_this *SharedWorkerGlobalScope) OnConnect() domcore.EventHandlerFunc

OnConnect returning attribute 'onconnect' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*SharedWorkerGlobalScope) SetOnConnect Uses

func (_this *SharedWorkerGlobalScope) SetOnConnect(listener func(event *channel.MessageEvent, currentTarget *SharedWorkerGlobalScope)) js.Func

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

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

type Worker Uses

type Worker struct {
    domcore.EventTarget
}

class: Worker

func NewWorker Uses

func NewWorker(scriptURL string, options *WorkerOptions) (_result *Worker)

func WorkerFromJS Uses

func WorkerFromJS(value js.Wrapper) *Worker

WorkerFromJS is casting a js.Wrapper into Worker.

func (*Worker) AddEventError Uses

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

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

func (*Worker) AddEventMessage Uses

func (_this *Worker) AddEventMessage(listener func(event *channel.MessageEvent, currentTarget *Worker)) js.Func

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

func (*Worker) AddEventMessageError Uses

func (_this *Worker) AddEventMessageError(listener func(event *channel.MessageEvent, currentTarget *Worker)) js.Func

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

func (*Worker) OnError Uses

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

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

func (*Worker) OnMessage Uses

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

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

func (*Worker) OnMessageError Uses

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

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

func (*Worker) PostMessage Uses

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

func (*Worker) PostMessage2 Uses

func (_this *Worker) PostMessage2(message interface{}, options *channel.PostMessageOptions)

func (*Worker) SetOnError Uses

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

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

func (*Worker) SetOnMessage Uses

func (_this *Worker) SetOnMessage(listener func(event *channel.MessageEvent, currentTarget *Worker)) js.Func

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

func (*Worker) SetOnMessageError Uses

func (_this *Worker) SetOnMessageError(listener func(event *channel.MessageEvent, currentTarget *Worker)) js.Func

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

func (*Worker) Terminate Uses

func (_this *Worker) Terminate()

type WorkerGlobalScope Uses

type WorkerGlobalScope struct {
    domcore.EventTarget
}

class: WorkerGlobalScope

func WorkerGlobalScopeFromJS Uses

func WorkerGlobalScopeFromJS(value js.Wrapper) *WorkerGlobalScope

WorkerGlobalScopeFromJS is casting a js.Wrapper into WorkerGlobalScope.

func (*WorkerGlobalScope) AddEventError Uses

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

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

func (*WorkerGlobalScope) AddEventLanguageChange Uses

func (_this *WorkerGlobalScope) AddEventLanguageChange(listener func(event *domcore.Event, currentTarget *WorkerGlobalScope)) js.Func

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

func (*WorkerGlobalScope) AddEventOffline Uses

func (_this *WorkerGlobalScope) AddEventOffline(listener func(event *domcore.Event, currentTarget *WorkerGlobalScope)) js.Func

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

func (*WorkerGlobalScope) AddEventOnline Uses

func (_this *WorkerGlobalScope) AddEventOnline(listener func(event *domcore.Event, currentTarget *WorkerGlobalScope)) js.Func

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

func (*WorkerGlobalScope) AddEventRejectionHandled Uses

func (_this *WorkerGlobalScope) AddEventRejectionHandled(listener func(event *htmlevent.PromiseRejectionEvent, currentTarget *WorkerGlobalScope)) js.Func

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

func (*WorkerGlobalScope) AddEventUnhandledRejection Uses

func (_this *WorkerGlobalScope) AddEventUnhandledRejection(listener func(event *htmlevent.PromiseRejectionEvent, currentTarget *WorkerGlobalScope)) js.Func

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

func (*WorkerGlobalScope) AddressSpace Uses

func (_this *WorkerGlobalScope) AddressSpace() corsrfc1918.AddressSpace

AddressSpace returning attribute 'addressSpace' with type corsrfc1918.AddressSpace (idl: AddressSpace).

func (*WorkerGlobalScope) Atob Uses

func (_this *WorkerGlobalScope) Atob(data string) (_result *patch.ByteString)

func (*WorkerGlobalScope) Btoa Uses

func (_this *WorkerGlobalScope) Btoa(data string) (_result string)

func (*WorkerGlobalScope) Caches Uses

func (_this *WorkerGlobalScope) Caches() *serviceworker.CacheStorage

Caches returning attribute 'caches' with type serviceworker.CacheStorage (idl: CacheStorage).

func (*WorkerGlobalScope) ClearInterval Uses

func (_this *WorkerGlobalScope) ClearInterval(handle *int)

func (*WorkerGlobalScope) ClearTimeout Uses

func (_this *WorkerGlobalScope) ClearTimeout(handle *int)

func (*WorkerGlobalScope) CreateImageBitmap Uses

func (_this *WorkerGlobalScope) CreateImageBitmap(image *Union, options *canvas.ImageBitmapOptions) (_result *canvas.PromiseImageBitmap)

func (*WorkerGlobalScope) CreateImageBitmap2 Uses

func (_this *WorkerGlobalScope) CreateImageBitmap2(image *Union, sx int, sy int, sw int, sh int, options *canvas.ImageBitmapOptions) (_result *canvas.PromiseImageBitmap)

func (*WorkerGlobalScope) Crypto Uses

func (_this *WorkerGlobalScope) Crypto() *crypto.Crypto

Crypto returning attribute 'crypto' with type crypto.Crypto (idl: Crypto).

func (*WorkerGlobalScope) Fetch Uses

func (_this *WorkerGlobalScope) Fetch(input *Union, init *fetch.RequestInit) (_result *fetch.PromiseResponse)

func (*WorkerGlobalScope) ImportScripts Uses

func (_this *WorkerGlobalScope) ImportScripts(urls ...string)

func (*WorkerGlobalScope) IndexedDB Uses

func (_this *WorkerGlobalScope) IndexedDB() *indexeddb.IDBFactory

IndexedDB returning attribute 'indexedDB' with type indexeddb.IDBFactory (idl: IDBFactory).

func (*WorkerGlobalScope) IsSecureContext Uses

func (_this *WorkerGlobalScope) IsSecureContext() bool

IsSecureContext returning attribute 'isSecureContext' with type bool (idl: boolean).

func (*WorkerGlobalScope) Location Uses

func (_this *WorkerGlobalScope) Location() *WorkerLocation

Location returning attribute 'location' with type WorkerLocation (idl: WorkerLocation).

func (*WorkerGlobalScope) Navigator Uses

func (_this *WorkerGlobalScope) Navigator() *WorkerNavigator

Navigator returning attribute 'navigator' with type WorkerNavigator (idl: WorkerNavigator).

func (*WorkerGlobalScope) OnError Uses

func (_this *WorkerGlobalScope) OnError() htmlcommon.OnErrorEventHandlerFunc

OnError returning attribute 'onerror' with type htmlcommon.OnErrorEventHandler (idl: OnErrorEventHandlerNonNull).

func (*WorkerGlobalScope) OnLanguageChange Uses

func (_this *WorkerGlobalScope) OnLanguageChange() domcore.EventHandlerFunc

OnLanguageChange returning attribute 'onlanguagechange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*WorkerGlobalScope) OnOffline Uses

func (_this *WorkerGlobalScope) OnOffline() domcore.EventHandlerFunc

OnOffline returning attribute 'onoffline' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*WorkerGlobalScope) OnOnline Uses

func (_this *WorkerGlobalScope) OnOnline() domcore.EventHandlerFunc

OnOnline returning attribute 'ononline' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*WorkerGlobalScope) OnRejectionHandled Uses

func (_this *WorkerGlobalScope) OnRejectionHandled() domcore.EventHandlerFunc

OnRejectionHandled returning attribute 'onrejectionhandled' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*WorkerGlobalScope) OnUnhandledRejection Uses

func (_this *WorkerGlobalScope) OnUnhandledRejection() domcore.EventHandlerFunc

OnUnhandledRejection returning attribute 'onunhandledrejection' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*WorkerGlobalScope) Origin Uses

func (_this *WorkerGlobalScope) Origin() string

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

func (*WorkerGlobalScope) Performance Uses

func (_this *WorkerGlobalScope) Performance() *performance.Performance

Performance returning attribute 'performance' with type performance.Performance (idl: Performance).

func (*WorkerGlobalScope) QueueMicrotask Uses

func (_this *WorkerGlobalScope) QueueMicrotask(callback *webidl.VoidFunction)

func (*WorkerGlobalScope) Self Uses

func (_this *WorkerGlobalScope) Self() *WorkerGlobalScope

Self returning attribute 'self' with type WorkerGlobalScope (idl: WorkerGlobalScope).

func (*WorkerGlobalScope) SetInterval Uses

func (_this *WorkerGlobalScope) SetInterval(handler *Union, timeout *int, arguments ...interface{}) (_result int)

func (*WorkerGlobalScope) SetOnError Uses

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

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

func (*WorkerGlobalScope) SetOnLanguageChange Uses

func (_this *WorkerGlobalScope) SetOnLanguageChange(listener func(event *domcore.Event, currentTarget *WorkerGlobalScope)) js.Func

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

func (*WorkerGlobalScope) SetOnOffline Uses

func (_this *WorkerGlobalScope) SetOnOffline(listener func(event *domcore.Event, currentTarget *WorkerGlobalScope)) js.Func

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

func (*WorkerGlobalScope) SetOnOnline Uses

func (_this *WorkerGlobalScope) SetOnOnline(listener func(event *domcore.Event, currentTarget *WorkerGlobalScope)) js.Func

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

func (*WorkerGlobalScope) SetOnRejectionHandled Uses

func (_this *WorkerGlobalScope) SetOnRejectionHandled(listener func(event *htmlevent.PromiseRejectionEvent, currentTarget *WorkerGlobalScope)) js.Func

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

func (*WorkerGlobalScope) SetOnUnhandledRejection Uses

func (_this *WorkerGlobalScope) SetOnUnhandledRejection(listener func(event *htmlevent.PromiseRejectionEvent, currentTarget *WorkerGlobalScope)) js.Func

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

func (*WorkerGlobalScope) SetTimeout Uses

func (_this *WorkerGlobalScope) SetTimeout(handler *Union, timeout *int, arguments ...interface{}) (_result int)

type WorkerLocation Uses

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

class: WorkerLocation

func WorkerLocationFromJS Uses

func WorkerLocationFromJS(value js.Wrapper) *WorkerLocation

WorkerLocationFromJS is casting a js.Wrapper into WorkerLocation.

func (*WorkerLocation) Hash Uses

func (_this *WorkerLocation) Hash() string

Hash returning attribute 'hash' with type string (idl: USVString).

func (*WorkerLocation) Host Uses

func (_this *WorkerLocation) Host() string

Host returning attribute 'host' with type string (idl: USVString).

func (*WorkerLocation) Hostname Uses

func (_this *WorkerLocation) Hostname() string

Hostname returning attribute 'hostname' with type string (idl: USVString).

func (*WorkerLocation) Href Uses

func (_this *WorkerLocation) Href() string

Href returning attribute 'href' with type string (idl: USVString).

func (*WorkerLocation) JSValue Uses

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

func (*WorkerLocation) Origin Uses

func (_this *WorkerLocation) Origin() string

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

func (*WorkerLocation) Pathname Uses

func (_this *WorkerLocation) Pathname() string

Pathname returning attribute 'pathname' with type string (idl: USVString).

func (*WorkerLocation) Port Uses

func (_this *WorkerLocation) Port() string

Port returning attribute 'port' with type string (idl: USVString).

func (*WorkerLocation) Protocol Uses

func (_this *WorkerLocation) Protocol() string

Protocol returning attribute 'protocol' with type string (idl: USVString).

func (*WorkerLocation) Search Uses

func (_this *WorkerLocation) Search() string

Search returning attribute 'search' with type string (idl: USVString).

func (*WorkerLocation) ToString Uses

func (_this *WorkerLocation) ToString() string

ToString is an alias for Href.

type WorkerNavigator Uses

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

class: WorkerNavigator

func WorkerNavigatorFromJS Uses

func WorkerNavigatorFromJS(value js.Wrapper) *WorkerNavigator

WorkerNavigatorFromJS is casting a js.Wrapper into WorkerNavigator.

func (*WorkerNavigator) AppCodeName Uses

func (_this *WorkerNavigator) AppCodeName() string

AppCodeName returning attribute 'appCodeName' with type string (idl: DOMString).

func (*WorkerNavigator) AppName Uses

func (_this *WorkerNavigator) AppName() string

AppName returning attribute 'appName' with type string (idl: DOMString).

func (*WorkerNavigator) AppVersion Uses

func (_this *WorkerNavigator) AppVersion() string

AppVersion returning attribute 'appVersion' with type string (idl: DOMString).

func (*WorkerNavigator) Connection Uses

func (_this *WorkerNavigator) Connection() *netinfo.NetworkInformation

Connection returning attribute 'connection' with type netinfo.NetworkInformation (idl: NetworkInformation).

func (*WorkerNavigator) HardwareConcurrency Uses

func (_this *WorkerNavigator) HardwareConcurrency() int

HardwareConcurrency returning attribute 'hardwareConcurrency' with type int (idl: unsigned long long).

func (*WorkerNavigator) JSValue Uses

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

func (*WorkerNavigator) Language Uses

func (_this *WorkerNavigator) Language() string

Language returning attribute 'language' with type string (idl: DOMString).

func (*WorkerNavigator) Languages Uses

func (_this *WorkerNavigator) Languages() *javascript.FrozenArray

Languages returning attribute 'languages' with type javascript.FrozenArray (idl: FrozenArray).

func (*WorkerNavigator) MediaCapabilities Uses

func (_this *WorkerNavigator) MediaCapabilities() *capabilities.MediaCapabilities

MediaCapabilities returning attribute 'mediaCapabilities' with type capabilities.MediaCapabilities (idl: MediaCapabilities).

func (*WorkerNavigator) OnLine Uses

func (_this *WorkerNavigator) OnLine() bool

OnLine returning attribute 'onLine' with type bool (idl: boolean).

func (*WorkerNavigator) Oscpu Uses

func (_this *WorkerNavigator) Oscpu() string

Oscpu returning attribute 'oscpu' with type string (idl: DOMString).

func (*WorkerNavigator) Permissions Uses

func (_this *WorkerNavigator) Permissions() *permissions.Permissions

Permissions returning attribute 'permissions' with type permissions.Permissions (idl: Permissions).

func (*WorkerNavigator) Platform Uses

func (_this *WorkerNavigator) Platform() string

Platform returning attribute 'platform' with type string (idl: DOMString).

func (*WorkerNavigator) Product Uses

func (_this *WorkerNavigator) Product() string

Product returning attribute 'product' with type string (idl: DOMString).

func (*WorkerNavigator) ProductSub Uses

func (_this *WorkerNavigator) ProductSub() string

ProductSub returning attribute 'productSub' with type string (idl: DOMString).

func (*WorkerNavigator) ServiceWorker Uses

func (_this *WorkerNavigator) ServiceWorker() *serviceworker.ServiceWorkerContainer

ServiceWorker returning attribute 'serviceWorker' with type serviceworker.ServiceWorkerContainer (idl: ServiceWorkerContainer).

func (*WorkerNavigator) Storage Uses

func (_this *WorkerNavigator) Storage() *storage.StorageManager

Storage returning attribute 'storage' with type storage.StorageManager (idl: StorageManager).

func (*WorkerNavigator) TaintEnabled Uses

func (_this *WorkerNavigator) TaintEnabled() (_result bool)

func (*WorkerNavigator) Usb Uses

func (_this *WorkerNavigator) Usb() *usb.USB

Usb returning attribute 'usb' with type usb.USB (idl: USB).

func (*WorkerNavigator) UserAgent Uses

func (_this *WorkerNavigator) UserAgent() string

UserAgent returning attribute 'userAgent' with type string (idl: DOMString).

func (*WorkerNavigator) Vendor Uses

func (_this *WorkerNavigator) Vendor() string

Vendor returning attribute 'vendor' with type string (idl: DOMString).

func (*WorkerNavigator) VendorSub Uses

func (_this *WorkerNavigator) VendorSub() string

VendorSub returning attribute 'vendorSub' with type string (idl: DOMString).

type WorkerOptions Uses

type WorkerOptions struct {
    Type        htmlcommon.WorkerType
    Credentials fetch.RequestCredentials
    Name        string
}

dictionary: WorkerOptions

func WorkerOptionsFromJS Uses

func WorkerOptionsFromJS(value js.Wrapper) *WorkerOptions

WorkerOptionsFromJS is allocating a new WorkerOptions object and copy all values from input javascript object

func (*WorkerOptions) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

Package worker imports 23 packages (graph). Updated 2019-09-18. Refresh now. Tools for package owners.