Documentation ¶
Overview ¶
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 ¶
- type DedicatedWorkerGlobalScope
- func (_this *DedicatedWorkerGlobalScope) AddEventMessage(...) js.Func
- func (_this *DedicatedWorkerGlobalScope) AddEventMessageError(...) js.Func
- func (_this *DedicatedWorkerGlobalScope) CancelAnimationFrame(handle uint)
- func (_this *DedicatedWorkerGlobalScope) Close()
- func (_this *DedicatedWorkerGlobalScope) Name() string
- func (_this *DedicatedWorkerGlobalScope) OnMessage() domcore.EventHandlerFunc
- func (_this *DedicatedWorkerGlobalScope) OnMessageError() domcore.EventHandlerFunc
- func (_this *DedicatedWorkerGlobalScope) PostMessage(message interface{}, transfer []*javascript.Object)
- func (_this *DedicatedWorkerGlobalScope) PostMessage2(message interface{}, options *channel.PostMessageOptions)
- func (_this *DedicatedWorkerGlobalScope) RequestAnimationFrame(callback *htmlcommon.FrameRequestCallback) (_result uint)
- func (_this *DedicatedWorkerGlobalScope) SetOnMessage(...) js.Func
- func (_this *DedicatedWorkerGlobalScope) SetOnMessageError(...) js.Func
- type ServiceWorkerGlobalScope
- func (_this *ServiceWorkerGlobalScope) AddEventActivate(...) js.Func
- func (_this *ServiceWorkerGlobalScope) AddEventBackgroundFetchAbort(listener func(event *serviceworker.BackgroundFetchEvent, ...)) js.Func
- func (_this *ServiceWorkerGlobalScope) AddEventBackgroundFetchClick(listener func(event *serviceworker.BackgroundFetchEvent, ...)) js.Func
- func (_this *ServiceWorkerGlobalScope) AddEventBackgroundFetchFail(listener func(event *serviceworker.BackgroundFetchUpdateUIEvent, ...)) js.Func
- func (_this *ServiceWorkerGlobalScope) AddEventBackgroundFetchSuccess(listener func(event *serviceworker.BackgroundFetchUpdateUIEvent, ...)) js.Func
- func (_this *ServiceWorkerGlobalScope) AddEventCanMakePayment(...) js.Func
- func (_this *ServiceWorkerGlobalScope) AddEventCookieChange(...) js.Func
- func (_this *ServiceWorkerGlobalScope) AddEventFetch(...) js.Func
- func (_this *ServiceWorkerGlobalScope) AddEventInstall(...) js.Func
- func (_this *ServiceWorkerGlobalScope) AddEventMessage(listener func(event *serviceworker.ExtendableMessageEvent, ...)) js.Func
- func (_this *ServiceWorkerGlobalScope) AddEventMessageError(...) js.Func
- func (_this *ServiceWorkerGlobalScope) AddEventPaymentRequest(...) js.Func
- func (_this *ServiceWorkerGlobalScope) AddEventPush(listener func(event *push.Event, currentTarget *ServiceWorkerGlobalScope)) js.Func
- func (_this *ServiceWorkerGlobalScope) AddEventPushSubscriptionChange(...) js.Func
- func (_this *ServiceWorkerGlobalScope) AddEventSync(...) js.Func
- func (_this *ServiceWorkerGlobalScope) Clients() *serviceworker.Clients
- func (_this *ServiceWorkerGlobalScope) CookieStore() *cookie.CookieStore
- func (_this *ServiceWorkerGlobalScope) OnActivate() domcore.EventHandlerFunc
- func (_this *ServiceWorkerGlobalScope) OnBackgroundFetchAbort() domcore.EventHandlerFunc
- func (_this *ServiceWorkerGlobalScope) OnBackgroundFetchClick() domcore.EventHandlerFunc
- func (_this *ServiceWorkerGlobalScope) OnBackgroundFetchFail() domcore.EventHandlerFunc
- func (_this *ServiceWorkerGlobalScope) OnBackgroundFetchSuccess() domcore.EventHandlerFunc
- func (_this *ServiceWorkerGlobalScope) OnCanMakePayment() domcore.EventHandlerFunc
- func (_this *ServiceWorkerGlobalScope) OnCookieChange() domcore.EventHandlerFunc
- func (_this *ServiceWorkerGlobalScope) OnFetch() domcore.EventHandlerFunc
- func (_this *ServiceWorkerGlobalScope) OnInstall() domcore.EventHandlerFunc
- func (_this *ServiceWorkerGlobalScope) OnMessage() domcore.EventHandlerFunc
- func (_this *ServiceWorkerGlobalScope) OnMessageError() domcore.EventHandlerFunc
- func (_this *ServiceWorkerGlobalScope) OnPaymentRequest() domcore.EventHandlerFunc
- func (_this *ServiceWorkerGlobalScope) OnPush() domcore.EventHandlerFunc
- func (_this *ServiceWorkerGlobalScope) OnPushSubscriptionChange() domcore.EventHandlerFunc
- func (_this *ServiceWorkerGlobalScope) OnSync() domcore.EventHandlerFunc
- func (_this *ServiceWorkerGlobalScope) Registration() *serviceworker.ServiceWorkerRegistration
- func (_this *ServiceWorkerGlobalScope) SetOnActivate(...) js.Func
- func (_this *ServiceWorkerGlobalScope) SetOnBackgroundFetchAbort(listener func(event *serviceworker.BackgroundFetchEvent, ...)) js.Func
- func (_this *ServiceWorkerGlobalScope) SetOnBackgroundFetchClick(listener func(event *serviceworker.BackgroundFetchEvent, ...)) js.Func
- func (_this *ServiceWorkerGlobalScope) SetOnBackgroundFetchFail(listener func(event *serviceworker.BackgroundFetchUpdateUIEvent, ...)) js.Func
- func (_this *ServiceWorkerGlobalScope) SetOnBackgroundFetchSuccess(listener func(event *serviceworker.BackgroundFetchUpdateUIEvent, ...)) js.Func
- func (_this *ServiceWorkerGlobalScope) SetOnCanMakePayment(...) js.Func
- func (_this *ServiceWorkerGlobalScope) SetOnCookieChange(...) js.Func
- func (_this *ServiceWorkerGlobalScope) SetOnFetch(...) js.Func
- func (_this *ServiceWorkerGlobalScope) SetOnInstall(...) js.Func
- func (_this *ServiceWorkerGlobalScope) SetOnMessage(listener func(event *serviceworker.ExtendableMessageEvent, ...)) js.Func
- func (_this *ServiceWorkerGlobalScope) SetOnMessageError(...) js.Func
- func (_this *ServiceWorkerGlobalScope) SetOnPaymentRequest(...) js.Func
- func (_this *ServiceWorkerGlobalScope) SetOnPush(listener func(event *push.Event, currentTarget *ServiceWorkerGlobalScope)) js.Func
- func (_this *ServiceWorkerGlobalScope) SetOnPushSubscriptionChange(...) js.Func
- func (_this *ServiceWorkerGlobalScope) SetOnSync(...) js.Func
- func (_this *ServiceWorkerGlobalScope) SkipWaiting() (_result *javascript.PromiseVoid)
- type SharedWorker
- func (_this *SharedWorker) AddEventError(listener func(event *domcore.Event, currentTarget *SharedWorker)) js.Func
- func (_this *SharedWorker) OnError() domcore.EventHandlerFunc
- func (_this *SharedWorker) Port() *channel.MessagePort
- func (_this *SharedWorker) SetOnError(listener func(event *domcore.Event, currentTarget *SharedWorker)) js.Func
- type SharedWorkerGlobalScope
- func (_this *SharedWorkerGlobalScope) AddEventConnect(...) js.Func
- func (_this *SharedWorkerGlobalScope) Close()
- func (_this *SharedWorkerGlobalScope) Name() string
- func (_this *SharedWorkerGlobalScope) OnConnect() domcore.EventHandlerFunc
- func (_this *SharedWorkerGlobalScope) SetOnConnect(...) js.Func
- type Union
- type Worker
- func (_this *Worker) AddEventError(listener func(event *domcore.Event, currentTarget *Worker)) js.Func
- func (_this *Worker) AddEventMessage(listener func(event *channel.MessageEvent, currentTarget *Worker)) js.Func
- func (_this *Worker) AddEventMessageError(listener func(event *channel.MessageEvent, currentTarget *Worker)) js.Func
- func (_this *Worker) OnError() domcore.EventHandlerFunc
- func (_this *Worker) OnMessage() domcore.EventHandlerFunc
- func (_this *Worker) OnMessageError() domcore.EventHandlerFunc
- func (_this *Worker) PostMessage(message interface{}, transfer []*javascript.Object)
- func (_this *Worker) PostMessage2(message interface{}, options *channel.PostMessageOptions)
- func (_this *Worker) SetOnError(listener func(event *domcore.Event, currentTarget *Worker)) js.Func
- func (_this *Worker) SetOnMessage(listener func(event *channel.MessageEvent, currentTarget *Worker)) js.Func
- func (_this *Worker) SetOnMessageError(listener func(event *channel.MessageEvent, currentTarget *Worker)) js.Func
- func (_this *Worker) Terminate()
- type WorkerGlobalScope
- func (_this *WorkerGlobalScope) AddEventError(listener func(event *domcore.Event, currentTarget *WorkerGlobalScope)) js.Func
- func (_this *WorkerGlobalScope) AddEventLanguageChange(listener func(event *domcore.Event, currentTarget *WorkerGlobalScope)) js.Func
- func (_this *WorkerGlobalScope) AddEventOffline(listener func(event *domcore.Event, currentTarget *WorkerGlobalScope)) js.Func
- func (_this *WorkerGlobalScope) AddEventOnline(listener func(event *domcore.Event, currentTarget *WorkerGlobalScope)) js.Func
- func (_this *WorkerGlobalScope) AddEventRejectionHandled(...) js.Func
- func (_this *WorkerGlobalScope) AddEventUnhandledRejection(...) js.Func
- func (_this *WorkerGlobalScope) AddressSpace() corsrfc1918.AddressSpace
- func (_this *WorkerGlobalScope) Atob(data string) (_result *patch.ByteString)
- func (_this *WorkerGlobalScope) Btoa(data string) (_result string)
- func (_this *WorkerGlobalScope) Caches() *serviceworker.CacheStorage
- func (_this *WorkerGlobalScope) ClearInterval(handle *int)
- func (_this *WorkerGlobalScope) ClearTimeout(handle *int)
- func (_this *WorkerGlobalScope) CreateImageBitmap(image *Union, options *canvas.ImageBitmapOptions) (_result *canvas.PromiseImageBitmap)
- func (_this *WorkerGlobalScope) CreateImageBitmap2(image *Union, sx int, sy int, sw int, sh int, ...) (_result *canvas.PromiseImageBitmap)
- func (_this *WorkerGlobalScope) Crypto() *crypto.Crypto
- func (_this *WorkerGlobalScope) Fetch(input *Union, init *fetch.RequestInit) (_result *fetch.PromiseResponse)
- func (_this *WorkerGlobalScope) ImportScripts(urls ...string)
- func (_this *WorkerGlobalScope) IndexedDB() *indexeddb.IDBFactory
- func (_this *WorkerGlobalScope) IsSecureContext() bool
- func (_this *WorkerGlobalScope) Location() *WorkerLocation
- func (_this *WorkerGlobalScope) Navigator() *WorkerNavigator
- func (_this *WorkerGlobalScope) OnError() htmlcommon.OnErrorEventHandlerFunc
- func (_this *WorkerGlobalScope) OnLanguageChange() domcore.EventHandlerFunc
- func (_this *WorkerGlobalScope) OnOffline() domcore.EventHandlerFunc
- func (_this *WorkerGlobalScope) OnOnline() domcore.EventHandlerFunc
- func (_this *WorkerGlobalScope) OnRejectionHandled() domcore.EventHandlerFunc
- func (_this *WorkerGlobalScope) OnUnhandledRejection() domcore.EventHandlerFunc
- func (_this *WorkerGlobalScope) Origin() string
- func (_this *WorkerGlobalScope) Performance() *performance.Performance
- func (_this *WorkerGlobalScope) QueueMicrotask(callback *webidl.VoidFunction)
- func (_this *WorkerGlobalScope) Self() *WorkerGlobalScope
- func (_this *WorkerGlobalScope) SetInterval(handler *Union, timeout *int, arguments ...interface{}) (_result int)
- func (_this *WorkerGlobalScope) SetOnError(listener func(event *domcore.Event, currentTarget *WorkerGlobalScope)) js.Func
- func (_this *WorkerGlobalScope) SetOnLanguageChange(listener func(event *domcore.Event, currentTarget *WorkerGlobalScope)) js.Func
- func (_this *WorkerGlobalScope) SetOnOffline(listener func(event *domcore.Event, currentTarget *WorkerGlobalScope)) js.Func
- func (_this *WorkerGlobalScope) SetOnOnline(listener func(event *domcore.Event, currentTarget *WorkerGlobalScope)) js.Func
- func (_this *WorkerGlobalScope) SetOnRejectionHandled(...) js.Func
- func (_this *WorkerGlobalScope) SetOnUnhandledRejection(...) js.Func
- func (_this *WorkerGlobalScope) SetTimeout(handler *Union, timeout *int, arguments ...interface{}) (_result int)
- type WorkerLocation
- func (_this *WorkerLocation) Hash() string
- func (_this *WorkerLocation) Host() string
- func (_this *WorkerLocation) Hostname() string
- func (_this *WorkerLocation) Href() string
- func (_this *WorkerLocation) JSValue() js.Value
- func (_this *WorkerLocation) Origin() string
- func (_this *WorkerLocation) Pathname() string
- func (_this *WorkerLocation) Port() string
- func (_this *WorkerLocation) Protocol() string
- func (_this *WorkerLocation) Search() string
- func (_this *WorkerLocation) ToString() string
- type WorkerNavigator
- func (_this *WorkerNavigator) AppCodeName() string
- func (_this *WorkerNavigator) AppName() string
- func (_this *WorkerNavigator) AppVersion() string
- func (_this *WorkerNavigator) Connection() *netinfo.NetworkInformation
- func (_this *WorkerNavigator) HardwareConcurrency() int
- func (_this *WorkerNavigator) JSValue() js.Value
- func (_this *WorkerNavigator) Language() string
- func (_this *WorkerNavigator) Languages() *javascript.FrozenArray
- func (_this *WorkerNavigator) MediaCapabilities() *capabilities.MediaCapabilities
- func (_this *WorkerNavigator) OnLine() bool
- func (_this *WorkerNavigator) Oscpu() string
- func (_this *WorkerNavigator) Permissions() *permissions.Permissions
- func (_this *WorkerNavigator) Platform() string
- func (_this *WorkerNavigator) Product() string
- func (_this *WorkerNavigator) ProductSub() string
- func (_this *WorkerNavigator) ServiceWorker() *serviceworker.ServiceWorkerContainer
- func (_this *WorkerNavigator) Storage() *storage.StorageManager
- func (_this *WorkerNavigator) TaintEnabled() (_result bool)
- func (_this *WorkerNavigator) Usb() *usb.USB
- func (_this *WorkerNavigator) UserAgent() string
- func (_this *WorkerNavigator) Vendor() string
- func (_this *WorkerNavigator) VendorSub() string
- type WorkerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DedicatedWorkerGlobalScope ¶
type DedicatedWorkerGlobalScope struct {
WorkerGlobalScope
}
class: DedicatedWorkerGlobalScope
func DedicatedWorkerGlobalScopeFromJS ¶
func DedicatedWorkerGlobalScopeFromJS(value js.Value) *DedicatedWorkerGlobalScope
DedicatedWorkerGlobalScopeFromJS is casting a js.Value into DedicatedWorkerGlobalScope.
func DedicatedWorkerGlobalScopeFromWrapper ¶
func DedicatedWorkerGlobalScopeFromWrapper(input core.Wrapper) *DedicatedWorkerGlobalScope
DedicatedWorkerGlobalScopeFromJS is casting from something that holds a js.Value into DedicatedWorkerGlobalScope.
func (*DedicatedWorkerGlobalScope) AddEventMessage ¶
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 ¶
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 ¶
func (_this *DedicatedWorkerGlobalScope) CancelAnimationFrame(handle uint)
func (*DedicatedWorkerGlobalScope) Close ¶
func (_this *DedicatedWorkerGlobalScope) Close()
func (*DedicatedWorkerGlobalScope) Name ¶
func (_this *DedicatedWorkerGlobalScope) Name() string
Name returning attribute 'name' with type string (idl: DOMString).
func (*DedicatedWorkerGlobalScope) OnMessage ¶
func (_this *DedicatedWorkerGlobalScope) OnMessage() domcore.EventHandlerFunc
OnMessage returning attribute 'onmessage' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*DedicatedWorkerGlobalScope) OnMessageError ¶
func (_this *DedicatedWorkerGlobalScope) OnMessageError() domcore.EventHandlerFunc
OnMessageError returning attribute 'onmessageerror' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*DedicatedWorkerGlobalScope) PostMessage ¶
func (_this *DedicatedWorkerGlobalScope) PostMessage(message interface{}, transfer []*javascript.Object)
func (*DedicatedWorkerGlobalScope) PostMessage2 ¶
func (_this *DedicatedWorkerGlobalScope) PostMessage2(message interface{}, options *channel.PostMessageOptions)
func (*DedicatedWorkerGlobalScope) RequestAnimationFrame ¶
func (_this *DedicatedWorkerGlobalScope) RequestAnimationFrame(callback *htmlcommon.FrameRequestCallback) (_result uint)
func (*DedicatedWorkerGlobalScope) SetOnMessage ¶
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 ¶
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 ¶
type ServiceWorkerGlobalScope struct {
WorkerGlobalScope
}
class: ServiceWorkerGlobalScope
func ServiceWorkerGlobalScopeFromJS ¶
func ServiceWorkerGlobalScopeFromJS(value js.Value) *ServiceWorkerGlobalScope
ServiceWorkerGlobalScopeFromJS is casting a js.Value into ServiceWorkerGlobalScope.
func ServiceWorkerGlobalScopeFromWrapper ¶
func ServiceWorkerGlobalScopeFromWrapper(input core.Wrapper) *ServiceWorkerGlobalScope
ServiceWorkerGlobalScopeFromJS is casting from something that holds a js.Value into ServiceWorkerGlobalScope.
func (*ServiceWorkerGlobalScope) AddEventActivate ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (_this *ServiceWorkerGlobalScope) Clients() *serviceworker.Clients
Clients returning attribute 'clients' with type serviceworker.Clients (idl: Clients).
func (*ServiceWorkerGlobalScope) CookieStore ¶
func (_this *ServiceWorkerGlobalScope) CookieStore() *cookie.CookieStore
CookieStore returning attribute 'cookieStore' with type cookie.CookieStore (idl: CookieStore).
func (*ServiceWorkerGlobalScope) OnActivate ¶
func (_this *ServiceWorkerGlobalScope) OnActivate() domcore.EventHandlerFunc
OnActivate returning attribute 'onactivate' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*ServiceWorkerGlobalScope) OnBackgroundFetchAbort ¶
func (_this *ServiceWorkerGlobalScope) OnBackgroundFetchAbort() domcore.EventHandlerFunc
OnBackgroundFetchAbort returning attribute 'onbackgroundfetchabort' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*ServiceWorkerGlobalScope) OnBackgroundFetchClick ¶
func (_this *ServiceWorkerGlobalScope) OnBackgroundFetchClick() domcore.EventHandlerFunc
OnBackgroundFetchClick returning attribute 'onbackgroundfetchclick' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*ServiceWorkerGlobalScope) OnBackgroundFetchFail ¶
func (_this *ServiceWorkerGlobalScope) OnBackgroundFetchFail() domcore.EventHandlerFunc
OnBackgroundFetchFail returning attribute 'onbackgroundfetchfail' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*ServiceWorkerGlobalScope) OnBackgroundFetchSuccess ¶
func (_this *ServiceWorkerGlobalScope) OnBackgroundFetchSuccess() domcore.EventHandlerFunc
OnBackgroundFetchSuccess returning attribute 'onbackgroundfetchsuccess' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*ServiceWorkerGlobalScope) OnCanMakePayment ¶
func (_this *ServiceWorkerGlobalScope) OnCanMakePayment() domcore.EventHandlerFunc
OnCanMakePayment returning attribute 'oncanmakepayment' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*ServiceWorkerGlobalScope) OnCookieChange ¶
func (_this *ServiceWorkerGlobalScope) OnCookieChange() domcore.EventHandlerFunc
OnCookieChange returning attribute 'oncookiechange' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*ServiceWorkerGlobalScope) OnFetch ¶
func (_this *ServiceWorkerGlobalScope) OnFetch() domcore.EventHandlerFunc
OnFetch returning attribute 'onfetch' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*ServiceWorkerGlobalScope) OnInstall ¶
func (_this *ServiceWorkerGlobalScope) OnInstall() domcore.EventHandlerFunc
OnInstall returning attribute 'oninstall' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*ServiceWorkerGlobalScope) OnMessage ¶
func (_this *ServiceWorkerGlobalScope) OnMessage() domcore.EventHandlerFunc
OnMessage returning attribute 'onmessage' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*ServiceWorkerGlobalScope) OnMessageError ¶
func (_this *ServiceWorkerGlobalScope) OnMessageError() domcore.EventHandlerFunc
OnMessageError returning attribute 'onmessageerror' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*ServiceWorkerGlobalScope) OnPaymentRequest ¶
func (_this *ServiceWorkerGlobalScope) OnPaymentRequest() domcore.EventHandlerFunc
OnPaymentRequest returning attribute 'onpaymentrequest' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*ServiceWorkerGlobalScope) OnPush ¶
func (_this *ServiceWorkerGlobalScope) OnPush() domcore.EventHandlerFunc
OnPush returning attribute 'onpush' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*ServiceWorkerGlobalScope) OnPushSubscriptionChange ¶
func (_this *ServiceWorkerGlobalScope) OnPushSubscriptionChange() domcore.EventHandlerFunc
OnPushSubscriptionChange returning attribute 'onpushsubscriptionchange' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*ServiceWorkerGlobalScope) OnSync ¶
func (_this *ServiceWorkerGlobalScope) OnSync() domcore.EventHandlerFunc
OnSync returning attribute 'onsync' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*ServiceWorkerGlobalScope) Registration ¶
func (_this *ServiceWorkerGlobalScope) Registration() *serviceworker.ServiceWorkerRegistration
Registration returning attribute 'registration' with type serviceworker.ServiceWorkerRegistration (idl: ServiceWorkerRegistration).
func (*ServiceWorkerGlobalScope) SetOnActivate ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (_this *ServiceWorkerGlobalScope) SkipWaiting() (_result *javascript.PromiseVoid)
type SharedWorker ¶
type SharedWorker struct {
}class: SharedWorker
func NewSharedWorker ¶
func NewSharedWorker(scriptURL string, options *Union) (_result *SharedWorker)
func SharedWorkerFromJS ¶
func SharedWorkerFromJS(value js.Value) *SharedWorker
SharedWorkerFromJS is casting a js.Value into SharedWorker.
func SharedWorkerFromWrapper ¶
func SharedWorkerFromWrapper(input core.Wrapper) *SharedWorker
SharedWorkerFromJS is casting from something that holds a js.Value into SharedWorker.
func (*SharedWorker) AddEventError ¶
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 ¶
func (_this *SharedWorker) OnError() domcore.EventHandlerFunc
OnError returning attribute 'onerror' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*SharedWorker) Port ¶
func (_this *SharedWorker) Port() *channel.MessagePort
Port returning attribute 'port' with type channel.MessagePort (idl: MessagePort).
func (*SharedWorker) SetOnError ¶
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 ¶
type SharedWorkerGlobalScope struct {
}class: SharedWorkerGlobalScope
func SharedWorkerGlobalScopeFromJS ¶
func SharedWorkerGlobalScopeFromJS(value js.Value) *SharedWorkerGlobalScope
SharedWorkerGlobalScopeFromJS is casting a js.Value into SharedWorkerGlobalScope.
func SharedWorkerGlobalScopeFromWrapper ¶
func SharedWorkerGlobalScopeFromWrapper(input core.Wrapper) *SharedWorkerGlobalScope
SharedWorkerGlobalScopeFromJS is casting from something that holds a js.Value into SharedWorkerGlobalScope.
func (*SharedWorkerGlobalScope) AddEventConnect ¶
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 ¶
func (_this *SharedWorkerGlobalScope) Close()
func (*SharedWorkerGlobalScope) Name ¶
func (_this *SharedWorkerGlobalScope) Name() string
Name returning attribute 'name' with type string (idl: DOMString).
func (*SharedWorkerGlobalScope) OnConnect ¶
func (_this *SharedWorkerGlobalScope) OnConnect() domcore.EventHandlerFunc
OnConnect returning attribute 'onconnect' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*SharedWorkerGlobalScope) SetOnConnect ¶
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 ¶
func UnionFromJS ¶
type Worker ¶
type Worker struct {
domcore.EventTarget
}
class: Worker
func NewWorker ¶
func NewWorker(scriptURL string, options *WorkerOptions) (_result *Worker)
func WorkerFromJS ¶
WorkerFromJS is casting a js.Value into Worker.
func WorkerFromWrapper ¶
WorkerFromJS is casting from something that holds a js.Value into Worker.
func (*Worker) AddEventError ¶
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 ¶
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 ¶
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 ¶
func (_this *Worker) OnError() domcore.EventHandlerFunc
OnError returning attribute 'onerror' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*Worker) OnMessage ¶
func (_this *Worker) OnMessage() domcore.EventHandlerFunc
OnMessage returning attribute 'onmessage' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*Worker) OnMessageError ¶
func (_this *Worker) OnMessageError() domcore.EventHandlerFunc
OnMessageError returning attribute 'onmessageerror' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*Worker) PostMessage ¶
func (_this *Worker) PostMessage(message interface{}, transfer []*javascript.Object)
func (*Worker) PostMessage2 ¶
func (_this *Worker) PostMessage2(message interface{}, options *channel.PostMessageOptions)
func (*Worker) SetOnError ¶
SetOnError is assigning a function to 'onerror'. This This method is returning allocated javascript function that need to be released.
func (*Worker) SetOnMessage ¶
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 ¶
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.
type WorkerGlobalScope ¶
type WorkerGlobalScope struct {
domcore.EventTarget
}
class: WorkerGlobalScope
func WorkerGlobalScopeFromJS ¶
func WorkerGlobalScopeFromJS(value js.Value) *WorkerGlobalScope
WorkerGlobalScopeFromJS is casting a js.Value into WorkerGlobalScope.
func WorkerGlobalScopeFromWrapper ¶
func WorkerGlobalScopeFromWrapper(input core.Wrapper) *WorkerGlobalScope
WorkerGlobalScopeFromJS is casting from something that holds a js.Value into WorkerGlobalScope.
func (*WorkerGlobalScope) AddEventError ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (_this *WorkerGlobalScope) AddressSpace() corsrfc1918.AddressSpace
AddressSpace returning attribute 'addressSpace' with type corsrfc1918.AddressSpace (idl: AddressSpace).
func (*WorkerGlobalScope) Atob ¶
func (_this *WorkerGlobalScope) Atob(data string) (_result *patch.ByteString)
func (*WorkerGlobalScope) Btoa ¶
func (_this *WorkerGlobalScope) Btoa(data string) (_result string)
func (*WorkerGlobalScope) Caches ¶
func (_this *WorkerGlobalScope) Caches() *serviceworker.CacheStorage
Caches returning attribute 'caches' with type serviceworker.CacheStorage (idl: CacheStorage).
func (*WorkerGlobalScope) ClearInterval ¶
func (_this *WorkerGlobalScope) ClearInterval(handle *int)
func (*WorkerGlobalScope) ClearTimeout ¶
func (_this *WorkerGlobalScope) ClearTimeout(handle *int)
func (*WorkerGlobalScope) CreateImageBitmap ¶
func (_this *WorkerGlobalScope) CreateImageBitmap(image *Union, options *canvas.ImageBitmapOptions) (_result *canvas.PromiseImageBitmap)
func (*WorkerGlobalScope) CreateImageBitmap2 ¶
func (_this *WorkerGlobalScope) CreateImageBitmap2(image *Union, sx int, sy int, sw int, sh int, options *canvas.ImageBitmapOptions) (_result *canvas.PromiseImageBitmap)
func (*WorkerGlobalScope) Crypto ¶
func (_this *WorkerGlobalScope) Crypto() *crypto.Crypto
Crypto returning attribute 'crypto' with type crypto.Crypto (idl: Crypto).
func (*WorkerGlobalScope) Fetch ¶
func (_this *WorkerGlobalScope) Fetch(input *Union, init *fetch.RequestInit) (_result *fetch.PromiseResponse)
func (*WorkerGlobalScope) ImportScripts ¶
func (_this *WorkerGlobalScope) ImportScripts(urls ...string)
func (*WorkerGlobalScope) IndexedDB ¶
func (_this *WorkerGlobalScope) IndexedDB() *indexeddb.IDBFactory
IndexedDB returning attribute 'indexedDB' with type indexeddb.IDBFactory (idl: IDBFactory).
func (*WorkerGlobalScope) IsSecureContext ¶
func (_this *WorkerGlobalScope) IsSecureContext() bool
IsSecureContext returning attribute 'isSecureContext' with type bool (idl: boolean).
func (*WorkerGlobalScope) Location ¶
func (_this *WorkerGlobalScope) Location() *WorkerLocation
Location returning attribute 'location' with type WorkerLocation (idl: WorkerLocation).
func (*WorkerGlobalScope) Navigator ¶
func (_this *WorkerGlobalScope) Navigator() *WorkerNavigator
Navigator returning attribute 'navigator' with type WorkerNavigator (idl: WorkerNavigator).
func (*WorkerGlobalScope) OnError ¶
func (_this *WorkerGlobalScope) OnError() htmlcommon.OnErrorEventHandlerFunc
OnError returning attribute 'onerror' with type htmlcommon.OnErrorEventHandler (idl: OnErrorEventHandlerNonNull).
func (*WorkerGlobalScope) OnLanguageChange ¶
func (_this *WorkerGlobalScope) OnLanguageChange() domcore.EventHandlerFunc
OnLanguageChange returning attribute 'onlanguagechange' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*WorkerGlobalScope) OnOffline ¶
func (_this *WorkerGlobalScope) OnOffline() domcore.EventHandlerFunc
OnOffline returning attribute 'onoffline' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*WorkerGlobalScope) OnOnline ¶
func (_this *WorkerGlobalScope) OnOnline() domcore.EventHandlerFunc
OnOnline returning attribute 'ononline' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*WorkerGlobalScope) OnRejectionHandled ¶
func (_this *WorkerGlobalScope) OnRejectionHandled() domcore.EventHandlerFunc
OnRejectionHandled returning attribute 'onrejectionhandled' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*WorkerGlobalScope) OnUnhandledRejection ¶
func (_this *WorkerGlobalScope) OnUnhandledRejection() domcore.EventHandlerFunc
OnUnhandledRejection returning attribute 'onunhandledrejection' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*WorkerGlobalScope) Origin ¶
func (_this *WorkerGlobalScope) Origin() string
Origin returning attribute 'origin' with type string (idl: USVString).
func (*WorkerGlobalScope) Performance ¶
func (_this *WorkerGlobalScope) Performance() *performance.Performance
Performance returning attribute 'performance' with type performance.Performance (idl: Performance).
func (*WorkerGlobalScope) QueueMicrotask ¶
func (_this *WorkerGlobalScope) QueueMicrotask(callback *webidl.VoidFunction)
func (*WorkerGlobalScope) Self ¶
func (_this *WorkerGlobalScope) Self() *WorkerGlobalScope
Self returning attribute 'self' with type WorkerGlobalScope (idl: WorkerGlobalScope).
func (*WorkerGlobalScope) SetInterval ¶
func (_this *WorkerGlobalScope) SetInterval(handler *Union, timeout *int, arguments ...interface{}) (_result int)
func (*WorkerGlobalScope) SetOnError ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (_this *WorkerGlobalScope) SetTimeout(handler *Union, timeout *int, arguments ...interface{}) (_result int)
type WorkerLocation ¶
type WorkerLocation struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: WorkerLocation
func WorkerLocationFromJS ¶
func WorkerLocationFromJS(value js.Value) *WorkerLocation
WorkerLocationFromJS is casting a js.Value into WorkerLocation.
func WorkerLocationFromWrapper ¶
func WorkerLocationFromWrapper(input core.Wrapper) *WorkerLocation
WorkerLocationFromJS is casting from something that holds a js.Value into WorkerLocation.
func (*WorkerLocation) Hash ¶
func (_this *WorkerLocation) Hash() string
Hash returning attribute 'hash' with type string (idl: USVString).
func (*WorkerLocation) Host ¶
func (_this *WorkerLocation) Host() string
Host returning attribute 'host' with type string (idl: USVString).
func (*WorkerLocation) Hostname ¶
func (_this *WorkerLocation) Hostname() string
Hostname returning attribute 'hostname' with type string (idl: USVString).
func (*WorkerLocation) Href ¶
func (_this *WorkerLocation) Href() string
Href returning attribute 'href' with type string (idl: USVString).
func (*WorkerLocation) JSValue ¶
func (_this *WorkerLocation) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*WorkerLocation) Origin ¶
func (_this *WorkerLocation) Origin() string
Origin returning attribute 'origin' with type string (idl: USVString).
func (*WorkerLocation) Pathname ¶
func (_this *WorkerLocation) Pathname() string
Pathname returning attribute 'pathname' with type string (idl: USVString).
func (*WorkerLocation) Port ¶
func (_this *WorkerLocation) Port() string
Port returning attribute 'port' with type string (idl: USVString).
func (*WorkerLocation) Protocol ¶
func (_this *WorkerLocation) Protocol() string
Protocol returning attribute 'protocol' with type string (idl: USVString).
func (*WorkerLocation) Search ¶
func (_this *WorkerLocation) Search() string
Search returning attribute 'search' with type string (idl: USVString).
func (*WorkerLocation) ToString ¶
func (_this *WorkerLocation) ToString() string
ToString is an alias for Href.
type WorkerNavigator ¶
class: WorkerNavigator
func WorkerNavigatorFromJS ¶
func WorkerNavigatorFromJS(value js.Value) *WorkerNavigator
WorkerNavigatorFromJS is casting a js.Value into WorkerNavigator.
func WorkerNavigatorFromWrapper ¶
func WorkerNavigatorFromWrapper(input core.Wrapper) *WorkerNavigator
WorkerNavigatorFromJS is casting from something that holds a js.Value into WorkerNavigator.
func (*WorkerNavigator) AppCodeName ¶
func (_this *WorkerNavigator) AppCodeName() string
AppCodeName returning attribute 'appCodeName' with type string (idl: DOMString).
func (*WorkerNavigator) AppName ¶
func (_this *WorkerNavigator) AppName() string
AppName returning attribute 'appName' with type string (idl: DOMString).
func (*WorkerNavigator) AppVersion ¶
func (_this *WorkerNavigator) AppVersion() string
AppVersion returning attribute 'appVersion' with type string (idl: DOMString).
func (*WorkerNavigator) Connection ¶
func (_this *WorkerNavigator) Connection() *netinfo.NetworkInformation
Connection returning attribute 'connection' with type netinfo.NetworkInformation (idl: NetworkInformation).
func (*WorkerNavigator) HardwareConcurrency ¶
func (_this *WorkerNavigator) HardwareConcurrency() int
HardwareConcurrency returning attribute 'hardwareConcurrency' with type int (idl: unsigned long long).
func (*WorkerNavigator) JSValue ¶
func (_this *WorkerNavigator) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*WorkerNavigator) Language ¶
func (_this *WorkerNavigator) Language() string
Language returning attribute 'language' with type string (idl: DOMString).
func (*WorkerNavigator) Languages ¶
func (_this *WorkerNavigator) Languages() *javascript.FrozenArray
Languages returning attribute 'languages' with type javascript.FrozenArray (idl: FrozenArray).
func (*WorkerNavigator) MediaCapabilities ¶
func (_this *WorkerNavigator) MediaCapabilities() *capabilities.MediaCapabilities
MediaCapabilities returning attribute 'mediaCapabilities' with type capabilities.MediaCapabilities (idl: MediaCapabilities).
func (*WorkerNavigator) OnLine ¶
func (_this *WorkerNavigator) OnLine() bool
OnLine returning attribute 'onLine' with type bool (idl: boolean).
func (*WorkerNavigator) Oscpu ¶
func (_this *WorkerNavigator) Oscpu() string
Oscpu returning attribute 'oscpu' with type string (idl: DOMString).
func (*WorkerNavigator) Permissions ¶
func (_this *WorkerNavigator) Permissions() *permissions.Permissions
Permissions returning attribute 'permissions' with type permissions.Permissions (idl: Permissions).
func (*WorkerNavigator) Platform ¶
func (_this *WorkerNavigator) Platform() string
Platform returning attribute 'platform' with type string (idl: DOMString).
func (*WorkerNavigator) Product ¶
func (_this *WorkerNavigator) Product() string
Product returning attribute 'product' with type string (idl: DOMString).
func (*WorkerNavigator) ProductSub ¶
func (_this *WorkerNavigator) ProductSub() string
ProductSub returning attribute 'productSub' with type string (idl: DOMString).
func (*WorkerNavigator) ServiceWorker ¶
func (_this *WorkerNavigator) ServiceWorker() *serviceworker.ServiceWorkerContainer
ServiceWorker returning attribute 'serviceWorker' with type serviceworker.ServiceWorkerContainer (idl: ServiceWorkerContainer).
func (*WorkerNavigator) Storage ¶
func (_this *WorkerNavigator) Storage() *storage.StorageManager
Storage returning attribute 'storage' with type storage.StorageManager (idl: StorageManager).
func (*WorkerNavigator) TaintEnabled ¶
func (_this *WorkerNavigator) TaintEnabled() (_result bool)
func (*WorkerNavigator) Usb ¶
func (_this *WorkerNavigator) Usb() *usb.USB
Usb returning attribute 'usb' with type usb.USB (idl: USB).
func (*WorkerNavigator) UserAgent ¶
func (_this *WorkerNavigator) UserAgent() string
UserAgent returning attribute 'userAgent' with type string (idl: DOMString).
func (*WorkerNavigator) Vendor ¶
func (_this *WorkerNavigator) Vendor() string
Vendor returning attribute 'vendor' with type string (idl: DOMString).
func (*WorkerNavigator) VendorSub ¶
func (_this *WorkerNavigator) VendorSub() string
VendorSub returning attribute 'vendorSub' with type string (idl: DOMString).
type WorkerOptions ¶
type WorkerOptions struct { Type htmlcommon.WorkerType Credentials fetch.RequestCredentials Name string }
dictionary: WorkerOptions
func WorkerOptionsFromJS ¶
func WorkerOptionsFromJS(value js.Value) *WorkerOptions
WorkerOptionsFromJS is allocating a new WorkerOptions object and copy all values in the value javascript object.
func (*WorkerOptions) JSValue ¶
func (_this *WorkerOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values