mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-04-15 07:16:34 +00:00
* Add Mysql variables to collector * Cleanup row scanning and a few updates based on feedback * Close db connection * Move defer db.close * Updates based on feedback * Use vars in loop instead of struct * Only pull parameters specified in collector config Co-authored-by: Ethan Mosbaugh <ethan@replicated.com>
9 lines
278 B
Go
9 lines
278 B
Go
package collect
|
|
|
|
type DatabaseConnection struct {
|
|
IsConnected bool `json:"isConnected"`
|
|
Error string `json:"error,omitempty"`
|
|
Version string `json:"version,omitempty"`
|
|
Variables map[string]string `json:"variables,omitempty"`
|
|
}
|