node-eoseos 的 Node.js 开发包
node-eos 是 eos 的 Node.js 客户端开发包。
init eos :
var eos = require("node-eos"); eos.init({ zookeeper_ip: '192.168.0.224', zookeeper_port: 2181, long_connect: true, exclude_eos:[],//ignore eos debugging_server_ip: '', //debugging server ip use_mock: true, //controll global mock mock_config_file: __dirname + "/config_mock.json" //mock config file path });
definde a eos service
module.exports = function(eos){ function testType(){ eos.Service.call(this); this.appId = "test"; this.serviceId = "testType"; this.serviceVersion = "1.3"; } eos.util.inherits(testType,eos.Service); testType.prototype.testMap = function(map,str,successFunc,errorFunc){ var req = this._createReqPro("testMap",map,str); eos.call(req,successFunc,errorFunc); } return testType; }
call service
var test = require("./testType")(eos); new test.appService().testMap({"a":"1","b":"2"},"abc",function(data){ console.log("get result:"+JSON.stringify(data)); },function(e){ console.log("exception:"+e); });
评论
DynodeDynamoDB 的 Node.js 开发包
Dynode是Amazon'sDynamoDB的Node.js客户端开发包。示例代码:vardynode=require('dynode');//Whenusingthedefaultclientyo
DynodeDynamoDB 的 Node.js 开发包
0
python-github2Python 的开发包
python-github2 是 Python 的开发包,封装了 Github API v2 版本。
python-github2Python 的开发包
0
pytrietrie 的开发包
pytrie是一个前缀树(Trie)数据结构的Python开发包。在pytrie模块中,CharTrie和StringTrie类可以执行一个可变的映射接口。这个工具包具有以下特点:完整的可变映射实现。
pytrietrie 的开发包
0
JVOIPLIBVoIP的C++开发包
JVOIPLIB是一个面向对象的VoIP库,采用C++编写。ItisbaseduponworkdoneformythesisattheSchoolforKnowledgeTechnology(or'S
JVOIPLIBVoIP的C++开发包
0
ErlmongoMongoDB 的 Erlang 开发包
Erlmongo是一个第三方的MongoDB的Erlang语言开发包,对MongoDB的特性支持非常完整。示例代码:% -record(mydoc {name, i}).% This will wor
ErlmongoMongoDB 的 Erlang 开发包
0
MagickStudioImageMagick 的 Perl 开发包
MagickStudio 是 ImageMagick 的 Perl 开发包。
MagickStudioImageMagick 的 Perl 开发包
0