serviceworker

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 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 Storage")
	ErrNotAServiceWorker = errors.New("Object is not a ServiceWorker object")
)

Functions

func GetInterface

func GetInterface() js.Value

GetInterface get the JS interface of serviceworker

Types

type ServiceWorker

type ServiceWorker struct {
	eventtarget.EventTarget
}

func NewFromJSObject

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

func (ServiceWorker) OnError

func (s ServiceWorker) OnError(handler func(e event.Event)) (js.Func, error)

func (ServiceWorker) OnStateChange

func (s ServiceWorker) OnStateChange(handler func(e event.Event)) (js.Func, error)

func (ServiceWorker) ScriptURL

func (s ServiceWorker) ScriptURL() (string, error)

func (ServiceWorker) ServiceWorker_

func (s ServiceWorker) ServiceWorker_() ServiceWorker

func (ServiceWorker) State

func (s ServiceWorker) State() (string, error)

type ServiceWorkerFrom

type ServiceWorkerFrom interface {
	ServiceWorker_() ServiceWorker
}

Jump to

Keyboard shortcuts

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