webapi: github.com/gowebapi/webapi/worklets Index | Files

package worklets

import "github.com/gowebapi/webapi/worklets"

Package worklets is for running scripts in stages of the rendering pipeline independent of the main javascript execution environment.

Index

Package Files

doc.go worklets.go

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 Worklet Uses

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

class: Worklet

func WorkletFromJS Uses

func WorkletFromJS(value js.Wrapper) *Worklet

WorkletFromJS is casting a js.Wrapper into Worklet.

func (*Worklet) AddModule Uses

func (_this *Worklet) AddModule(moduleURL string, options *WorkletOptions) (_result *javascript.PromiseVoid)

func (*Worklet) JSValue Uses

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

type WorkletGlobalScope Uses

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

class: WorkletGlobalScope

func WorkletGlobalScopeFromJS Uses

func WorkletGlobalScopeFromJS(value js.Wrapper) *WorkletGlobalScope

WorkletGlobalScopeFromJS is casting a js.Wrapper into WorkletGlobalScope.

func (*WorkletGlobalScope) JSValue Uses

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

type WorkletOptions Uses

type WorkletOptions struct {
    Credentials fetch.RequestCredentials
}

dictionary: WorkletOptions

func WorkletOptionsFromJS Uses

func WorkletOptionsFromJS(value js.Wrapper) *WorkletOptions

WorkletOptionsFromJS is allocating a new WorkletOptions object and copy all values from input javascript object

func (*WorkletOptions) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

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