Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interval ¶
type Interval struct { Number int StartTime time.Time // UTC StopTime time.Time // UTC // slowlog Filename string // slow_query_log_file StartOffset int64 // bytes @ StartTime EndOffset int64 // bytes @ StopTime }
An Interval represents a period during which queries are fetched, aggregated, and reported. Intervals are created and sent by an IntervalIter. Analyzers use Intervals to set up and run Workers.
type IntervalIter ¶
type IntervalIter interface { Start() Stop() IntervalChan() chan *Interval TickChan() chan time.Time }
An IntervalIter sends Intervals.
type IntervalIterFactory ¶
type IntervalIterFactory interface {
Make(analyzerType string, mysqlConn mysql.Connector, tickChan chan time.Time) IntervalIter
}
An IntervalIterFactory makes an IntervalIter, real or mock.
Click to show internal directories.
Click to hide internal directories.