Documentation
¶
Index ¶
- Variables
- func GetInterface() js.Value
- type ServiceWorkerContainer
- 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
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetInterface ¶
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 (s ServiceWorkerContainer) Controller() (serviceworker.ServiceWorker, error)
func (ServiceWorkerContainer) GetRegistration ¶
func (s ServiceWorkerContainer) GetRegistration(clientURL string) (promise.Promise, error)
func (ServiceWorkerContainer) OnControllerChange ¶
func (ServiceWorkerContainer) Ready ¶
func (s ServiceWorkerContainer) Ready() (promise.Promise, error)
func (ServiceWorkerContainer) ServiceWorkerContainer_ ¶
func (s ServiceWorkerContainer) ServiceWorkerContainer_() ServiceWorkerContainer
type ServiceWorkerContainerFrom ¶
type ServiceWorkerContainerFrom interface {
ServiceWorkerContainer_() ServiceWorkerContainer
}
Click to show internal directories.
Click to hide internal directories.