【文件属性】:
文件名称:testing-grpc:go-grpc服务器,用于启动的客户端
文件大小:31KB
文件格式:ZIP
更新时间:2021-02-05 23:51:53
go golang learning client server
测试grpc
开发服务器和客户端以了解gRPC的行为。 主要用于使用gRPC进行应用程序开发。
(ascii-art由生成)
建立
$ make build
# startup server (default port 3000)
$ ./bin/server
# startup client (default port 3000)
$ ./bin/client
如果要更改端口,则可以更改PORT的环境变量。 你可以使用.env文件:D
支持的
一元
状态
错误详情
元数据
拦截器
统计资料
如果要禁用日志记录,请将LOG_LEVEL设置为INFO 。 请参阅.env文件。
C
【文件预览】:
testing-grpc-master
----.gitmodules(129B)
----bin()
--------.gitkeep(0B)
----cmd()
--------client()
--------server()
----internal()
--------level()
--------stats()
--------testing()
----LICENSE(1KB)
----.env(26B)
----.gitignore(28B)
----third_party()
--------protocolbuffers()
--------go.mod(225B)
----Makefile(618B)
----go.sum(14KB)
----.envrc(7B)
----README.md(1KB)
----go.mod(437B)