KO
|
EN
gitlite — search
Search
#python
#blockchain
#java
#android
#javascript
#database
#angular
#cli
#r
#kali
#kali-linux
#ontology
gin-stats
★ 35
Open GitHub ↗
Gin's middleware for request stats
Download README (.md)
Explore Similar Repositories
PytorchSR
:
Pytorch based phoneme recognition (TIMIT phoneme classification)
yancheng-sales
:
天池-印象盐城-汽车销量预测大赛
GraphqlDockerProxy
:
A generic Graphql API for Docker and Kubernetes
NetAPP
:
本项目(项目地址:https://github.com/MartinWuQing/NetAPP)用的是MUI做的前台 后台用的是ASP.NET Core 技术。(项目地址: https://github.com/MartinWuQing/mhqNetAPP),是做服务器后台以及后台管理界面开发的项目,
SAFE
:
No description available.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
gin-stats
?
Download (.md)
# Gin's middleware for request stats [](https://travis-ci.org/semihalev/gin-stats) [](https://codecov.io/gh/semihalev/gin-stats) [](https://goreportcard.com/report/github.com/semihalev/gin-stats) [](https://godoc.org/github.com/semihalev/gin-stats) Lightweight Gin's middleware for request metrics ## Usage ### Start using it Download and install it: ```sh $ go get github.com/semihalev/gin-stats ``` ```go import "github.com/semihalev/gin-stats" ``` ### Example usage: ```go package main import ( "fmt" "time" "github.com/gin-gonic/gin" "github.com/semihalev/gin-stats" ) func main() { r := gin.Default() r.Use(stats.RequestStats()) r.GET("/stats", func(c *gin.Context) { c.JSON(http.StatusOK, stats.Report()) }) // Listen and Server in 0.0.0.0:8080 r.Run(":8080") } ```