Documentation ¶
Index ¶
- Variables
- func GetInterface() js.Value
- type ServiceWorker
- func (s ServiceWorker) OnError(handler func(e event.Event)) (js.Func, error)
- func (s ServiceWorker) OnStateChange(handler func(e event.Event)) (js.Func, error)
- func (s ServiceWorker) ScriptURL() (string, error)
- func (s ServiceWorker) ServiceWorker_() ServiceWorker
- func (s ServiceWorker) State() (string, error)
- type ServiceWorkerFrom
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 ¶
Types ¶
type ServiceWorker ¶
type ServiceWorker struct {
eventtarget.EventTarget
}
func NewFromJSObject ¶
func NewFromJSObject(obj js.Value) (ServiceWorker, error)
func (ServiceWorker) OnStateChange ¶
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
}
Click to show internal directories.
Click to hide internal directories.