Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct { ID string `gorm:"size:20;primaryKey;" json:"id"` // Unique ID Level string `gorm:"size:20;index;" json:"level"` // Log level TraceID string `gorm:"size:64;index;" json:"trace_id"` // Trace ID UserID string `gorm:"size:20;index;" json:"user_id"` // User ID Tag string `gorm:"size:32;index;" json:"tag"` // Log tag Message string `gorm:"size:1024;" json:"message"` // Log message Stack string `gorm:"type:text;" json:"stack"` // Error stack Data string `gorm:"type:text;" json:"data"` // Log data CreatedAt time.Time `gorm:"index;" json:"created_at"` // Create time LoginName string `json:"login_name" gorm:"<-:false;-:migration;"` // From User.Username UserName string `json:"user_name" gorm:"<-:false;-:migration;"` // From User.Name }
Logger management
type LoggerQueryOptions ¶
type LoggerQueryOptions struct {
util.QueryOptions
}
Defining the query options for the `Logger` struct.
type LoggerQueryParam ¶
type LoggerQueryParam struct { util.PaginationParam Level string `form:"level"` // Log level TraceID string `form:"traceID"` // Trace ID LikeUserName string `form:"userName"` // User Name Tag string `form:"tag"` // Log tag LikeMessage string `form:"message"` // Log message StartTime string `form:"startTime"` // Start time EndTime string `form:"endTime"` // End time }
Defining the query parameters for the `Logger` struct.
type LoggerQueryResult ¶
type LoggerQueryResult struct { Data Loggers PageResult *util.PaginationResult }
Defining the query result for the `Logger` struct.
Click to show internal directories.
Click to hide internal directories.