Documentation ¶
Overview ¶
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 ¶
- type Client
- type ClientType
- type FrameType
- type PromiseNilWindowClient
- func (_this *PromiseNilWindowClient) Catch(onRejected *PromiseNilWindowClientOnRejected) (_result *PromiseNilWindowClient)
- func (_this *PromiseNilWindowClient) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseNilWindowClient)
- func (_this *PromiseNilWindowClient) JSValue() js.Value
- func (_this *PromiseNilWindowClient) Then(onFulfilled *PromiseNilWindowClientOnFulfilled, ...) (_result *PromiseNilWindowClient)
- type PromiseNilWindowClientOnFulfilled
- type PromiseNilWindowClientOnFulfilledFunc
- type PromiseNilWindowClientOnRejected
- type PromiseNilWindowClientOnRejectedFunc
- type PromiseWindowClient
- func (_this *PromiseWindowClient) Catch(onRejected *PromiseWindowClientOnRejected) (_result *PromiseWindowClient)
- func (_this *PromiseWindowClient) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseWindowClient)
- func (_this *PromiseWindowClient) JSValue() js.Value
- func (_this *PromiseWindowClient) Then(onFulfilled *PromiseWindowClientOnFulfilled, ...) (_result *PromiseWindowClient)
- type PromiseWindowClientOnFulfilled
- type PromiseWindowClientOnFulfilledFunc
- type PromiseWindowClientOnRejected
- type PromiseWindowClientOnRejectedFunc
- type Union
- type WindowClient
- func (_this *WindowClient) AncestorOrigins() *javascript.FrozenArray
- func (_this *WindowClient) Focus() (_result *PromiseWindowClient)
- func (_this *WindowClient) Focused() bool
- func (_this *WindowClient) Navigate(url string) (_result *PromiseNilWindowClient)
- func (_this *WindowClient) VisibilityState() domcore.VisibilityState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
class: Client
func ClientFromJS ¶
ClientFromJS is casting a js.Wrapper into Client.
func (*Client) FrameType ¶
FrameType returning attribute 'frameType' with type FrameType (idl: FrameType).
func (*Client) PostMessage ¶
func (_this *Client) PostMessage(message interface{}, transfer []*javascript.Object)
func (*Client) Type ¶
func (_this *Client) Type() ClientType
Type returning attribute 'type' with type ClientType (idl: ClientType).
type ClientType ¶
type ClientType int
enum: ClientType
const ( WindowClientType ClientType = iota WorkerClientType AllClientType )
func ClientTypeFromJS ¶
func ClientTypeFromJS(value js.Value) ClientType
ClientTypeFromJS is converting a javascript value into a ClientType enum value.
func (*ClientType) JSValue ¶
func (this *ClientType) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (ClientType) Value ¶
func (this ClientType) Value() string
Value is converting this into javascript defined string value
type FrameType ¶
type FrameType int
enum: FrameType
func FrameTypeFromJS ¶
FrameTypeFromJS is converting a javascript value into a FrameType enum value.
type PromiseNilWindowClient ¶
type PromiseNilWindowClient struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: Promise
func PromiseNilWindowClientFromJS ¶
func PromiseNilWindowClientFromJS(value js.Wrapper) *PromiseNilWindowClient
PromiseNilWindowClientFromJS is casting a js.Wrapper into PromiseNilWindowClient.
func (*PromiseNilWindowClient) Catch ¶
func (_this *PromiseNilWindowClient) Catch(onRejected *PromiseNilWindowClientOnRejected) (_result *PromiseNilWindowClient)
func (*PromiseNilWindowClient) Finally ¶
func (_this *PromiseNilWindowClient) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseNilWindowClient)
func (*PromiseNilWindowClient) JSValue ¶
func (_this *PromiseNilWindowClient) JSValue() js.Value
func (*PromiseNilWindowClient) Then ¶
func (_this *PromiseNilWindowClient) Then(onFulfilled *PromiseNilWindowClientOnFulfilled, onRejected *PromiseNilWindowClientOnRejected) (_result *PromiseNilWindowClient)
type PromiseNilWindowClientOnFulfilled ¶
PromiseNilWindowClientOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseNilWindowClientOnFulfilledToJS ¶
func PromiseNilWindowClientOnFulfilledToJS(callback PromiseNilWindowClientOnFulfilledFunc) *PromiseNilWindowClientOnFulfilled
type PromiseNilWindowClientOnFulfilledFunc ¶
type PromiseNilWindowClientOnFulfilledFunc func(value *WindowClient)
callback: PromiseTemplateOnFulfilled
func PromiseNilWindowClientOnFulfilledFromJS ¶
func PromiseNilWindowClientOnFulfilledFromJS(_value js.Value) PromiseNilWindowClientOnFulfilledFunc
type PromiseNilWindowClientOnRejected ¶
PromiseNilWindowClientOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseNilWindowClientOnRejectedToJS ¶
func PromiseNilWindowClientOnRejectedToJS(callback PromiseNilWindowClientOnRejectedFunc) *PromiseNilWindowClientOnRejected
type PromiseNilWindowClientOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromiseNilWindowClientOnRejectedFromJS ¶
func PromiseNilWindowClientOnRejectedFromJS(_value js.Value) PromiseNilWindowClientOnRejectedFunc
type PromiseWindowClient ¶
type PromiseWindowClient struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: Promise
func PromiseWindowClientFromJS ¶
func PromiseWindowClientFromJS(value js.Wrapper) *PromiseWindowClient
PromiseWindowClientFromJS is casting a js.Wrapper into PromiseWindowClient.
func (*PromiseWindowClient) Catch ¶
func (_this *PromiseWindowClient) Catch(onRejected *PromiseWindowClientOnRejected) (_result *PromiseWindowClient)
func (*PromiseWindowClient) Finally ¶
func (_this *PromiseWindowClient) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseWindowClient)
func (*PromiseWindowClient) JSValue ¶
func (_this *PromiseWindowClient) JSValue() js.Value
func (*PromiseWindowClient) Then ¶
func (_this *PromiseWindowClient) Then(onFulfilled *PromiseWindowClientOnFulfilled, onRejected *PromiseWindowClientOnRejected) (_result *PromiseWindowClient)
type PromiseWindowClientOnFulfilled ¶
PromiseWindowClientOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseWindowClientOnFulfilledToJS ¶
func PromiseWindowClientOnFulfilledToJS(callback PromiseWindowClientOnFulfilledFunc) *PromiseWindowClientOnFulfilled
type PromiseWindowClientOnFulfilledFunc ¶
type PromiseWindowClientOnFulfilledFunc func(value *WindowClient)
callback: PromiseTemplateOnFulfilled
func PromiseWindowClientOnFulfilledFromJS ¶
func PromiseWindowClientOnFulfilledFromJS(_value js.Value) PromiseWindowClientOnFulfilledFunc
type PromiseWindowClientOnRejected ¶
PromiseWindowClientOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseWindowClientOnRejectedToJS ¶
func PromiseWindowClientOnRejectedToJS(callback PromiseWindowClientOnRejectedFunc) *PromiseWindowClientOnRejected
type PromiseWindowClientOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromiseWindowClientOnRejectedFromJS ¶
func PromiseWindowClientOnRejectedFromJS(_value js.Value) PromiseWindowClientOnRejectedFunc
type Union ¶
func UnionFromJS ¶
type WindowClient ¶
type WindowClient struct {
Client
}
class: WindowClient
func WindowClientFromJS ¶
func WindowClientFromJS(value js.Wrapper) *WindowClient
WindowClientFromJS is casting a js.Wrapper into WindowClient.
func (*WindowClient) AncestorOrigins ¶
func (_this *WindowClient) AncestorOrigins() *javascript.FrozenArray
AncestorOrigins returning attribute 'ancestorOrigins' with type javascript.FrozenArray (idl: FrozenArray).
func (*WindowClient) Focus ¶
func (_this *WindowClient) Focus() (_result *PromiseWindowClient)
func (*WindowClient) Focused ¶
func (_this *WindowClient) Focused() bool
Focused returning attribute 'focused' with type bool (idl: boolean).
func (*WindowClient) Navigate ¶
func (_this *WindowClient) Navigate(url string) (_result *PromiseNilWindowClient)
func (*WindowClient) VisibilityState ¶
func (_this *WindowClient) VisibilityState() domcore.VisibilityState
VisibilityState returning attribute 'visibilityState' with type domcore.VisibilityState (idl: VisibilityState).