├── .autod.conf.js ├── .eslintignore ├── .eslintrc ├── .github └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── .travis.yml ├── History.md ├── LICENSE ├── README.md ├── README.zh_CN.md ├── agent.js ├── app.js ├── app └── extend │ ├── agent.js │ ├── application.js │ └── application.unittest.js ├── config ├── config.default.js └── config.unittest.js ├── lib ├── base_proxy.js ├── client.js ├── mock_connection.js └── server.js ├── package.json └── test ├── custom_registry.test.js ├── fixtures └── apps │ ├── custom-registry │ ├── app │ │ ├── router.js │ │ └── rpc │ │ │ └── ProtoService.js │ ├── config │ │ ├── config.default.js │ │ └── proxy.js │ ├── lib │ │ ├── client.js │ │ └── registry.js │ ├── package.json │ └── proto │ │ └── ProtoService.proto │ ├── hardload │ ├── app │ │ ├── proxy │ │ │ └── ProtoService.js │ │ ├── router.js │ │ └── rpc │ │ │ └── ProtoService.js │ ├── config │ │ ├── config.default.js │ │ └── proxy.js │ ├── package.json │ └── proto │ │ └── ProtoService.proto │ ├── jar2proxy │ ├── app │ │ └── rpc │ │ │ └── DemoService.js │ ├── assembly │ │ ├── dubbo-demo-api-1.0-SNAPSHOT-sources.jar │ │ └── dubbo-demo-api-1.0-SNAPSHOT.jar │ ├── config │ │ ├── apiMeta.json │ │ ├── config.default.js │ │ └── proxy.js │ └── package.json │ ├── mock │ ├── assembly │ │ ├── dubbo-demo-api-1.0-SNAPSHOT-sources.jar │ │ └── dubbo-demo-api-1.0-SNAPSHOT.jar │ ├── config │ │ ├── config.default.js │ │ └── proxy.js │ └── package.json │ ├── rpcserver │ ├── app │ │ └── rpc │ │ │ ├── HelloService.js │ │ │ └── MathService.js │ ├── config │ │ └── config.default.js │ └── package.json │ ├── self-publish │ ├── app │ │ └── rpc │ │ │ └── HelloService.js │ ├── config │ │ └── config.default.js │ └── package.json │ └── sofarpc │ ├── app │ └── rpc │ │ └── ProtoService.js │ ├── config │ ├── config.default.js │ └── proxy.js │ ├── package.json │ └── proto │ └── ProtoService.proto ├── hardload.test.js ├── index.test.js ├── init.sh ├── jar2proxy.test.js ├── mock.test.js ├── self_publish.test.js └── server.test.js /.autod.conf.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/.autod.conf.js -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "eslint-config-egg" 3 | } 4 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/.travis.yml -------------------------------------------------------------------------------- /History.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/History.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/README.md -------------------------------------------------------------------------------- /README.zh_CN.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/README.zh_CN.md -------------------------------------------------------------------------------- /agent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/agent.js -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/app.js -------------------------------------------------------------------------------- /app/extend/agent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/app/extend/agent.js -------------------------------------------------------------------------------- /app/extend/application.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/app/extend/application.js -------------------------------------------------------------------------------- /app/extend/application.unittest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/app/extend/application.unittest.js -------------------------------------------------------------------------------- /config/config.default.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/config/config.default.js -------------------------------------------------------------------------------- /config/config.unittest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/config/config.unittest.js -------------------------------------------------------------------------------- /lib/base_proxy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/lib/base_proxy.js -------------------------------------------------------------------------------- /lib/client.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/lib/client.js -------------------------------------------------------------------------------- /lib/mock_connection.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/lib/mock_connection.js -------------------------------------------------------------------------------- /lib/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/lib/server.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/package.json -------------------------------------------------------------------------------- /test/custom_registry.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/custom_registry.test.js -------------------------------------------------------------------------------- /test/fixtures/apps/custom-registry/app/router.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/custom-registry/app/router.js -------------------------------------------------------------------------------- /test/fixtures/apps/custom-registry/app/rpc/ProtoService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/custom-registry/app/rpc/ProtoService.js -------------------------------------------------------------------------------- /test/fixtures/apps/custom-registry/config/config.default.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/custom-registry/config/config.default.js -------------------------------------------------------------------------------- /test/fixtures/apps/custom-registry/config/proxy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/custom-registry/config/proxy.js -------------------------------------------------------------------------------- /test/fixtures/apps/custom-registry/lib/client.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/custom-registry/lib/client.js -------------------------------------------------------------------------------- /test/fixtures/apps/custom-registry/lib/registry.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/custom-registry/lib/registry.js -------------------------------------------------------------------------------- /test/fixtures/apps/custom-registry/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "custom-registry" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/apps/custom-registry/proto/ProtoService.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/custom-registry/proto/ProtoService.proto -------------------------------------------------------------------------------- /test/fixtures/apps/hardload/app/proxy/ProtoService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/hardload/app/proxy/ProtoService.js -------------------------------------------------------------------------------- /test/fixtures/apps/hardload/app/router.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/hardload/app/router.js -------------------------------------------------------------------------------- /test/fixtures/apps/hardload/app/rpc/ProtoService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/hardload/app/rpc/ProtoService.js -------------------------------------------------------------------------------- /test/fixtures/apps/hardload/config/config.default.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/hardload/config/config.default.js -------------------------------------------------------------------------------- /test/fixtures/apps/hardload/config/proxy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/hardload/config/proxy.js -------------------------------------------------------------------------------- /test/fixtures/apps/hardload/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hardload" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/apps/hardload/proto/ProtoService.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/hardload/proto/ProtoService.proto -------------------------------------------------------------------------------- /test/fixtures/apps/jar2proxy/app/rpc/DemoService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/jar2proxy/app/rpc/DemoService.js -------------------------------------------------------------------------------- /test/fixtures/apps/jar2proxy/assembly/dubbo-demo-api-1.0-SNAPSHOT-sources.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/jar2proxy/assembly/dubbo-demo-api-1.0-SNAPSHOT-sources.jar -------------------------------------------------------------------------------- /test/fixtures/apps/jar2proxy/assembly/dubbo-demo-api-1.0-SNAPSHOT.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/jar2proxy/assembly/dubbo-demo-api-1.0-SNAPSHOT.jar -------------------------------------------------------------------------------- /test/fixtures/apps/jar2proxy/config/apiMeta.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/jar2proxy/config/apiMeta.json -------------------------------------------------------------------------------- /test/fixtures/apps/jar2proxy/config/config.default.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/jar2proxy/config/config.default.js -------------------------------------------------------------------------------- /test/fixtures/apps/jar2proxy/config/proxy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/jar2proxy/config/proxy.js -------------------------------------------------------------------------------- /test/fixtures/apps/jar2proxy/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jar2proxy" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/apps/mock/assembly/dubbo-demo-api-1.0-SNAPSHOT-sources.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/mock/assembly/dubbo-demo-api-1.0-SNAPSHOT-sources.jar -------------------------------------------------------------------------------- /test/fixtures/apps/mock/assembly/dubbo-demo-api-1.0-SNAPSHOT.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/mock/assembly/dubbo-demo-api-1.0-SNAPSHOT.jar -------------------------------------------------------------------------------- /test/fixtures/apps/mock/config/config.default.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | exports.rpc = {}; 4 | -------------------------------------------------------------------------------- /test/fixtures/apps/mock/config/proxy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/mock/config/proxy.js -------------------------------------------------------------------------------- /test/fixtures/apps/mock/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mock" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/apps/rpcserver/app/rpc/HelloService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/rpcserver/app/rpc/HelloService.js -------------------------------------------------------------------------------- /test/fixtures/apps/rpcserver/app/rpc/MathService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/rpcserver/app/rpc/MathService.js -------------------------------------------------------------------------------- /test/fixtures/apps/rpcserver/config/config.default.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/rpcserver/config/config.default.js -------------------------------------------------------------------------------- /test/fixtures/apps/rpcserver/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "rpcserver" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/apps/self-publish/app/rpc/HelloService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/self-publish/app/rpc/HelloService.js -------------------------------------------------------------------------------- /test/fixtures/apps/self-publish/config/config.default.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/self-publish/config/config.default.js -------------------------------------------------------------------------------- /test/fixtures/apps/self-publish/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "self-publish" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/apps/sofarpc/app/rpc/ProtoService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/sofarpc/app/rpc/ProtoService.js -------------------------------------------------------------------------------- /test/fixtures/apps/sofarpc/config/config.default.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/sofarpc/config/config.default.js -------------------------------------------------------------------------------- /test/fixtures/apps/sofarpc/config/proxy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/sofarpc/config/proxy.js -------------------------------------------------------------------------------- /test/fixtures/apps/sofarpc/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sofarpc" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/apps/sofarpc/proto/ProtoService.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/fixtures/apps/sofarpc/proto/ProtoService.proto -------------------------------------------------------------------------------- /test/hardload.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/hardload.test.js -------------------------------------------------------------------------------- /test/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/index.test.js -------------------------------------------------------------------------------- /test/init.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/init.sh -------------------------------------------------------------------------------- /test/jar2proxy.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/jar2proxy.test.js -------------------------------------------------------------------------------- /test/mock.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/mock.test.js -------------------------------------------------------------------------------- /test/self_publish.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/self_publish.test.js -------------------------------------------------------------------------------- /test/server.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc/HEAD/test/server.test.js --------------------------------------------------------------------------------