Watch 1 Star 0 Fork 0

WZJ / grpc-exampleGoGPL-2.0

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
Nothing here. spread retract

Clone or download
WZJ authored add LICENSE.
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README
Swagger gateway修改:
    1、将填写了SWAGGER API option参数的 *.proto 放到 ./pb/ 目录下
    2、/pb/ 目录下,执行make
    3、/pb/ 目录下,生成.go代码若干以及一个apidocs.swagger.json,将它复制到 /gateway/swagger目录下,替换掉那里的swagger.json
    4、修改 /gateway/main.go 中的
        1、run()函数中的需要修改部分
        2、main()函数中的目标server address
    5、在 /gateway/ 目录下执行 go build 命令编译,得到可执行程序,运行即可在run()函数中的监听端口访问

Server 修改:to be continue
Client 修改:to be continue

Comments ( 0 )

Sign in for post a comment

Go
1
https://gitee.com/wzj2018/grpc-example.git
git@gitee.com:wzj2018/grpc-example.git
wzj2018
grpc-example
grpc-example
master

Search