Versions in this module Expand all Collapse all v1 v1.0.0 Sep 12, 2024 Changes in this version + var AllowHeaders = []string + var AllowOrigins = []string + var ClientReqCounter *prometheus.CounterVec + var ClientReqDuration *prometheus.HistogramVec + var ClientReqGauge *prometheus.GaugeVec + var ServerReqCounter *prometheus.CounterVec + var ServerReqDuration *prometheus.HistogramVec + var ServerReqGauge *prometheus.GaugeVec + func AddTraceID(ctx *gin.Context) + func Cors() gin.HandlerFunc + func HTTPLoggerWithConfig(config HTTPConfig) gin.HandlerFunc + func HeartCheck() gin.HandlerFunc + func HttpClientCounter(url string) + func HttpClientDuration(url string, e string, cost int64) + func IncCounter(name string, labelMap map[string]string) error + func Metric() gin.HandlerFunc + func Monitor() gin.HandlerFunc + func Recovery() gin.HandlerFunc + func Start(appName string, port int) + func Timeout(timeout time.Duration) func(c *gin.Context) + func UnaryServerInterceptor() grpc.UnaryServerInterceptor + type HTTPConfig struct + Excludes []string + Logger *trlogger.TrLogger