Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanonicalPath ¶
CanonicalPath resolves Abs then EvalSymlinks with fall-back-to-Abs [L2].
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine handles parsing of MySQL slow logs
func NewEngine ¶
NewEngine creates a new parser engine. filePatterns empty → defaults; workers < 1 → 1 (sequential).
func (*Engine) ParseDirectory ¶
ParseDirectory parses all slow log files in a directory
type ParseResult ¶
type ParseResult struct {
FilesProcessed int `json:"files_processed"`
FilesSkipped int `json:"files_skipped"`
FilesFailed int `json:"files_failed"`
EntriesParsed int `json:"entries_parsed"`
EntriesStored int `json:"entries_stored"`
Errors []string `json:"errors,omitempty"` // [L7] []string so JSON serializes
StartTime time.Time `json:"start_time"`
EndTime time.Time `json:"end_time"`
DurationStr string `json:"duration"`
}
ParseResult represents the result of a parsing operation
func (*ParseResult) Duration ¶
func (r *ParseResult) Duration() time.Duration
Duration returns the duration of the parsing operation
Click to show internal directories.
Click to hide internal directories.