forked from vitessio/vitess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conn_params.go
26 lines (23 loc) · 912 Bytes
/
conn_params.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2015, Google Inc. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package sqldb defines an interface for low level db connection
package sqldb
// ConnParams contains all the parameters to use to connect to mysql
type ConnParams struct {
Engine string `json:"engine"`
Host string `json:"host"`
Port int `json:"port"`
Uname string `json:"uname"`
Pass string `json:"pass"`
DbName string `json:"dbname"`
UnixSocket string `json:"unix_socket"`
Charset string `json:"charset"`
Flags uint64 `json:"flags"`
// the following flags are only used for 'Change Master' command
// for now (along with flags |= 2048 for CLIENT_SSL)
SslCa string `json:"ssl_ca"`
SslCaPath string `json:"ssl_ca_path"`
SslCert string `json:"ssl_cert"`
SslKey string `json:"ssl_key"`
}