serviceworkerglobalscope

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotImplemented               = errors.New("Browser not implemented ServiceWorkerGlobalScope")
	ErrNotAServiceWorkerGlobalScope = errors.New("Object is not a ServiceWorkerGlobalScope object")
)

Functions

func GetInterface

func GetInterface() js.Value

GetInterface get the JS interface of serviceworkerregistration

Types

type ServiceWorkerGlobalScope

type ServiceWorkerGlobalScope struct {
	workerglobalscope.WorkerGlobalScope
}

func NewFromJSObject

func NewFromJSObject(obj js.Value) (ServiceWorkerGlobalScope, error)

func (ServiceWorkerGlobalScope) OnActivate

func (w ServiceWorkerGlobalScope) OnActivate(handler func(e event.Event)) (js.Func, error)

func (ServiceWorkerGlobalScope) OnContentDelete

func (w ServiceWorkerGlobalScope) OnContentDelete(handler func(e event.Event)) (js.Func, error)

func (ServiceWorkerGlobalScope) OnFetch

func (w ServiceWorkerGlobalScope) OnFetch(handler func(e event.Event)) (js.Func, error)

func (ServiceWorkerGlobalScope) OnInstall

func (w ServiceWorkerGlobalScope) OnInstall(handler func(e event.Event)) (js.Func, error)

func (ServiceWorkerGlobalScope) OnMessage

func (w ServiceWorkerGlobalScope) OnMessage(handler func(e event.Event)) (js.Func, error)

func (ServiceWorkerGlobalScope) OnPeriodicSync

func (w ServiceWorkerGlobalScope) OnPeriodicSync(handler func(e event.Event)) (js.Func, error)

func (ServiceWorkerGlobalScope) OnPush

func (w ServiceWorkerGlobalScope) OnPush(handler func(e event.Event)) (js.Func, error)

func (ServiceWorkerGlobalScope) OnPushSubscriptionChange

func (w ServiceWorkerGlobalScope) OnPushSubscriptionChange(handler func(e event.Event)) (js.Func, error)

func (ServiceWorkerGlobalScope) Registration

func (ServiceWorkerGlobalScope) ServiceWorkerGlobalScope_

func (w ServiceWorkerGlobalScope) ServiceWorkerGlobalScope_() ServiceWorkerGlobalScope

func (ServiceWorkerGlobalScope) SkipWaiting

func (w ServiceWorkerGlobalScope) SkipWaiting() (promise.Promise, error)

type WorkerGlobalScopeFrom

type WorkerGlobalScopeFrom interface {
	ServiceWorkerGlobalScope_() ServiceWorkerGlobalScope
}

Jump to

Keyboard shortcuts

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