├── .eslintignore ├── .eslintrc ├── .github └── workflows │ ├── nodejs.yml │ └── release.yml ├── .gitignore ├── CHANGELOG.md ├── History.md ├── LICENSE ├── README.md ├── bin └── egg-rpc-generator ├── lib ├── analyzer │ ├── index.js │ ├── interface.js │ ├── typedef.js │ └── types.js ├── config.js ├── handlebars.js ├── index.js ├── plugin │ ├── jar2proxy.js │ ├── jsdoc2jar.js │ └── protobuf.js ├── pom_generator.js ├── tpl │ ├── NodeTRException.java.tpl │ ├── class.java.tpl │ ├── interface.java.tpl │ ├── pb_proxy.js.tpl │ ├── pom.xml.tpl │ └── proxy.js.tpl └── utils.js ├── package.json └── test ├── custom_plugin.js ├── exception.test.js ├── fixtures ├── apps │ ├── custom │ │ ├── app │ │ │ ├── proxy │ │ │ │ └── CustomService.js │ │ │ └── proxy_class │ │ │ │ └── index.js │ │ ├── config │ │ │ ├── pb_proxy.js.tpl │ │ │ └── proxy.js │ │ ├── package.json │ │ ├── proto │ │ │ └── ProtoService.proto │ │ └── run │ │ │ ├── foo.bar │ │ │ └── proto.json │ ├── jar2proxy │ │ ├── assembly │ │ │ ├── dubbo-demo-api-1.0-SNAPSHOT-sources.jar │ │ │ ├── dubbo-demo-api-1.0-SNAPSHOT.jar │ │ │ ├── jar2proxy-facade-1.0.0-sources.jar │ │ │ └── jar2proxy-facade-1.0.0.jar │ │ ├── config │ │ │ └── proxy.js │ │ ├── package.json │ │ └── run │ │ │ └── proto.json │ ├── keepCase │ │ ├── config │ │ │ ├── config.js │ │ │ └── proxy.js │ │ ├── package.json │ │ └── proto │ │ │ └── ProtoService.proto │ ├── rpc-server │ │ ├── app │ │ │ └── rpc │ │ │ │ ├── FooService.js │ │ │ │ └── HelloService.js │ │ ├── config │ │ │ ├── apiMeta.json │ │ │ └── config.js │ │ ├── package.json │ │ └── run │ │ │ └── proto.json │ └── rpc │ │ ├── config │ │ └── proxy.js │ │ ├── package.json │ │ └── proto │ │ └── ProtoService.proto ├── expect │ ├── CustomService.js │ ├── ProtoService.js │ ├── keep_case_proto.json │ ├── rpc-server │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── com │ │ │ └── eggjs │ │ │ ├── FooService.java │ │ │ ├── NodeTRException.java │ │ │ └── x │ │ │ └── common │ │ │ ├── GenericResult.java │ │ │ ├── HelloError.java │ │ │ ├── HelloResponse.java │ │ │ ├── HelloService.java │ │ │ ├── NodeTRException.java │ │ │ ├── Request.java │ │ │ ├── Response.java │ │ │ └── Sub.java │ ├── userConsultFacade.js │ └── userService.js └── xxx │ ├── xxx.js │ └── yyy.js ├── index.test.js ├── jar2proxy.test.js └── jsdoc2jar.test.js /.eslintignore: -------------------------------------------------------------------------------- 1 | test/fixtures 2 | coverage 3 | examples/**/app/public 4 | logs 5 | run 6 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "eslint-config-egg" 3 | } 4 | -------------------------------------------------------------------------------- /.github/workflows/nodejs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/.github/workflows/nodejs.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /History.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/History.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/README.md -------------------------------------------------------------------------------- /bin/egg-rpc-generator: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/bin/egg-rpc-generator -------------------------------------------------------------------------------- /lib/analyzer/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/lib/analyzer/index.js -------------------------------------------------------------------------------- /lib/analyzer/interface.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/lib/analyzer/interface.js -------------------------------------------------------------------------------- /lib/analyzer/typedef.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/lib/analyzer/typedef.js -------------------------------------------------------------------------------- /lib/analyzer/types.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/lib/analyzer/types.js -------------------------------------------------------------------------------- /lib/config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/lib/config.js -------------------------------------------------------------------------------- /lib/handlebars.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/lib/handlebars.js -------------------------------------------------------------------------------- /lib/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/lib/index.js -------------------------------------------------------------------------------- /lib/plugin/jar2proxy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/lib/plugin/jar2proxy.js -------------------------------------------------------------------------------- /lib/plugin/jsdoc2jar.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/lib/plugin/jsdoc2jar.js -------------------------------------------------------------------------------- /lib/plugin/protobuf.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/lib/plugin/protobuf.js -------------------------------------------------------------------------------- /lib/pom_generator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/lib/pom_generator.js -------------------------------------------------------------------------------- /lib/tpl/NodeTRException.java.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/lib/tpl/NodeTRException.java.tpl -------------------------------------------------------------------------------- /lib/tpl/class.java.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/lib/tpl/class.java.tpl -------------------------------------------------------------------------------- /lib/tpl/interface.java.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/lib/tpl/interface.java.tpl -------------------------------------------------------------------------------- /lib/tpl/pb_proxy.js.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/lib/tpl/pb_proxy.js.tpl -------------------------------------------------------------------------------- /lib/tpl/pom.xml.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/lib/tpl/pom.xml.tpl -------------------------------------------------------------------------------- /lib/tpl/proxy.js.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/lib/tpl/proxy.js.tpl -------------------------------------------------------------------------------- /lib/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/lib/utils.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/package.json -------------------------------------------------------------------------------- /test/custom_plugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/custom_plugin.js -------------------------------------------------------------------------------- /test/exception.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/exception.test.js -------------------------------------------------------------------------------- /test/fixtures/apps/custom/app/proxy/CustomService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/apps/custom/app/proxy/CustomService.js -------------------------------------------------------------------------------- /test/fixtures/apps/custom/app/proxy_class/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/apps/custom/app/proxy_class/index.js -------------------------------------------------------------------------------- /test/fixtures/apps/custom/config/pb_proxy.js.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/apps/custom/config/pb_proxy.js.tpl -------------------------------------------------------------------------------- /test/fixtures/apps/custom/config/proxy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/apps/custom/config/proxy.js -------------------------------------------------------------------------------- /test/fixtures/apps/custom/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "custom" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/apps/custom/proto/ProtoService.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/apps/custom/proto/ProtoService.proto -------------------------------------------------------------------------------- /test/fixtures/apps/custom/run/foo.bar: -------------------------------------------------------------------------------- 1 | hello -------------------------------------------------------------------------------- /test/fixtures/apps/custom/run/proto.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/apps/custom/run/proto.json -------------------------------------------------------------------------------- /test/fixtures/apps/jar2proxy/assembly/dubbo-demo-api-1.0-SNAPSHOT-sources.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/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-generator/HEAD/test/fixtures/apps/jar2proxy/assembly/dubbo-demo-api-1.0-SNAPSHOT.jar -------------------------------------------------------------------------------- /test/fixtures/apps/jar2proxy/assembly/jar2proxy-facade-1.0.0-sources.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/apps/jar2proxy/assembly/jar2proxy-facade-1.0.0-sources.jar -------------------------------------------------------------------------------- /test/fixtures/apps/jar2proxy/assembly/jar2proxy-facade-1.0.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/apps/jar2proxy/assembly/jar2proxy-facade-1.0.0.jar -------------------------------------------------------------------------------- /test/fixtures/apps/jar2proxy/config/proxy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/apps/jar2proxy/config/proxy.js -------------------------------------------------------------------------------- /test/fixtures/apps/jar2proxy/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "custom" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/apps/jar2proxy/run/proto.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /test/fixtures/apps/keepCase/config/config.js: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/fixtures/apps/keepCase/config/proxy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/apps/keepCase/config/proxy.js -------------------------------------------------------------------------------- /test/fixtures/apps/keepCase/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "keepCase" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/apps/keepCase/proto/ProtoService.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/apps/keepCase/proto/ProtoService.proto -------------------------------------------------------------------------------- /test/fixtures/apps/rpc-server/app/rpc/FooService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/apps/rpc-server/app/rpc/FooService.js -------------------------------------------------------------------------------- /test/fixtures/apps/rpc-server/app/rpc/HelloService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/apps/rpc-server/app/rpc/HelloService.js -------------------------------------------------------------------------------- /test/fixtures/apps/rpc-server/config/apiMeta.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/apps/rpc-server/config/apiMeta.json -------------------------------------------------------------------------------- /test/fixtures/apps/rpc-server/config/config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/apps/rpc-server/config/config.js -------------------------------------------------------------------------------- /test/fixtures/apps/rpc-server/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "rpc-server" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/apps/rpc-server/run/proto.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /test/fixtures/apps/rpc/config/proxy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/apps/rpc/config/proxy.js -------------------------------------------------------------------------------- /test/fixtures/apps/rpc/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "rpc" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/apps/rpc/proto/ProtoService.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/apps/rpc/proto/ProtoService.proto -------------------------------------------------------------------------------- /test/fixtures/expect/CustomService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/expect/CustomService.js -------------------------------------------------------------------------------- /test/fixtures/expect/ProtoService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/expect/ProtoService.js -------------------------------------------------------------------------------- /test/fixtures/expect/keep_case_proto.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/expect/keep_case_proto.json -------------------------------------------------------------------------------- /test/fixtures/expect/rpc-server/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/expect/rpc-server/pom.xml -------------------------------------------------------------------------------- /test/fixtures/expect/rpc-server/src/main/java/com/eggjs/FooService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/expect/rpc-server/src/main/java/com/eggjs/FooService.java -------------------------------------------------------------------------------- /test/fixtures/expect/rpc-server/src/main/java/com/eggjs/NodeTRException.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/expect/rpc-server/src/main/java/com/eggjs/NodeTRException.java -------------------------------------------------------------------------------- /test/fixtures/expect/rpc-server/src/main/java/com/eggjs/x/common/GenericResult.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/expect/rpc-server/src/main/java/com/eggjs/x/common/GenericResult.java -------------------------------------------------------------------------------- /test/fixtures/expect/rpc-server/src/main/java/com/eggjs/x/common/HelloError.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/expect/rpc-server/src/main/java/com/eggjs/x/common/HelloError.java -------------------------------------------------------------------------------- /test/fixtures/expect/rpc-server/src/main/java/com/eggjs/x/common/HelloResponse.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/expect/rpc-server/src/main/java/com/eggjs/x/common/HelloResponse.java -------------------------------------------------------------------------------- /test/fixtures/expect/rpc-server/src/main/java/com/eggjs/x/common/HelloService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/expect/rpc-server/src/main/java/com/eggjs/x/common/HelloService.java -------------------------------------------------------------------------------- /test/fixtures/expect/rpc-server/src/main/java/com/eggjs/x/common/NodeTRException.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/expect/rpc-server/src/main/java/com/eggjs/x/common/NodeTRException.java -------------------------------------------------------------------------------- /test/fixtures/expect/rpc-server/src/main/java/com/eggjs/x/common/Request.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/expect/rpc-server/src/main/java/com/eggjs/x/common/Request.java -------------------------------------------------------------------------------- /test/fixtures/expect/rpc-server/src/main/java/com/eggjs/x/common/Response.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/expect/rpc-server/src/main/java/com/eggjs/x/common/Response.java -------------------------------------------------------------------------------- /test/fixtures/expect/rpc-server/src/main/java/com/eggjs/x/common/Sub.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/expect/rpc-server/src/main/java/com/eggjs/x/common/Sub.java -------------------------------------------------------------------------------- /test/fixtures/expect/userConsultFacade.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/expect/userConsultFacade.js -------------------------------------------------------------------------------- /test/fixtures/expect/userService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/fixtures/expect/userService.js -------------------------------------------------------------------------------- /test/fixtures/xxx/xxx.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/xxx/yyy.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/index.test.js -------------------------------------------------------------------------------- /test/jar2proxy.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/jar2proxy.test.js -------------------------------------------------------------------------------- /test/jsdoc2jar.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-rpc-generator/HEAD/test/jsdoc2jar.test.js --------------------------------------------------------------------------------