sugo-module-noop
NOOP module for SUGOS
This is a stub module for testing purpose. ("noop" stands for "No-Operation")
It has only few basic methods.
Installation
$ npm install sugo-module-noop --save
Usage
Register a module to actor.
#!/usr/bin/env node /** * Example usage to register module on actor * @see https://github.com/realglobe-Inc/sugo-actor */'use strict' const sugoModuleNoop = const sugoActor = const co =
Then, call the module from a remote caller.
#!/usr/bin/env node /** * Example to call from caller * @see https://github.com/realglobe-Inc/sugo-caller */'use strict' const co = const assert = const sugoCaller =
Methods
The following methods are available from remote terminals for the interface.
string
.ping(pong) -> Test the reachability of a module.
Param | Type | Description |
---|---|---|
pong | string |
Pong message to return |
boolean
.assert() -> Test if the spot fulfills system requirements
License
This software is released under the Apache-2.0 License.