gofmt
This commit is contained in:
parent
3ee667a40e
commit
ccf5b2e01d
@ -18,23 +18,23 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
TLS_CONFIG_KEY = "ghost"
|
TLS_CONFIG_KEY = "ghost"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ConnectionConfig is the minimal configuration required to connect to a MySQL server
|
// ConnectionConfig is the minimal configuration required to connect to a MySQL server
|
||||||
type ConnectionConfig struct {
|
type ConnectionConfig struct {
|
||||||
Key InstanceKey
|
Key InstanceKey
|
||||||
User string
|
User string
|
||||||
Password string
|
Password string
|
||||||
ImpliedKey *InstanceKey
|
ImpliedKey *InstanceKey
|
||||||
tlsConfig *tls.Config
|
tlsConfig *tls.Config
|
||||||
Timeout float64
|
Timeout float64
|
||||||
transactionIsolation string
|
transactionIsolation string
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewConnectionConfig(transactionIsolation string) *ConnectionConfig {
|
func NewConnectionConfig(transactionIsolation string) *ConnectionConfig {
|
||||||
config := &ConnectionConfig{
|
config := &ConnectionConfig{
|
||||||
Key: InstanceKey{},
|
Key: InstanceKey{},
|
||||||
transactionIsolation: transactionIsolation,
|
transactionIsolation: transactionIsolation,
|
||||||
}
|
}
|
||||||
config.ImpliedKey = &config.Key
|
config.ImpliedKey = &config.Key
|
||||||
|
@ -17,7 +17,6 @@ const (
|
|||||||
transactionIsolation = "REPEATABLE-READ"
|
transactionIsolation = "REPEATABLE-READ"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
log.SetLevel(log.ERROR)
|
log.SetLevel(log.ERROR)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user