Documentation ¶
Overview ¶
Package config stores some common information used in various places. The name in hindsight might confuse with the golang package config, though there is no relation between the two.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config holds the common information
func NewConfig ¶
func NewConfig(status *global.Status, variables *global.Variables, databaseFilter *filter.DatabaseFilter, wantRelativeStats bool) *Config
NewConfig returns the pointer to a new (empty) config
func (Config) DatabaseFilter ¶
func (c Config) DatabaseFilter() *filter.DatabaseFilter
DatabaseFilter returns the database filter to apply on queries (if appropriate)
func (Config) MySQLVersion ¶
MySQLVersion returns the current MySQL version
func (*Config) SetWantRelativeStats ¶
SetWantRelativeStats tells what we want to see
func (Config) WantRelativeStats ¶
WantRelativeStats tells us what we have asked for
Click to show internal directories.
Click to hide internal directories.