Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogEvent ¶
type LogEvent map[string]interface{}
LogEvent represents a slow query log event. "User", "Host", "Timestamp" (from SET timestamp as a time.Time), and "Statement" all should usually be present. Other attributes are set if found. Numbers are float64 or int64. Values of "Yes" or "No" are converted to bools.
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser is a MySQL slow query log format parser.
func (*Parser) ConsumeLine ¶
ConsumeLine consumes a line and returns a LogEvent if the parser recognizes a completed event.
Click to show internal directories.
Click to hide internal directories.