1. <strong id="7actg"></strong>
    2. <table id="7actg"></table>

    3. <address id="7actg"></address>
      <address id="7actg"></address>
      1. <object id="7actg"><tt id="7actg"></tt></object>

        node-eoseos 的 Node.js 開發(fā)包

        聯(lián)合創(chuàng)作 · 2023-10-01 06:43

        node-eos 是 eos 的 Node.js 客戶端開發(fā)包。

        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);
        });


        瀏覽 5
        點贊
        評論
        收藏
        分享

        手機掃一掃分享

        編輯 分享
        舉報
        評論
        圖片
        表情
        推薦
        點贊
        評論
        收藏
        分享

        手機掃一掃分享

        編輯 分享
        舉報
        1. <strong id="7actg"></strong>
        2. <table id="7actg"></table>

        3. <address id="7actg"></address>
          <address id="7actg"></address>
          1. <object id="7actg"><tt id="7actg"></tt></object>
            免费观看黄色电影 | 美女被男人操的视频 | 色色色色色色色色网 | 韩国三级中文字幕久久精品 | 高h各种场合全肉短篇男男视频 | 永久免费野外黄色电影 | 成人大香蕉 | 熟年交尾五十路视频在线播放 | 淫荡操逼视频 | 久久精品女人毛片国产 |