Documentation
¶
Index ¶
- func InstallModule()
- func JsCallbackWithArrayBuffer(fct progpAPI.JsFunction, value []byte)
- func JsCallbackWithBool(fct progpAPI.JsFunction, value bool)
- func JsCallbackWithDouble(fct progpAPI.JsFunction, value float64)
- func JsCallbackWithError(fct progpAPI.JsFunction, errMessage string)
- func JsCallbackWithString(fct progpAPI.JsFunction, value string)
- func JsCallbackWithStringBuffer(fct progpAPI.JsFunction, value string)
- func JsCallbackWithoutValues(fct progpAPI.JsFunction)
- func JsTestAllSupportedTypesCaller(callback progpAPI.JsFunction)
- func JsTestAsync(name string, callback progpAPI.JsFunction)
- func JsTestBool(value bool) bool
- func JsTestByteArray(value []byte) []byte
- func JsTestCreateResource(rc *progpAPI.SharedResourceContainer, aSimpleString string) *progpAPI.SharedResource
- func JsTestFloat32(value float32) float32
- func JsTestFloat64(value float64) float64
- func JsTestInt(value int) int
- func JsTestInt32(value int32) int32
- func JsTestInt64(value int64) int64
- func JsTestMyFunction()
- func JsTestReceiveSharedResource(sr *progpAPI.SharedResource)
- func JsTestRegisterEventReactor(rc *progpAPI.SharedResourceContainer, myFunction progpAPI.JsFunction)
- func JsTestReturnSharedResource(rc *progpAPI.SharedResourceContainer) *progpAPI.SharedResource
- func JsTestString(value string) string
- func JsTestStringArray(value []string) []string
- func JsTestStringStringCaller(callback progpAPI.JsFunction)
- func JsThrowError(value string) error
- func JsThrowErrorP1(value string) (error, string)
- func JsThrowErrorP2(value string) (string, error)
- type AllSupportedTypesCaller
- type StringStringCaller
- type TestStructA
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 JsTestByteArray ¶
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 JsTestFloat64 ¶
func JsTestInt32 ¶
func JsTestInt64 ¶
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 JsTestReturnSharedResource ¶
func JsTestReturnSharedResource(rc *progpAPI.SharedResourceContainer) *progpAPI.SharedResource
func JsTestString ¶
func JsTestStringArray ¶
func JsTestStringStringCaller ¶
func JsTestStringStringCaller(callback progpAPI.JsFunction)
func JsThrowError ¶
func JsThrowErrorP1 ¶
func JsThrowErrorP2 ¶
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 ¶
func JsTestStructPtr ¶
func JsTestStructPtr(value *TestStructA) *TestStructA
func JsTestStructRef ¶
func JsTestStructRef(value TestStructA) TestStructA
Click to show internal directories.
Click to hide internal directories.