Versions in this module Expand all Collapse all v1 v1.4.0 Mar 31, 2022 v1.3.0 Mar 21, 2022 Changes in this version + var ErrControllerNotDefined = errors.New("Controller not defined") + var ErrNotAServiceWorkerContainer = errors.New("Object is not a ServiceWorkerContainer object") + var ErrNotImplemented = errors.New("Browser not implemented ServiceWorkerContainer") + func GetInterface() js.Value + type ServiceWorkerContainer struct + func NewFromJSObject(obj js.Value) (ServiceWorkerContainer, error) + func (s ServiceWorkerContainer) Controller() (serviceworker.ServiceWorker, error) + func (s ServiceWorkerContainer) GetRegistration(clientURL string) (promise.Promise, error) + func (s ServiceWorkerContainer) OnControllerChange(handler func(e event.Event)) (js.Func, error) + func (s ServiceWorkerContainer) OnError(handler func(e event.Event)) (js.Func, error) + func (s ServiceWorkerContainer) OnMessage(handler func(e event.Event)) (js.Func, error) + func (s ServiceWorkerContainer) Ready() (promise.Promise, error) + func (s ServiceWorkerContainer) Register(url string, options ...map[string]interface{}) (promise.Promise, error) + func (s ServiceWorkerContainer) ServiceWorkerContainer_() ServiceWorkerContainer + type ServiceWorkerContainerFrom interface + ServiceWorkerContainer_ func() ServiceWorkerContainer