webapi: github.com/gowebapi/webapi/serviceworker/client Index | Files

package client

import "github.com/gowebapi/webapi/serviceworker/client"

Package client is to enables applications to take advantage of persistent background processing, including hooks to enable bootstrapping of web applications while offline. This is the client types part

Index

Package Files

client.go doc.go

type Client Uses

type Client struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Client

func ClientFromJS Uses

func ClientFromJS(value js.Wrapper) *Client

ClientFromJS is casting a js.Wrapper into Client.

func (*Client) FrameType Uses

func (_this *Client) FrameType() FrameType

FrameType returning attribute 'frameType' with type FrameType (idl: FrameType).

func (*Client) Id Uses

func (_this *Client) Id() string

Id returning attribute 'id' with type string (idl: DOMString).

func (*Client) JSValue Uses

func (_this *Client) JSValue() js.Value

func (*Client) PostMessage Uses

func (_this *Client) PostMessage(message interface{}, transfer []*javascript.Object)

func (*Client) Type Uses

func (_this *Client) Type() ClientType

Type returning attribute 'type' with type ClientType (idl: ClientType).

func (*Client) Url Uses

func (_this *Client) Url() string

Url returning attribute 'url' with type string (idl: USVString).

type ClientType Uses

type ClientType int

enum: ClientType

const (
    WindowClientType ClientType = iota
    WorkerClientType
    SharedworkerClientType
    AllClientType
)

func ClientTypeFromJS Uses

func ClientTypeFromJS(value js.Value) ClientType

ClientTypeFromJS is converting a javascript value into a ClientType enum value.

func (*ClientType) JSValue Uses

func (this *ClientType) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (ClientType) Value Uses

func (this ClientType) Value() string

Value is converting this into javascript defined string value

type FrameType Uses

type FrameType int

enum: FrameType

const (
    AuxiliaryFrameType FrameType = iota
    TopLevelFrameType
    NestedFrameType
    NoneFrameType
)

func FrameTypeFromJS Uses

func FrameTypeFromJS(value js.Value) FrameType

FrameTypeFromJS is converting a javascript value into a FrameType enum value.

func (*FrameType) JSValue Uses

func (this *FrameType) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (FrameType) Value Uses

func (this FrameType) Value() string

Value is converting this into javascript defined string value

type PromiseNilWindowClient Uses

type PromiseNilWindowClient struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Promise

func PromiseNilWindowClientFromJS Uses

func PromiseNilWindowClientFromJS(value js.Wrapper) *PromiseNilWindowClient

PromiseNilWindowClientFromJS is casting a js.Wrapper into PromiseNilWindowClient.

func (*PromiseNilWindowClient) Catch Uses

func (_this *PromiseNilWindowClient) Catch(onRejected *PromiseNilWindowClientOnRejected) (_result *PromiseNilWindowClient)

func (*PromiseNilWindowClient) Finally Uses

func (_this *PromiseNilWindowClient) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseNilWindowClient)

func (*PromiseNilWindowClient) JSValue Uses

func (_this *PromiseNilWindowClient) JSValue() js.Value

func (*PromiseNilWindowClient) Then Uses

func (_this *PromiseNilWindowClient) Then(onFulfilled *PromiseNilWindowClientOnFulfilled, onRejected *PromiseNilWindowClientOnRejected) (_result *PromiseNilWindowClient)

type PromiseNilWindowClientOnFulfilled Uses

type PromiseNilWindowClientOnFulfilled js.Func

PromiseNilWindowClientOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseNilWindowClientOnFulfilledToJS Uses

func PromiseNilWindowClientOnFulfilledToJS(callback PromiseNilWindowClientOnFulfilledFunc) *PromiseNilWindowClientOnFulfilled

type PromiseNilWindowClientOnFulfilledFunc Uses

type PromiseNilWindowClientOnFulfilledFunc func(value *WindowClient)

callback: PromiseTemplateOnFulfilled

func PromiseNilWindowClientOnFulfilledFromJS Uses

func PromiseNilWindowClientOnFulfilledFromJS(_value js.Value) PromiseNilWindowClientOnFulfilledFunc

type PromiseNilWindowClientOnRejected Uses

type PromiseNilWindowClientOnRejected js.Func

PromiseNilWindowClientOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseNilWindowClientOnRejectedToJS Uses

func PromiseNilWindowClientOnRejectedToJS(callback PromiseNilWindowClientOnRejectedFunc) *PromiseNilWindowClientOnRejected

type PromiseNilWindowClientOnRejectedFunc Uses

type PromiseNilWindowClientOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseNilWindowClientOnRejectedFromJS Uses

func PromiseNilWindowClientOnRejectedFromJS(_value js.Value) PromiseNilWindowClientOnRejectedFunc

type PromiseWindowClient Uses

type PromiseWindowClient struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Promise

func PromiseWindowClientFromJS Uses

func PromiseWindowClientFromJS(value js.Wrapper) *PromiseWindowClient

PromiseWindowClientFromJS is casting a js.Wrapper into PromiseWindowClient.

func (*PromiseWindowClient) Catch Uses

func (_this *PromiseWindowClient) Catch(onRejected *PromiseWindowClientOnRejected) (_result *PromiseWindowClient)

func (*PromiseWindowClient) Finally Uses

func (_this *PromiseWindowClient) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseWindowClient)

func (*PromiseWindowClient) JSValue Uses

func (_this *PromiseWindowClient) JSValue() js.Value

func (*PromiseWindowClient) Then Uses

func (_this *PromiseWindowClient) Then(onFulfilled *PromiseWindowClientOnFulfilled, onRejected *PromiseWindowClientOnRejected) (_result *PromiseWindowClient)

type PromiseWindowClientOnFulfilled Uses

type PromiseWindowClientOnFulfilled js.Func

PromiseWindowClientOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseWindowClientOnFulfilledToJS Uses

func PromiseWindowClientOnFulfilledToJS(callback PromiseWindowClientOnFulfilledFunc) *PromiseWindowClientOnFulfilled

type PromiseWindowClientOnFulfilledFunc Uses

type PromiseWindowClientOnFulfilledFunc func(value *WindowClient)

callback: PromiseTemplateOnFulfilled

func PromiseWindowClientOnFulfilledFromJS Uses

func PromiseWindowClientOnFulfilledFromJS(_value js.Value) PromiseWindowClientOnFulfilledFunc

type PromiseWindowClientOnRejected Uses

type PromiseWindowClientOnRejected js.Func

PromiseWindowClientOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseWindowClientOnRejectedToJS Uses

func PromiseWindowClientOnRejectedToJS(callback PromiseWindowClientOnRejectedFunc) *PromiseWindowClientOnRejected

type PromiseWindowClientOnRejectedFunc Uses

type PromiseWindowClientOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseWindowClientOnRejectedFromJS Uses

func PromiseWindowClientOnRejectedFromJS(_value js.Value) PromiseWindowClientOnRejectedFunc

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

func (u *Union) JSValue() js.Value

type WindowClient Uses

type WindowClient struct {
    Client
}

class: WindowClient

func WindowClientFromJS Uses

func WindowClientFromJS(value js.Wrapper) *WindowClient

WindowClientFromJS is casting a js.Wrapper into WindowClient.

func (*WindowClient) AncestorOrigins Uses

func (_this *WindowClient) AncestorOrigins() *javascript.FrozenArray

AncestorOrigins returning attribute 'ancestorOrigins' with type javascript.FrozenArray (idl: FrozenArray).

func (*WindowClient) Focus Uses

func (_this *WindowClient) Focus() (_result *PromiseWindowClient)

func (*WindowClient) Focused Uses

func (_this *WindowClient) Focused() bool

Focused returning attribute 'focused' with type bool (idl: boolean).

func (*WindowClient) Navigate Uses

func (_this *WindowClient) Navigate(url string) (_result *PromiseNilWindowClient)

func (*WindowClient) VisibilityState Uses

func (_this *WindowClient) VisibilityState() domcore.VisibilityState

VisibilityState returning attribute 'visibilityState' with type domcore.VisibilityState (idl: VisibilityState).

Package client imports 3 packages (graph) and is imported by 2 packages. Updated 2019-09-19. Refresh now. Tools for package owners.