/
constants.go
24 lines (21 loc) · 985 Bytes
/
constants.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
package mysql
import "time"
const (
// EnvMysqlUsr represents the environment variable where the mysql's username is located
EnvMysqlUsr = "MYSQL_USR"
// EnvMysqlPwd represents the environment variable where the mysql's password is located
EnvMysqlPwd = "MYSQL_PWD"
// EnvMysqlDB represents the environment variable where the mysql's database name is located
EnvMysqlDB = "MYSQL_DB"
// EnvMysqlHost represents the environment variable where the mysql's host is located
EnvMysqlHost = "MYSQL_HOST"
// EnvMysqlNetw represents the environment variable where the mysql's network is located
EnvMysqlNetw = "SERVICE_NETW"
// EnvMysqlPort represents the environment variable where the mysql's port is located
EnvMysqlPort = "MYSQL_PORT"
// EnvDefaultTimeout represents the environment variable where the default timeout is set
EnvDefaultTimeout = "DEFAULT_TIMEOUT"
mysqlURI = "%v:%v@%v(%v)/%v?charset=utf8"
// Timeout for any database request
Timeout = 10 * time.Second
)