-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconst.go
31 lines (27 loc) · 959 Bytes
/
const.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
27
28
29
30
31
package coredns_mysql_extend
import "time"
const (
defaultDSN = "username:password@tcp(127.0.0.1:3306)/dns"
defaultDumpFile = "dump_dns.json"
defaultTTL = 360
defaultZonesTable = "zones"
defaultRecordsTable = "records"
defaultMaxIdleConns = 4
defaultMaxOpenConns = 8
defaultConnMaxIdleTime = time.Hour * 1
defaultConnMaxLifeTime = time.Hour * 24
defaultFailHeartBeatTime = time.Second * 10
defaultSuccessHeartBeatTime = time.Second * 60
defaultQueryZoneSQL = "SELECT id, zone_name FROM %s"
defaultQueryRecordSQL = "SELECT id, zone_id, hostname, type, data, ttl FROM %s WHERE online!=0 and zone_id=? and hostname=? and type=?"
zero = 0
zeroTime = zero
safeMode = 0640
rootZone = "."
keySeparator = ":"
zoneSeparator = "."
wildcard = "*"
zoneSelf = "@"
cnameQtype = "CNAME"
pluginName = "mysql"
)