go-srv-kit为微服务、业务系统开发提供开箱即用的工具;
- 按需配置启动基础组件,如:数据库、缓存、消息队列等。
- 提供基础的工具,如:日志、配置、HTTP、GRPC、JWT、SnowflakeId、...
- 使用服务框架: go-kratos
参考链接
Windows系统,请使用cmd或git-bash运行。
# 启动项目 make run-service # or go run ./testdata/ping-service/cmd/ping-service/... -conf=./testdata/ping-service/configs # 运行测试 HTTP JSON make testing-service # or curl http://127.0.0.1:10101/api/v1/ping/logger && echo "\n" curl http://127.0.0.1:10101/api/v1/ping/error && echo "\n" curl http://127.0.0.1:10101/api/v1/ping/panic && echo "\n" curl http://127.0.0.1:10101/api/v1/ping/say_hello && echo "\n" 参考: service-layout
| 感谢支持 | LOGO | 支持内容 |
|---|---|---|
| JETBRAINS | Open Source Development License |
如果您觉得这个项目有趣,或者对您有帮助,请给个star吧!
If you think this project is interesting, or helpful to you, please give a star!