Versions in this module Expand all Collapse all v1 v1.0.1 Mar 15, 2020 v1.0.0 Mar 15, 2020 Changes in this version + func QuerySchemas(db *gorm.DB) ([]string, error) + type Detail struct + AggAvgAffectedRows int + AggAvgTotalKeys int + AggExecCount int + AggSchemas string + AggSumLatency int + AggTableNames string + Digest string + DigestText string + LastSeen string + Plans []*Plan + QuerySampleText string + SchemaName string + func QueryStatementDetail(db *gorm.DB, schema, beginTime, endTime, digest string) (*Detail, error) + func (detail *Detail) AfterFind() (err error) + type Node struct + Address string + AvgLatency int + AvgMem int + ExecCount int + MaxLatency int + SumBackoffTimes int + SumLatency int + func QueryStatementNodes(db *gorm.DB, schema, beginTime, endTime, digest string) (result []*Node, err error) + type Overview struct + AggAvgAffectedRows int + AggAvgLatency int + AggAvgMem int + AggExecCount int + AggSchemas string + AggSumLatency int + AggTableNames string + Digest string + DigestText string + SchemaName string + func QueryStatementsOverview(db *gorm.DB, schemas []string, beginTime, endTime string) (result []*Overview, err error) + func (overview *Overview) AfterFind() (err error) + type Plan struct + Plan string + PlanDigest string + type Service struct + func NewService(config *config.Config, tidbForwarder *tidb.Forwarder) *Service + func (s *Service) Register(r *gin.RouterGroup, auth *user.AuthService) + type TimeRange struct + BeginTime string + EndTime string + func QueryTimeRanges(db *gorm.DB) (result []*TimeRange, err error)