workerglobalscope

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func GetInterface

func GetInterface() js.Value

GetInterface get the JS interface of serviceworkerregistration

Types

type WorkerGlobalScope

type WorkerGlobalScope struct {
	eventtarget.EventTarget
}

func NewFromJSObject

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

func (WorkerGlobalScope) ImportsScripts

func (w WorkerGlobalScope) ImportsScripts(values ...string) error

func (WorkerGlobalScope) OnError

func (w WorkerGlobalScope) OnError(handler func(e event.Event)) (js.Func, error)

func (WorkerGlobalScope) OnLanguageChange

func (w WorkerGlobalScope) OnLanguageChange(handler func(e event.Event)) (js.Func, error)

func (WorkerGlobalScope) OnOffline

func (w WorkerGlobalScope) OnOffline(handler func(e event.Event)) (js.Func, error)

func (WorkerGlobalScope) OnOnline

func (w WorkerGlobalScope) OnOnline(handler func(e event.Event)) (js.Func, error)

func (WorkerGlobalScope) WorkerGlobalScope_

func (w WorkerGlobalScope) WorkerGlobalScope_() WorkerGlobalScope

type WorkerGlobalScopeFrom

type WorkerGlobalScopeFrom interface {
	WorkerGlobalScope_() WorkerGlobalScope
}

Jump to

Keyboard shortcuts

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