Documentation ¶
Index ¶
- Variables
- func ApiRequestCounterMetrics() gin.HandlerFunc
- func ApiRequestDurationMetrics() gin.HandlerFunc
- func ApiRequestTracing(c *gin.Context)
- func Init()
- func InitUptrace(serviceName, version, dsn, env string)
- func RequestLimiter(c *gin.Context)
- func WrapRequestMiddle(handler GinAction) gin.HandlerFunc
- type GinAction
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ApiRequestCounterMetrics ¶
func ApiRequestCounterMetrics() gin.HandlerFunc
func ApiRequestDurationMetrics ¶
func ApiRequestDurationMetrics() gin.HandlerFunc
func ApiRequestTracing ¶
func InitUptrace ¶
func InitUptrace(serviceName, version, dsn, env string)
func RequestLimiter ¶
func WrapRequestMiddle ¶
func WrapRequestMiddle(handler GinAction) gin.HandlerFunc
Types ¶
type GinAction ¶
type GinAction func(c *apiContext.ApiContext) model.Response
Click to show internal directories.
Click to hide internal directories.