modSamples

package
v2.0.0-...-6daec5c Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallModule

func InstallModule()

func JsCallbackWithArrayBuffer

func JsCallbackWithArrayBuffer(fct progpAPI.JsFunction, value []byte)

func JsCallbackWithBool

func JsCallbackWithBool(fct progpAPI.JsFunction, value bool)

func JsCallbackWithDouble

func JsCallbackWithDouble(fct progpAPI.JsFunction, value float64)

func JsCallbackWithError

func JsCallbackWithError(fct progpAPI.JsFunction, errMessage string)

func JsCallbackWithString

func JsCallbackWithString(fct progpAPI.JsFunction, value string)

func JsCallbackWithStringBuffer

func JsCallbackWithStringBuffer(fct progpAPI.JsFunction, value string)

func JsCallbackWithoutValues

func JsCallbackWithoutValues(fct progpAPI.JsFunction)

func JsTestAllSupportedTypesCaller

func JsTestAllSupportedTypesCaller(callback progpAPI.JsFunction)

func JsTestAsync

func JsTestAsync(name string, callback progpAPI.JsFunction)

func JsTestBool

func JsTestBool(value bool) bool

func JsTestByteArray

func JsTestByteArray(value []byte) []byte

func JsTestCreateResource

func JsTestCreateResource(rc *progpAPI.SharedResourceContainer, aSimpleString string) *progpAPI.SharedResource

JsTestCreateResource create a simple resource. It will help us test the auto-disposing mechanism.

func JsTestFloat32

func JsTestFloat32(value float32) float32

func JsTestFloat64

func JsTestFloat64(value float64) float64

func JsTestInt

func JsTestInt(value int) int

func JsTestInt32

func JsTestInt32(value int32) int32

func JsTestInt64

func JsTestInt64(value int64) int64

func JsTestMyFunction

func JsTestMyFunction()

func JsTestReceiveSharedResource

func JsTestReceiveSharedResource(sr *progpAPI.SharedResource)

func JsTestRegisterEventReactor

func JsTestRegisterEventReactor(rc *progpAPI.SharedResourceContainer, myFunction progpAPI.JsFunction)

JsTestRegisterEventReactor register the function reacting to our event. Once done its start emitting our event every 2 secondes.

func JsTestString

func JsTestString(value string) string

func JsTestStringArray

func JsTestStringArray(value []string) []string

func JsTestStringStringCaller

func JsTestStringStringCaller(callback progpAPI.JsFunction)

func JsThrowError

func JsThrowError(value string) error

func JsThrowErrorP1

func JsThrowErrorP1(value string) (error, string)

func JsThrowErrorP2

func JsThrowErrorP2(value string) (string, error)

Types

type AllSupportedTypesCaller

type AllSupportedTypesCaller interface {
	Call(js progpAPI.JsFunction, testString string, testBool bool, testFloat64 float64, testArrayBuffer []byte, testStringBuffer progpAPI.StringBuffer)
}

type StringStringCaller

type StringStringCaller interface {
	Call(js progpAPI.JsFunction, param1 string, param2 string)
}

StringStringCaller is the interface used to build a javascript caller able to call function requiring two string as parameters.

type TestStructA

type TestStructA struct {
	Name     string
	Forename string
}

func JsTestStructPtr

func JsTestStructPtr(value *TestStructA) *TestStructA

func JsTestStructRef

func JsTestStructRef(value TestStructA) TestStructA

Jump to

Keyboard shortcuts

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