github.com/lingyao2333/mo-zero@v1.4.1/core/discov/internal/vars.go (about) 1 package internal 2 3 import "time" 4 5 const ( 6 // Delimiter is a separator that separates the etcd path. 7 Delimiter = '/' 8 9 autoSyncInterval = time.Minute 10 coolDownInterval = time.Second 11 dialTimeout = 5 * time.Second 12 dialKeepAliveTime = 5 * time.Second 13 requestTimeout = 3 * time.Second 14 endpointsSeparator = "," 15 ) 16 17 var ( 18 // DialTimeout is the dial timeout. 19 DialTimeout = dialTimeout 20 // RequestTimeout is the request timeout. 21 RequestTimeout = requestTimeout 22 // NewClient is used to create etcd clients. 23 NewClient = DialClient 24 )