modify comment name

This commit is contained in:
zhuyasen 2023-11-04 16:23:24 +08:00
parent 4a21398c61
commit 07e9f65581
22 changed files with 75 additions and 73 deletions

View File

@ -75,7 +75,7 @@ docs: mod fmt
.PHONY: proto
# generate *.go and template code by proto files, if you do not refer to the proto file, the default is all the proto files in the api directory. you can specify the proto file, multiple files are separated by commas, e.g. make proto FILES=api/user/v1/user.proto. only for ⓶ Microservices created based on sql, ⓷ Web services created based on protobuf, ⓸ Microservices created based on protobuf, ⓹ RPC gateway service created based on protobuf
# generate *.go and template code by proto files, if you do not refer to the proto file, the default is all the proto files in the api directory. you can specify the proto file, multiple files are separated by commas, e.g. make proto FILES=api/user/v1/user.proto. only for ⓶ Microservices created based on sql, ⓷ Web services created based on protobuf, ⓸ Microservices created based on protobuf, ⓹ grpc gateway service created based on protobuf
proto: mod fmt
@bash scripts/protoc.sh $(FILES)
@ -163,7 +163,7 @@ deploy-k8s:
.PHONY: image-build-rpc-test
# build rpc test image for remote repositories, e.g. make image-build-rpc-test REPO_HOST=addr TAG=latest
# build grpc test image for remote repositories, e.g. make image-build-rpc-test REPO_HOST=addr TAG=latest
image-build-rpc-test:
@bash scripts/image-rpc-test.sh $(REPO_HOST) $(TAG)
@ -175,7 +175,7 @@ patch:
.PHONY: copy-proto
# copy proto file from the rpc server directory, multiple directories separated by commas. e.g. make copy-proto SERVER=yourServerDir
# copy proto file from the grpc server directory, multiple directories separated by commas. e.g. make copy-proto SERVER=yourServerDir
copy-proto:
@sponge patch copy-proto --server-dir=$(SERVER)

View File

@ -64,7 +64,7 @@ Egg model profiling diagram for `⓷Web services created based on protobuf`:
<img width="1200px" src="https://raw.githubusercontent.com/zhufuyi/sponge_examples/main/assets/en_web-http-pb-anatomy.png">
</p>
This is the egg model for web service code, and there are egg models for microservice (gRPC) code, and rpc gateway service code described in [sponge documentation](https://go-sponge.com/learn-about-sponge?id=%f0%9f%8f%b7project-code-egg-model).
This is the egg model for web service code, and there are egg models for microservice (grpc) code, and grpc gateway service code described in [sponge documentation](https://go-sponge.com/learn-about-sponge?id=%f0%9f%8f%b7project-code-egg-model).
<br>

View File

@ -1,4 +1,4 @@
// Package generate is to generate code, including model, cache, dao, handler, http, service, rpc, rpc-gw, rpc-cli code.
// Package generate is to generate code, including model, cache, dao, handler, http, service, grpc, grpc-gw, grpc-cli code.
package generate
import (

View File

@ -10,27 +10,27 @@ import (
"github.com/spf13/cobra"
)
// RPCConnectionCommand generate rpc connection code
// RPCConnectionCommand generate grpc connection code
func RPCConnectionCommand() *cobra.Command {
var (
moduleName string // module name for go.mod
outPath string // output directory
rpcServerNames string // rpc service names
rpcServerNames string // grpc service names
)
cmd := &cobra.Command{
Use: "rpc-conn",
Short: "Generate rpc connection code",
Long: `generate rpc connection code.
Short: "Generate grpc connection code",
Long: `generate grpc connection code.
Examples:
# generate rpc connection code
# generate grpc connection code
sponge micro rpc-conn --module-name=yourModuleName --rpc-server-name=user
# generate rpc connection code with multiple names.
# generate grpc connection code with multiple names.
sponge micro rpc-conn --module-name=yourModuleName --rpc-server-name=name1,name2
# generate rpc connection code and specify the server directory, Note: code generation will be canceled when the latest generated file already exists.
# generate grpc connection code and specify the server directory, Note: code generation will be canceled when the latest generated file already exists.
sponge micro rpc-conn --rpc-server-name=user --out=./yourServerDir
`,
SilenceErrors: true,

View File

@ -10,7 +10,7 @@ import (
"github.com/spf13/cobra"
)
// RPCGwPbCommand generate rpc gateway service code base on protobuf file
// RPCGwPbCommand generate grpc gateway service code base on protobuf file
func RPCGwPbCommand() *cobra.Command {
var (
moduleName string // module name for go.mod
@ -23,17 +23,17 @@ func RPCGwPbCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "rpc-gw-pb",
Short: "Generate rpc gateway service code based on protobuf file",
Long: `generate rpc gateway service code based on protobuf file.
Short: "Generate grpc gateway service code based on protobuf file",
Long: `generate grpc gateway service code based on protobuf file.
Examples:
# generate rpc gateway service code.
# generate grpc gateway service code.
sponge micro rpc-gw-pb --module-name=yourModuleName --server-name=yourServerName --project-name=yourProjectName --protobuf-file=./demo.proto
# generate rpc gateway service code and specify the output directory, Note: code generation will be canceled when the latest generated file already exists.
# generate grpc gateway service code and specify the output directory, Note: code generation will be canceled when the latest generated file already exists.
sponge micro rpc-gw-pb --module-name=yourModuleName --server-name=yourServerName --project-name=yourProjectName --protobuf-file=./demo.proto --out=./yourServerDir
# generate rpc gateway service code and specify the docker image repository address.
# generate grpc gateway service code and specify the docker image repository address.
sponge micro rpc-gw-pb --module-name=yourModuleName --server-name=yourServerName --project-name=yourProjectName --repo-addr=192.168.3.37:9443/user-name --protobuf-file=./demo.proto
`,
SilenceErrors: true,
@ -116,7 +116,7 @@ using help:
4. visit http://localhost:8080/apis/swagger/index.html in your browser, and test api interface.
`)
fmt.Printf("generate %s's rpc gateway service code successfully, out = %s\n", serverName, r.GetOutputDir())
fmt.Printf("generate %s's grpc gateway service code successfully, out = %s\n", serverName, r.GetOutputDir())
return nil
}

View File

@ -10,7 +10,7 @@ import (
"github.com/spf13/cobra"
)
// RPCPbCommand generate rpc service code bash on protobuf file
// RPCPbCommand generate grpc service code bash on protobuf file
func RPCPbCommand() *cobra.Command {
var (
moduleName string // module name for go.mod
@ -23,17 +23,17 @@ func RPCPbCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "rpc-pb",
Short: "Generate rpc service code based on protobuf file",
Long: `generate rpc service code based on protobuf file.
Short: "Generate grpc service code based on protobuf file",
Long: `generate grpc service code based on protobuf file.
Examples:
# generate rpc service code.
# generate grpc service code.
sponge micro rpc-pb --module-name=yourModuleName --server-name=yourServerName --project-name=yourProjectName --protobuf-file=./demo.proto
# generate rpc service code and specify the output directory, Note: code generation will be canceled when the latest generated file already exists.
# generate grpc service code and specify the output directory, Note: code generation will be canceled when the latest generated file already exists.
sponge micro rpc-pb --module-name=yourModuleName --server-name=yourServerName --project-name=yourProjectName --protobuf-file=./demo.proto --out=./yourServerDir
# generate rpc service code and specify the docker image repository address.
# generate grpc service code and specify the docker image repository address.
sponge micro rpc-pb --module-name=yourModuleName --server-name=yourServerName --project-name=yourProjectName --repo-addr=192.168.3.37:9443/user-name --protobuf-file=./demo.proto
`,
SilenceErrors: true,
@ -110,10 +110,10 @@ using help:
1. open a terminal and execute the command to generate code: make proto
2. open file "internal/service/xxx.go", replace panic("implement me") according to template code example.
3. compile and run service: make run
4. open the file "internal/service/xxx_client_test.go" using Goland or VS Code, testing the rpc methods.
4. open the file "internal/service/xxx_client_test.go" using Goland or VS Code, testing the grpc methods.
`)
fmt.Printf("generate %s's rpc service code successfully, out = %s\n", serverName, r.GetOutputDir())
fmt.Printf("generate %s's grpc service code successfully, out = %s\n", serverName, r.GetOutputDir())
return nil
}

View File

@ -15,7 +15,7 @@ import (
"github.com/spf13/cobra"
)
// RPCCommand generate rpc service code
// RPCCommand generate grpc service code
func RPCCommand() *cobra.Command {
var (
moduleName string // module name for go.mod
@ -34,23 +34,23 @@ func RPCCommand() *cobra.Command {
//nolint
cmd := &cobra.Command{
Use: "rpc",
Short: "Generate rpc service code based on mysql table",
Long: `generate rpc service code based on mysql table.
Short: "Generate grpc service code based on mysql table",
Long: `generate grpc service code based on mysql table.
Examples:
# generate rpc service code and embed gorm.model struct.
# generate grpc service code and embed gorm.model struct.
sponge micro rpc --module-name=yourModuleName --server-name=yourServerName --project-name=yourProjectName --db-dsn=root:123456@(192.168.3.37:3306)/test --db-table=user
# generate rpc service code, structure fields correspond to the column names of the table.
# generate grpc service code, structure fields correspond to the column names of the table.
sponge micro rpc --module-name=yourModuleName --server-name=yourServerName --project-name=yourProjectName --db-dsn=root:123456@(192.168.3.37:3306)/test --db-table=user --embed=false
# generate rpc service code with multiple table names.
# generate grpc service code with multiple table names.
sponge micro rpc --module-name=yourModuleName --server-name=yourServerName --project-name=yourProjectName --db-dsn=root:123456@(192.168.3.37:3306)/test --db-table=t1,t2
# generate rpc service code and specify the output directory, Note: code generation will be canceled when the latest generated file already exists.
# generate grpc service code and specify the output directory, Note: code generation will be canceled when the latest generated file already exists.
sponge micro rpc --module-name=yourModuleName --server-name=yourServerName --project-name=yourProjectName --db-dsn=root:123456@(192.168.3.37:3306)/test --db-table=user --out=./yourServerDir
# generate rpc service code and specify the docker image repository address.
# generate grpc service code and specify the docker image repository address.
sponge micro rpc --module-name=yourModuleName --server-name=yourServerName --project-name=yourProjectName --repo-addr=192.168.3.37:9443/user-name --db-dsn=root:123456@(192.168.3.37:3306)/test --db-table=user
`,
SilenceErrors: true,
@ -102,7 +102,7 @@ using help:
3. open the file internal/service/xxx_client_test.go using Goland or VS Code, and test CRUD api interface.
`)
fmt.Printf("generate %s's rpc service code successfully, out = %s\n", serverName, outPath)
fmt.Printf("generate %s's grpc service code successfully, out = %s\n", serverName, outPath)
return nil
},
}

View File

@ -31,8 +31,8 @@ func ServiceCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "service",
Short: "Generate rpc service code based on mysql table",
Long: `generate rpc service code based on mysql table.
Short: "Generate grpc service code based on mysql table",
Long: `generate grpc service code based on mysql table.
Examples:
# generate service code and embed gorm.model struct.

View File

@ -271,7 +271,7 @@ func NewCenter(configFile string) (*Center, error) {
markEnd='\e[0m'
echo ""
echo -e "${highBright}Tip:${markEnd} execute the command ${colorCyan}make run${markEnd} and then test rpc method is in the file ${colorCyan}internal/service/xxx_client_test.go${markEnd}."
echo -e "${highBright}Tip:${markEnd} execute the command ${colorCyan}make run${markEnd} and then test grpc method is in the file ${colorCyan}internal/service/xxx_client_test.go${markEnd}."
echo ""`
// for http-pb
@ -369,11 +369,11 @@ grpc:
# grpc client settings, support for setting up multiple rpc clients
# grpc client settings, support for setting up multiple grpc clients
grpcClient:
- name: "your-rpc-server-name" # rpc service name, used for service discovery
host: "127.0.0.1" # rpc service address, used for direct connection
port: 8282 # rpc service port
- name: "your-rpc-server-name" # grpc service name, used for service discovery
host: "127.0.0.1" # grpc service address, used for direct connection
port: 8282 # grpc service port
registryDiscoveryType: "" # registration and discovery types: consul, etcd, nacos, if empty, connecting to server using host and port
enableLoadBalance: false # whether to turn on the load balancer
# clientSecure parameter setting
@ -398,11 +398,11 @@ http:
writeTimeout: 60 # write timeout, unit(second), if enableHTTPProfile is true, it needs to be greater than 60s, the default value for pprof to do profiling is 60s
# grpc client settings, support for setting up multiple rpc clients
# grpc client settings, support for setting up multiple grpc clients
grpcClient:
- name: "your-rpc-server-name" # rpc service name, used for service discovery
host: "127.0.0.1" # rpc service address, used for direct connection
port: 8282 # rpc service port
- name: "your-rpc-server-name" # grpc service name, used for service discovery
host: "127.0.0.1" # grpc service address, used for direct connection
port: 8282 # grpc service port
registryDiscoveryType: "" # registration and discovery types: consul, etcd, nacos, if empty, connecting to server using host and port
enableLoadBalance: false # whether to turn on the load balancer
# clientSecure parameter setting

View File

@ -8,8 +8,8 @@ import (
func GinServiceCode() *cobra.Command {
cmd := &cobra.Command{
Use: "rpc-gw-pb",
Short: "Merge the generated rpc gateway related code into the template file",
Long: `merge the generated rpc gateway related code into the template file.
Short: "Merge the generated grpc gateway related code into the template file",
Long: `merge the generated grpc gateway related code into the template file.
Examples:
sponge merge rpc-gw-pb

View File

@ -10,8 +10,8 @@ import (
func GenMicroCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "micro",
Short: "Generate proto, model, cache, dao, service, rpc, rpc-gw, rpc-cli code",
Long: "generate proto, model, cache, dao, service, rpc, rpc-gw, rpc-cli code.",
Short: "Generate proto, model, cache, dao, service, grpc, grpc-gw, grpc-cli code",
Long: "generate proto, model, cache, dao, service, grpc, grpc-gw, grpc-cli code.",
SilenceErrors: true,
SilenceUsage: true,
}

View File

@ -19,7 +19,7 @@ import (
var copyCount = 0
// CopyProtoCommand copy proto file from the rpc server directory
// CopyProtoCommand copy proto file from the grpc service directory
func CopyProtoCommand() *cobra.Command {
var (
serverDir string // server dir
@ -29,17 +29,17 @@ func CopyProtoCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "copy-proto",
Short: "Copy proto file from the rpc server directory",
Long: `copy proto file from the rpc server, if the proto file exists, it will be forced to overwrite it,
Short: "Copy proto file from the grpc service directory",
Long: `copy proto file from the grpc service, if the proto file exists, it will be forced to overwrite it,
don't worry about losing the proto file after overwriting it, before copying proto it will be backed up to
the directory /tmp/sponge_copy_backup_proto_files.
Examples:
# copy proto file from a rpc server directory
sponge patch copy-proto --server-dir=./rpc-server
# copy proto file from a grpc service directory
sponge patch copy-proto --server-dir=../rpc-server
# copy proto file from multiple rpc servers directory
sponge patch copy-proto --server-dir=./rpc-server1,./rpc-server2
# copy proto file from multiple grpc services directory
sponge patch copy-proto --server-dir=../rpc-server1,../rpc-server2
`,
SilenceErrors: true,
SilenceUsage: true,

View File

@ -19,8 +19,10 @@ var (
func NewRootCMD() *cobra.Command {
cmd := &cobra.Command{
Use: "sponge",
Long: `sponge is a powerful golang productivity tool that integrates automatic code generation,
web and microservice framework, basic development framework.`,
Long: `Sponge is a powerful golang productivity tool that integrates automatic code generation,
web and microservice framework, basic development framework.
repo: https://github.com/zhufuyi/sponge
docs: https://go-sponge.com`,
SilenceErrors: true,
SilenceUsage: true,
Version: getVersion(),

View File

@ -1,2 +1,2 @@
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>sponge generate code</title><link rel=icon type=image/png sizes=32x32 href="/static/img/favicon.png?v=1.0"><script type=text/javascript src=/static/appConfig.js async></script><link href=/static/css/app.f3430c8a3ec789d9c3239b45456d5a88.css rel=stylesheet></head><body style="margin: 0px; padding: 0px;"><style>.el-tooltip__popper {box-shadow: 3px 3px 10px 5px #d3d3d6;border-width: 0px !important;}
.el-tooltip__popper[x-placement^="top"] .popper__arrow:after {border-top-color: #dcdfe6 !important;}</style><div id=app></div><script type=text/javascript src=/static/js/manifest.2ae2e69a05c33dfc65f8.js></script><script type=text/javascript src=/static/js/vendor.f99d8d10a7d35fb68864.js></script><script type=text/javascript src=/static/js/app.858f590ac740c88dcb28.js></script></body></html>
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>sponge generate code</title><link rel=icon type=image/png sizes=32x32 href="/static/img/favicon.png?v=1.0"><script type=text/javascript src=/static/appConfig.js async></script><link href=/static/css/app.c061c18c0457224e6659e365c87d2ac3.css rel=stylesheet></head><body style="margin: 0px; padding: 0px;"><style>.el-tooltip__popper {box-shadow: 3px 3px 10px 5px #d3d3d6;border-width: 0px !important;}
.el-tooltip__popper[x-placement^="top"] .popper__arrow:after {border-top-color: #dcdfe6 !important;}</style><div id=app></div><script type=text/javascript src=/static/js/manifest.2ae2e69a05c33dfc65f8.js></script><script type=text/javascript src=/static/js/vendor.f99d8d10a7d35fb68864.js></script><script type=text/javascript src=/static/js/app.1aff3acebbf740204a8a.js></script></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"version":3,"sources":["webpack:///webpack/bootstrap fb9ee1fbf85400fd52d5"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","2","exports","module","l","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","p","oe","err","console","error"],"mappings":"aACA,IAAAA,EAAAC,OAAA,aACAA,OAAA,sBAAAC,EAAAC,EAAAC,GAIA,IADA,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,EAAAC,KACQD,EAAAN,EAAAQ,OAAoBF,IAC5BF,EAAAJ,EAAAM,GACAG,EAAAL,IACAG,EAAAG,KAAAD,EAAAL,GAAA,IAEAK,EAAAL,GAAA,EAEA,IAAAD,KAAAF,EACAU,OAAAC,UAAAC,eAAAC,KAAAb,EAAAE,KACAY,EAAAZ,GAAAF,EAAAE,IAIA,IADAL,KAAAE,EAAAC,EAAAC,GACAK,EAAAC,QACAD,EAAAS,OAAAT,GAEA,GAAAL,EACA,IAAAI,EAAA,EAAYA,EAAAJ,EAAAM,OAA2BF,IACvCD,EAAAY,IAAAC,EAAAhB,EAAAI,IAGA,OAAAD,GAIA,IAAAc,KAGAV,GACAW,EAAA,GAIA,SAAAH,EAAAd,GAGA,GAAAgB,EAAAhB,GACA,OAAAgB,EAAAhB,GAAAkB,QAGA,IAAAC,EAAAH,EAAAhB,IACAG,EAAAH,EACAoB,GAAA,EACAF,YAUA,OANAN,EAAAZ,GAAAW,KAAAQ,EAAAD,QAAAC,IAAAD,QAAAJ,GAGAK,EAAAC,GAAA,EAGAD,EAAAD,QAKAJ,EAAAO,EAAAT,EAGAE,EAAAQ,EAAAN,EAGAF,EAAAS,EAAA,SAAAL,EAAAM,EAAAC,GACAX,EAAAY,EAAAR,EAAAM,IACAhB,OAAAmB,eAAAT,EAAAM,GACAI,cAAA,EACAC,YAAA,EACAC,IAAAL,KAMAX,EAAAiB,EAAA,SAAAZ,GACA,IAAAM,EAAAN,KAAAa,WACA,WAA2B,OAAAb,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAAS,EAAAE,EAAA,IAAAA,GACAA,GAIAX,EAAAY,EAAA,SAAAO,EAAAC,GAAsD,OAAA1B,OAAAC,UAAAC,eAAAC,KAAAsB,EAAAC,IAGtDpB,EAAAqB,EAAA,IAGArB,EAAAsB,GAAA,SAAAC,GAA8D,MAApBC,QAAAC,MAAAF,GAAoBA","file":"static/js/manifest.2ae2e69a05c33dfc65f8.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t2: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap fb9ee1fbf85400fd52d5"],"sourceRoot":""}
{"version":3,"sources":["webpack:///webpack/bootstrap 917f647afa359bba2e7d"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","2","exports","module","l","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","p","oe","err","console","error"],"mappings":"aACA,IAAAA,EAAAC,OAAA,aACAA,OAAA,sBAAAC,EAAAC,EAAAC,GAIA,IADA,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,EAAAC,KACQD,EAAAN,EAAAQ,OAAoBF,IAC5BF,EAAAJ,EAAAM,GACAG,EAAAL,IACAG,EAAAG,KAAAD,EAAAL,GAAA,IAEAK,EAAAL,GAAA,EAEA,IAAAD,KAAAF,EACAU,OAAAC,UAAAC,eAAAC,KAAAb,EAAAE,KACAY,EAAAZ,GAAAF,EAAAE,IAIA,IADAL,KAAAE,EAAAC,EAAAC,GACAK,EAAAC,QACAD,EAAAS,OAAAT,GAEA,GAAAL,EACA,IAAAI,EAAA,EAAYA,EAAAJ,EAAAM,OAA2BF,IACvCD,EAAAY,IAAAC,EAAAhB,EAAAI,IAGA,OAAAD,GAIA,IAAAc,KAGAV,GACAW,EAAA,GAIA,SAAAH,EAAAd,GAGA,GAAAgB,EAAAhB,GACA,OAAAgB,EAAAhB,GAAAkB,QAGA,IAAAC,EAAAH,EAAAhB,IACAG,EAAAH,EACAoB,GAAA,EACAF,YAUA,OANAN,EAAAZ,GAAAW,KAAAQ,EAAAD,QAAAC,IAAAD,QAAAJ,GAGAK,EAAAC,GAAA,EAGAD,EAAAD,QAKAJ,EAAAO,EAAAT,EAGAE,EAAAQ,EAAAN,EAGAF,EAAAS,EAAA,SAAAL,EAAAM,EAAAC,GACAX,EAAAY,EAAAR,EAAAM,IACAhB,OAAAmB,eAAAT,EAAAM,GACAI,cAAA,EACAC,YAAA,EACAC,IAAAL,KAMAX,EAAAiB,EAAA,SAAAZ,GACA,IAAAM,EAAAN,KAAAa,WACA,WAA2B,OAAAb,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAAS,EAAAE,EAAA,IAAAA,GACAA,GAIAX,EAAAY,EAAA,SAAAO,EAAAC,GAAsD,OAAA1B,OAAAC,UAAAC,eAAAC,KAAAsB,EAAAC,IAGtDpB,EAAAqB,EAAA,IAGArB,EAAAsB,GAAA,SAAAC,GAA8D,MAApBC,QAAAC,MAAAF,GAAoBA","file":"static/js/manifest.2ae2e69a05c33dfc65f8.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t2: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 917f647afa359bba2e7d"],"sourceRoot":""}

View File

@ -45,11 +45,11 @@ grpc:
# grpc client settings, support for setting up multiple rpc clients
# grpc client settings, support for setting up multiple grpc clients
grpcClient:
- name: "serverNameExample" # rpc server name, used for service discovery
host: "127.0.0.1" # rpc service address, used for direct connection
port: 8282 # rpc service port
- name: "serverNameExample" # grpc server name, used for service discovery
host: "127.0.0.1" # grpc service address, used for direct connection
port: 8282 # grpc service port
registryDiscoveryType: "" # registration and discovery types: consul, etcd, nacos, if empty, connecting to server using host and port
enableLoadBalance: true # whether to turn on the load balancer
# clientSecure parameter setting