Versions in this module Expand all Collapse all v0 v0.0.1 Dec 2, 2020 Changes in this version + type DefaultLogger struct + func NewDefaultLogger(args Fields) *DefaultLogger + func (d *DefaultLogger) Error(args ...interface{}) + func (d *DefaultLogger) Fatalln(args ...interface{}) + func (d *DefaultLogger) Info(args ...interface{}) + func (d *DefaultLogger) Println(args ...interface{}) + func (d DefaultLogger) WithFields(fields Fields) ILogger + type Fields map[string]interface + type HTTPServer struct + Addr string + GinMode string + PID string + ServiceName string + ShutdownWaitDuration string + func NewHTTPServer(logger ILogger) *HTTPServer + func (httpServer *HTTPServer) GINLogger(ctx *gin.Context) + func (httpServer *HTTPServer) GINRecovery(ctx *gin.Context) + func (httpServer *HTTPServer) Handler(handler func(router *gin.Engine)) + func (httpServer *HTTPServer) Name() string + func (httpServer *HTTPServer) OnChange(viper *viper.Viper) + func (httpServer *HTTPServer) PidSavePath() string + func (httpServer *HTTPServer) Restart() error + func (httpServer *HTTPServer) Run() + func (httpServer *HTTPServer) SetLogger(logger ILogger) + func (httpServer *HTTPServer) Start() + func (httpServer *HTTPServer) Stop() error + type Handler struct + func NewHandler(mode string, recovery, ginLogger gin.HandlerFunc) *Handler + func (*Handler) Group(relativePath string, handlers ...func(router gin.IRouter)) func(router gin.IRouter) + func (handler *Handler) Print(l ILogger) + func (handler *Handler) Register(handlers ...func(router *gin.Engine)) + func (handler *Handler) Router() *gin.Engine + type ILogger interface + Error func(args ...interface{}) + Fatalln func(args ...interface{}) + Info func(args ...interface{}) + Println func(args ...interface{}) + WithFields func(fields Fields) ILogger + type Prometheus struct + var Metrics Prometheus + func (Prometheus) HTTPRequestURICounter(uri string) + func (Prometheus) HTTPResponseStatusCounter(uri string, status int) + func (Prometheus) RequestPanicCounter(uri string)