Documentation ¶
Overview ¶
Package worker contains Go web-worker WASM module bridge methods
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTypeError ¶
NewTypeError creates a new type error
Types ¶
type Args ¶
Args is collection if function call arguments
type Response ¶
type Response struct { // Error is error Error string `json:"error,omitempty"` // Result is execution result Result interface{} `json:"result,omitempty"` }
Response is worker function call result
func NewErrorResponse ¶
NewErrorResponse returns a new response with error
func NewResponse ¶
NewResponse is Response constructor
type ValueUnmarshaler ¶
type ValueUnmarshaler interface { // UnmarshalValue unmarshal JS value UnmarshalValue(js.Value) error }
ValueUnmarshaler unmarshal JS value
Click to show internal directories.
Click to hide internal directories.