Documentation ¶
Index ¶
- Variables
- func GetInterface() js.Value
- type WorkerGlobalScope
- func (w WorkerGlobalScope) ImportsScripts(values ...string) error
- func (w WorkerGlobalScope) OnError(handler func(e event.Event)) (js.Func, error)
- func (w WorkerGlobalScope) OnLanguageChange(handler func(e event.Event)) (js.Func, error)
- func (w WorkerGlobalScope) OnOffline(handler func(e event.Event)) (js.Func, error)
- func (w WorkerGlobalScope) OnOnline(handler func(e event.Event)) (js.Func, error)
- func (w WorkerGlobalScope) WorkerGlobalScope_() WorkerGlobalScope
- type WorkerGlobalScopeFrom
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 ¶
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) OnLanguageChange ¶
func (WorkerGlobalScope) WorkerGlobalScope_ ¶
func (w WorkerGlobalScope) WorkerGlobalScope_() WorkerGlobalScope
type WorkerGlobalScopeFrom ¶
type WorkerGlobalScopeFrom interface {
WorkerGlobalScope_() WorkerGlobalScope
}
Click to show internal directories.
Click to hide internal directories.