serviceworkercontainer

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 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 ServiceWorkerContainer")
	ErrNotAServiceWorkerContainer = errors.New("Object is not a ServiceWorkerContainer object")
	ErrControllerNotDefined       = errors.New("Controller not defined")
)

Functions

func GetInterface

func GetInterface() js.Value

GetInterface get the JS interface of serviceworkercontainer

Types

type ServiceWorkerContainer

type ServiceWorkerContainer struct {
	eventtarget.EventTarget
}

func NewFromJSObject

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

func (ServiceWorkerContainer) Controller

func (ServiceWorkerContainer) GetRegistration

func (s ServiceWorkerContainer) GetRegistration(clientURL string) (promise.Promise, error)

func (ServiceWorkerContainer) OnControllerChange

func (s ServiceWorkerContainer) OnControllerChange(handler func(e event.Event)) (js.Func, error)

func (ServiceWorkerContainer) OnError

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

func (ServiceWorkerContainer) OnMessage

func (s ServiceWorkerContainer) OnMessage(handler func(e event.Event)) (js.Func, error)

func (ServiceWorkerContainer) Ready

func (ServiceWorkerContainer) Register

func (s ServiceWorkerContainer) Register(url string, options ...map[string]interface{}) (promise.Promise, error)

func (ServiceWorkerContainer) ServiceWorkerContainer_

func (s ServiceWorkerContainer) ServiceWorkerContainer_() ServiceWorkerContainer

type ServiceWorkerContainerFrom

type ServiceWorkerContainerFrom interface {
	ServiceWorkerContainer_() ServiceWorkerContainer
}

Jump to

Keyboard shortcuts

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