mirror of
https://github.com/xinliangnote/go-gin-api.git
synced 2024-04-21 12:31:46 +00:00
upgrade
This commit is contained in:
@@ -1,27 +1,22 @@
|
||||
```
|
||||
██████╗ ██████╗ ██████╗ ██╗███╗ ██╗ █████╗ ██████╗ ██╗
|
||||
██╔════╝ ██╔═══██╗ ██╔════╝ ██║████╗ ██║ ██╔══██╗██╔══██╗██║
|
||||
██║ ███╗██║ ██║█████╗██║ ███╗██║██╔██╗ ██║█████╗███████║██████╔╝██║
|
||||
██║ ██║██║ ██║╚════╝██║ ██║██║██║╚██╗██║╚════╝██╔══██║██╔═══╝ ██║
|
||||
╚██████╔╝╚██████╔╝ ╚██████╔╝██║██║ ╚████║ ██║ ██║██║ ██║
|
||||
╚═════╝ ╚═════╝ ╚═════╝ ╚═╝╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝
|
||||
|
||||
* [register -env fat]
|
||||
* [register cors]
|
||||
* [register rate]
|
||||
* [register panic notify]
|
||||
* [register pprof]
|
||||
* [register swagger]
|
||||
* [register prometheus]
|
||||
```
|
||||
|
||||
## go-gin-api
|
||||
|
||||
[](https://github.com/xinliangnote/go-gin-api/stargazers)
|
||||
[](https://github.com/xinliangnote/go-gin-api/network/members)
|
||||
[](https://github.com/xinliangnote/go-gin-api/watchers)
|
||||
[](https://github.com/xinliangnote/go-gin-api/blob/master/LICENSE)
|
||||
[](https://github.com/xinliangnote/go-gin-api)
|
||||
|
||||
基于 [Gin](https://github.com/gin-gonic/gin) 进行模块化设计的 API 框架,封装了常用的功能,使用简单,致力于进行快速的业务研发,同时增加了更多限制,以约束项目组开发成员、规避混乱无序和自由随意。
|
||||
|
||||
亮点功能:
|
||||
查看 Jaeger 链路追踪代码,请查看 [v1.0版](https://github.com/xinliangnote/go-gin-api/releases/tag/v1.0),文档点这里 [jaeger.md](https://github.com/xinliangnote/go-gin-api/blob/master/docs/jaeger.md) 。
|
||||
|
||||
- :star: [trace] 开发调试的辅助工具。
|
||||
供参考学习,线上使用请谨慎!
|
||||
|
||||
持续更新...
|
||||
|
||||
## Star Module
|
||||
|
||||
亮点功能::star: [trace] 开发调试的辅助工具。
|
||||
|
||||
可记录如下信息:
|
||||
|
||||
@@ -34,12 +29,6 @@
|
||||
- success,当前请求结果
|
||||
- cost_seconds,执行时长,单位秒
|
||||
|
||||
供参考学习,线上使用请谨慎!
|
||||
|
||||
**查看 Jaeger 链路追踪代码,请查看 [v1.0版](https://github.com/xinliangnote/go-gin-api/releases/tag/v1.0),文档 [jaeger.md](https://github.com/xinliangnote/go-gin-api/blob/master/docs/jaeger.md) 点这里**。
|
||||
|
||||
持续更新...
|
||||
|
||||
## Catalogue
|
||||
|
||||
```cassandraql
|
||||
@@ -120,9 +109,24 @@ export GOPROXY=https://goproxy.io
|
||||
#### Build & Run
|
||||
|
||||
```
|
||||
cd go-gin-api
|
||||
cd go-gin-api/cmd/api
|
||||
|
||||
go run main.go
|
||||
go run main.go -env fat
|
||||
|
||||
██████╗ ██████╗ ██████╗ ██╗███╗ ██╗ █████╗ ██████╗ ██╗
|
||||
██╔════╝ ██╔═══██╗ ██╔════╝ ██║████╗ ██║ ██╔══██╗██╔══██╗██║
|
||||
██║ ███╗██║ ██║█████╗██║ ███╗██║██╔██╗ ██║█████╗███████║██████╔╝██║
|
||||
██║ ██║██║ ██║╚════╝██║ ██║██║██║╚██╗██║╚════╝██╔══██║██╔═══╝ ██║
|
||||
╚██████╔╝╚██████╔╝ ╚██████╔╝██║██║ ╚████║ ██║ ██║██║ ██║
|
||||
╚═════╝ ╚═════╝ ╚═════╝ ╚═╝╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝
|
||||
|
||||
* [register -env fat]
|
||||
* [register cors]
|
||||
* [register rate]
|
||||
* [register panic notify]
|
||||
* [register pprof]
|
||||
* [register swagger]
|
||||
* [register prometheus]
|
||||
|
||||
// 启动成功后,可访问:http://127.0.0.1:9999/h/info
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user