Refactor TraceLog struct for improved readability
- Adjusted formatting of the TraceLog struct in driver.go to enhance code clarity and maintainability by aligning comments and struct fields.
This commit is contained in:
parent
465e45828b
commit
0c30909022
1 changed files with 5 additions and 5 deletions
|
|
@ -4,11 +4,11 @@ import "context"
|
||||||
|
|
||||||
// TraceLog represents a log entry
|
// TraceLog represents a log entry
|
||||||
type TraceLog struct {
|
type TraceLog struct {
|
||||||
Timestamp int64 // Log timestamp (milliseconds since epoch)
|
Timestamp int64 // Log timestamp (milliseconds since epoch)
|
||||||
Level string // Log level (info, debug, error, warn)
|
Level string // Log level (info, debug, error, warn)
|
||||||
Message string // Log message
|
Message string // Log message
|
||||||
Data []any // Additional data arguments
|
Data []any // Additional data arguments
|
||||||
NodeID string // Node ID this log belongs to
|
NodeID string // Node ID this log belongs to
|
||||||
}
|
}
|
||||||
|
|
||||||
// Driver defines the storage driver interface that providers must implement
|
// Driver defines the storage driver interface that providers must implement
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue