Documentation ¶
Index ¶
- func GetClassId(db *sql.DB, checksum string) (uint, error)
- type MySQLHandler
- func (h *MySQLHandler) Example(classId, instanceId uint, period time.Time) (queryProto.Example, error)
- func (h *MySQLHandler) Examples(classId, instanceId uint) ([]queryProto.Example, error)
- func (h *MySQLHandler) Get(ids []string) (map[string]queryProto.Query, error)
- func (h *MySQLHandler) Tables(classId uint, m *queryService.Mini) ([]queryProto.Table, error)
- func (h *MySQLHandler) UpdateExample(classId, instanceId uint, example queryProto.Example) error
- func (h *MySQLHandler) UpdateTables(classId uint, tables []queryProto.Table) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MySQLHandler ¶
type MySQLHandler struct {
// contains filtered or unexported fields
}
func NewMySQLHandler ¶
func NewMySQLHandler(dbm db.Manager, stats *stats.Stats) *MySQLHandler
func (*MySQLHandler) Example ¶
func (h *MySQLHandler) Example(classId, instanceId uint, period time.Time) (queryProto.Example, error)
func (*MySQLHandler) Examples ¶
func (h *MySQLHandler) Examples(classId, instanceId uint) ([]queryProto.Example, error)
func (*MySQLHandler) Get ¶
func (h *MySQLHandler) Get(ids []string) (map[string]queryProto.Query, error)
func (*MySQLHandler) Tables ¶
func (h *MySQLHandler) Tables(classId uint, m *queryService.Mini) ([]queryProto.Table, error)
func (*MySQLHandler) UpdateExample ¶
func (h *MySQLHandler) UpdateExample(classId, instanceId uint, example queryProto.Example) error
func (*MySQLHandler) UpdateTables ¶
func (h *MySQLHandler) UpdateTables(classId uint, tables []queryProto.Table) error
Click to show internal directories.
Click to hide internal directories.