 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package mysql is Metricbeat module for MySQL server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMySQLEnvDSN ¶
func GetMySQLEnvDSN() string
GetMySQLEnvDSN returns the MySQL server DSN to use for testing. It reads the value from the MYSQL_DSN environment variable and returns root@tcp(127.0.0.1:3306)/ if it is not set.
func NewDB ¶
NewDB returns a new mysql database handle. The dsn value (data source name) must be valid, otherwise an error will be returned.
DSN Format: [username[:password]@][protocol[(address)]]/
func ParseDSN ¶
ParseDSN creates a DSN (data source name) string by parsing the host. It validates the resulting DSN and returns an error if the DSN is invalid.
Format: [username[:password]@][protocol[(address)]]/ Example: root:test@tcp(127.0.0.1:3306)/
Types ¶
This section is empty.
       Source Files
      ¶
      Source Files
      ¶
    
- mysql.go
- testing.go
 Click to show internal directories. 
   Click to hide internal directories.