Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func (*Module) CallFunction ¶
this will call the given function (identified by the id) with the given payload as an object and a callback e.g. myRegisteredFunction(payloadObj, cb) the callback must be called in order to "return" from the function
func (*Module) Register ¶
registerFunction will take a function as it's first and only parameter if the parameter is not a function it will throw an error a ID (uint) is returned that represents the id of the registered function a registered function will be called with an object containing information and a callback that should be called (with an optional error) in order to "return"
Click to show internal directories.
Click to hide internal directories.