├── .autod.conf.js ├── .eslintignore ├── .eslintrc ├── .github └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── .travis.yml ├── History.md ├── LICENSE ├── README.md ├── README.zh_CN.md ├── app.js ├── app └── extend │ ├── application.js │ └── context.js ├── appveyor.yml ├── config └── config.default.js ├── lib ├── base_grpc.js └── grpc_loader.js ├── package.json └── test ├── custom.test.js ├── fixtures └── apps │ ├── custom │ ├── app │ │ ├── extend │ │ │ └── application.js │ │ └── proto │ │ │ └── test.proto │ ├── config │ │ └── config.default.js │ ├── grpc_server.js │ ├── lib │ │ └── gprc_class.js │ └── package.json │ ├── example │ ├── app │ │ ├── controller │ │ │ └── grpc.js │ │ ├── proto │ │ │ └── test.proto │ │ └── router.js │ ├── config │ │ └── config.default.js │ ├── grpc_server.js │ └── package.json │ └── pkg │ ├── app │ └── proto │ │ ├── egg │ │ └── test │ │ │ ├── game.proto │ │ │ └── message.proto │ │ ├── import │ │ ├── a.proto │ │ ├── b.proto │ │ └── share.proto │ │ ├── multi.proto │ │ ├── random │ │ └── test.proto │ │ ├── share.proto │ │ └── style │ │ ├── PascalCase.proto │ │ ├── camelCase.proto │ │ ├── snake_case.proto │ │ └── style.proto │ ├── config │ └── config.default.js │ └── package.json ├── grpc.test.js ├── options.test.js ├── pkg.test.js └── stream.test.js /.autod.conf.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/.autod.conf.js -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | coverage 2 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "eslint-config-egg" 3 | } 4 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/.travis.yml -------------------------------------------------------------------------------- /History.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/History.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/README.md -------------------------------------------------------------------------------- /README.zh_CN.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/README.zh_CN.md -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/app.js -------------------------------------------------------------------------------- /app/extend/application.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/app/extend/application.js -------------------------------------------------------------------------------- /app/extend/context.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/app/extend/context.js -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/appveyor.yml -------------------------------------------------------------------------------- /config/config.default.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/config/config.default.js -------------------------------------------------------------------------------- /lib/base_grpc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/lib/base_grpc.js -------------------------------------------------------------------------------- /lib/grpc_loader.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/lib/grpc_loader.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/package.json -------------------------------------------------------------------------------- /test/custom.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/test/custom.test.js -------------------------------------------------------------------------------- /test/fixtures/apps/custom/app/extend/application.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/test/fixtures/apps/custom/app/extend/application.js -------------------------------------------------------------------------------- /test/fixtures/apps/custom/app/proto/test.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/test/fixtures/apps/custom/app/proto/test.proto -------------------------------------------------------------------------------- /test/fixtures/apps/custom/config/config.default.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/test/fixtures/apps/custom/config/config.default.js -------------------------------------------------------------------------------- /test/fixtures/apps/custom/grpc_server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/test/fixtures/apps/custom/grpc_server.js -------------------------------------------------------------------------------- /test/fixtures/apps/custom/lib/gprc_class.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/test/fixtures/apps/custom/lib/gprc_class.js -------------------------------------------------------------------------------- /test/fixtures/apps/custom/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/test/fixtures/apps/custom/package.json -------------------------------------------------------------------------------- /test/fixtures/apps/example/app/controller/grpc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/test/fixtures/apps/example/app/controller/grpc.js -------------------------------------------------------------------------------- /test/fixtures/apps/example/app/proto/test.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/test/fixtures/apps/example/app/proto/test.proto -------------------------------------------------------------------------------- /test/fixtures/apps/example/app/router.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/test/fixtures/apps/example/app/router.js -------------------------------------------------------------------------------- /test/fixtures/apps/example/config/config.default.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | exports.keys = '123456'; 4 | -------------------------------------------------------------------------------- /test/fixtures/apps/example/grpc_server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/test/fixtures/apps/example/grpc_server.js -------------------------------------------------------------------------------- /test/fixtures/apps/example/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/test/fixtures/apps/example/package.json -------------------------------------------------------------------------------- /test/fixtures/apps/pkg/app/proto/egg/test/game.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/test/fixtures/apps/pkg/app/proto/egg/test/game.proto -------------------------------------------------------------------------------- /test/fixtures/apps/pkg/app/proto/egg/test/message.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/test/fixtures/apps/pkg/app/proto/egg/test/message.proto -------------------------------------------------------------------------------- /test/fixtures/apps/pkg/app/proto/import/a.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/test/fixtures/apps/pkg/app/proto/import/a.proto -------------------------------------------------------------------------------- /test/fixtures/apps/pkg/app/proto/import/b.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/test/fixtures/apps/pkg/app/proto/import/b.proto -------------------------------------------------------------------------------- /test/fixtures/apps/pkg/app/proto/import/share.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/test/fixtures/apps/pkg/app/proto/import/share.proto -------------------------------------------------------------------------------- /test/fixtures/apps/pkg/app/proto/multi.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/test/fixtures/apps/pkg/app/proto/multi.proto -------------------------------------------------------------------------------- /test/fixtures/apps/pkg/app/proto/random/test.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/test/fixtures/apps/pkg/app/proto/random/test.proto -------------------------------------------------------------------------------- /test/fixtures/apps/pkg/app/proto/share.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/test/fixtures/apps/pkg/app/proto/share.proto -------------------------------------------------------------------------------- /test/fixtures/apps/pkg/app/proto/style/PascalCase.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package style.PascalCase; 4 | 5 | service Test { 6 | } -------------------------------------------------------------------------------- /test/fixtures/apps/pkg/app/proto/style/camelCase.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package style.camelCase; 4 | 5 | service Test { 6 | } -------------------------------------------------------------------------------- /test/fixtures/apps/pkg/app/proto/style/snake_case.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package style.snake_case; 4 | 5 | service Test { 6 | } -------------------------------------------------------------------------------- /test/fixtures/apps/pkg/app/proto/style/style.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/test/fixtures/apps/pkg/app/proto/style/style.proto -------------------------------------------------------------------------------- /test/fixtures/apps/pkg/config/config.default.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | exports.keys = '123456'; 4 | -------------------------------------------------------------------------------- /test/fixtures/apps/pkg/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/test/fixtures/apps/pkg/package.json -------------------------------------------------------------------------------- /test/grpc.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/test/grpc.test.js -------------------------------------------------------------------------------- /test/options.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/test/options.test.js -------------------------------------------------------------------------------- /test/pkg.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/test/pkg.test.js -------------------------------------------------------------------------------- /test/stream.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/egg-grpc/HEAD/test/stream.test.js --------------------------------------------------------------------------------