Documentation ¶
Index ¶
Constants ¶
View Source
const (
REQEUST_ID = "_REQEUST_ID"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogHttpUtil ¶
func NewLogHttpUtil ¶
func NewLogHttpUtil(conf fig.Properties, logger xlog.Logger) *LogHttpUtil
func (*LogHttpUtil) LogHttp ¶
func (util *LogHttpUtil) LogHttp() gin.HandlerFunc
type RecoveryUtil ¶
type RecoveryUtil struct { Logger xlog.Logger PanicHandler func(ctx *gin.Context, err interface{}) }
func (*RecoveryUtil) Recovery ¶
func (u *RecoveryUtil) Recovery() gin.HandlerFunc
type RequestBodyLogWriter ¶
type RequestBodyLogWriter struct { Logger xlog.Logger V binding.StructValidator }
func (*RequestBodyLogWriter) Engine ¶
func (v *RequestBodyLogWriter) Engine() interface{}
func (*RequestBodyLogWriter) ValidateStruct ¶
func (v *RequestBodyLogWriter) ValidateStruct(obj interface{}) error
type ResponseBodyLogWriter ¶
type ResponseBodyLogWriter struct { gin.ResponseWriter // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.