client

package
v0.0.0-...-41cedfc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 4 Imported by: 2

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

class: Client

func ClientFromJS

func ClientFromJS(value js.Value) *Client

ClientFromJS is casting a js.Value into Client.

func ClientFromWrapper

func ClientFromWrapper(input core.Wrapper) *Client

ClientFromJS is casting from something that holds a js.Value into Client.

func (*Client) FrameType

func (_this *Client) FrameType() FrameType

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

func (*Client) Id

func (_this *Client) Id() string

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

func (*Client) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

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).

func (*Client) Url

func (_this *Client) Url() string

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

type ClientType

type ClientType int

enum: ClientType

const (
	WindowClientType ClientType = iota
	WorkerClientType
	SharedworkerClientType
	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

const (
	AuxiliaryFrameType FrameType = iota
	TopLevelFrameType
	NestedFrameType
	NoneFrameType
)

func FrameTypeFromJS

func FrameTypeFromJS(value js.Value) FrameType

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

func (*FrameType) JSValue

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

JSValue is converting this enum into a javascript object

func (FrameType) Value

func (this FrameType) Value() string

Value is converting this into javascript defined string 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.Value) *PromiseNilWindowClient

PromiseNilWindowClientFromJS is casting a js.Value into PromiseNilWindowClient.

func PromiseNilWindowClientFromWrapper

func PromiseNilWindowClientFromWrapper(input core.Wrapper) *PromiseNilWindowClient

PromiseNilWindowClientFromJS is casting from something that holds a js.Value into PromiseNilWindowClient.

func (*PromiseNilWindowClient) Catch

func (*PromiseNilWindowClient) Finally

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

func (*PromiseNilWindowClient) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*PromiseNilWindowClient) Then

type PromiseNilWindowClientOnFulfilled

type PromiseNilWindowClientOnFulfilled js.Func

PromiseNilWindowClientOnFulfilled is a javascript function type.

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

type PromiseNilWindowClientOnFulfilledFunc

type PromiseNilWindowClientOnFulfilledFunc func(value *WindowClient)

callback: PromiseTemplateOnFulfilled

func PromiseNilWindowClientOnFulfilledFromJS

func PromiseNilWindowClientOnFulfilledFromJS(_value js.Value) PromiseNilWindowClientOnFulfilledFunc

type PromiseNilWindowClientOnRejected

type PromiseNilWindowClientOnRejected js.Func

PromiseNilWindowClientOnRejected is a javascript function type.

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

type PromiseNilWindowClientOnRejectedFunc

type PromiseNilWindowClientOnRejectedFunc func(reason js.Value)

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.Value) *PromiseWindowClient

PromiseWindowClientFromJS is casting a js.Value into PromiseWindowClient.

func PromiseWindowClientFromWrapper

func PromiseWindowClientFromWrapper(input core.Wrapper) *PromiseWindowClient

PromiseWindowClientFromJS is casting from something that holds a js.Value 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

JSValue returns the js.Value or js.Null() if _this is nil

func (*PromiseWindowClient) Then

type PromiseWindowClientOnFulfilled

type PromiseWindowClientOnFulfilled js.Func

PromiseWindowClientOnFulfilled is a javascript function type.

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

type PromiseWindowClientOnFulfilledFunc

type PromiseWindowClientOnFulfilledFunc func(value *WindowClient)

callback: PromiseTemplateOnFulfilled

func PromiseWindowClientOnFulfilledFromJS

func PromiseWindowClientOnFulfilledFromJS(_value js.Value) PromiseWindowClientOnFulfilledFunc

type PromiseWindowClientOnRejected

type PromiseWindowClientOnRejected js.Func

PromiseWindowClientOnRejected is a javascript function type.

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

type PromiseWindowClientOnRejectedFunc

type PromiseWindowClientOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseWindowClientOnRejectedFromJS

func PromiseWindowClientOnRejectedFromJS(_value js.Value) PromiseWindowClientOnRejectedFunc

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

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

type WindowClient

type WindowClient struct {
	Client
}

class: WindowClient

func WindowClientFromJS

func WindowClientFromJS(value js.Value) *WindowClient

WindowClientFromJS is casting a js.Value into WindowClient.

func WindowClientFromWrapper

func WindowClientFromWrapper(input core.Wrapper) *WindowClient

WindowClientFromJS is casting from something that holds a js.Value 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).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL