config

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2018 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DEFAULT_INTERVAL              uint  = 60         // 1 minute
	DEFAULT_MAX_SLOW_LOG_SIZE     int64 = 1073741824 // 1G
	DEFAULT_REMOVE_OLD_SLOW_LOGS        = true       // whether to remove old slow logs after rotation
	DEFAULT_OLD_SLOW_LOGS_TO_KEEP       = 1          // how many slow logs to keep on filesystem
	DEFAULT_EXAMPLE_QUERIES             = true
	// internal
	DEFAULT_WORKER_RUNTIME uint = 55
	DEFAULT_REPORT_LIMIT   uint = 200
)

Functions

func ReadInfoFromShowGlobalStatus

func ReadInfoFromShowGlobalStatus(conn mysql.Connector) (info map[string]interface{})

func ValidateConfig

func ValidateConfig(setConfig pc.QAN) (pc.QAN, error)

Types

type MySQLVarType

type MySQLVarType int
const (
	MySQLVarTypeBoolean MySQLVarType = iota
	MySQLVarTypeString
	MySQLVarTypeInteger
	MySQLVarTypeNumeric
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL