Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMiddleWareLogger ¶
func LoggerMiddleware ¶
func LoggerMiddleware(opts ...*Option) gin.HandlerFunc
Types ¶
type Option ¶ added in v0.0.9
type Option struct {
Service string `json:"service"`
WhiteList []string `json:"whiteList"`
ReportToSentry bool `json:"reportToSentry"`
ReportToEmail bool `json:"reportToEmail"`
RePanic bool `json:"rePanic"`
EmailReceiver []string `json:"emailReceiver"`
EmailSvc recoverTool.EmailSvc `json:"emailSvc"`
}
Click to show internal directories.
Click to hide internal directories.