Documentation ¶
Index ¶
- Variables
- func GetInterface() js.Value
- type ServiceWorkerGlobalScope
- func (w ServiceWorkerGlobalScope) OnActivate(handler func(e event.Event)) (js.Func, error)
- func (w ServiceWorkerGlobalScope) OnContentDelete(handler func(e event.Event)) (js.Func, error)
- func (w ServiceWorkerGlobalScope) OnFetch(handler func(e event.Event)) (js.Func, error)
- func (w ServiceWorkerGlobalScope) OnInstall(handler func(e event.Event)) (js.Func, error)
- func (w ServiceWorkerGlobalScope) OnMessage(handler func(e event.Event)) (js.Func, error)
- func (w ServiceWorkerGlobalScope) OnPeriodicSync(handler func(e event.Event)) (js.Func, error)
- func (w ServiceWorkerGlobalScope) OnPush(handler func(e event.Event)) (js.Func, error)
- func (w ServiceWorkerGlobalScope) OnPushSubscriptionChange(handler func(e event.Event)) (js.Func, error)
- func (w ServiceWorkerGlobalScope) Registration() (serviceworkerregistration.ServiceWorkerRegistration, error)
- func (w ServiceWorkerGlobalScope) ServiceWorkerGlobalScope_() ServiceWorkerGlobalScope
- func (w ServiceWorkerGlobalScope) SkipWaiting() (promise.Promise, error)
- type WorkerGlobalScopeFrom
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 ¶
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 (ServiceWorkerGlobalScope) OnContentDelete ¶
func (ServiceWorkerGlobalScope) OnPeriodicSync ¶
func (ServiceWorkerGlobalScope) OnPushSubscriptionChange ¶
func (ServiceWorkerGlobalScope) Registration ¶
func (w ServiceWorkerGlobalScope) Registration() (serviceworkerregistration.ServiceWorkerRegistration, error)
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
}
Click to show internal directories.
Click to hide internal directories.