Versions in this module Expand all Collapse all v1 v1.0.0 Apr 14, 2020 Changes in this version + const RequestIdHttpHeader + const RequestIdKey + func ClearFieldByName(obj interface{}, fieldName string) error + func ClearFieldByType(obj interface{}, t reflect.Type) error + func GetRequestID(ctx context.Context) string + func Log(log LogFunc) xserver.Middleware + func LogHandler(log LogFunc) routing.Handler + func RequestID() xserver.Middleware + type LogEntry struct + Duration float64 + Request *logRequest + Response *logResponse + Timestamp string + type LogFunc func(r *http.Request, w *LogResponseWriter, elapsed time.Duration) + func NewLogger(timeFormat string, pathsToIgnore []string, ...) LogFunc + func NewMaskingLogger(timeFormat string, fieldsToMask []string, typesToMask []reflect.Type, ...) LogFunc + type LogResponseStatusWriter struct + Status int + func NewLogResponseStatusWriter(w http.ResponseWriter) *LogResponseStatusWriter + func (r *LogResponseStatusWriter) WriteHeader(status int) + type LogResponseWriter struct + Body []byte + BytesWritten int64 + func NewLogResponseWriter(w http.ResponseWriter) *LogResponseWriter + func (r *LogResponseWriter) Write(p []byte) (int, error)