mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-24 01:30:25 +08:00
24 lines
509 B
Go
24 lines
509 B
Go
package internal
|
|
|
|
import "time"
|
|
|
|
const (
|
|
// Delimiter is a separator that separates the etcd path.
|
|
Delimiter = '/'
|
|
|
|
autoSyncInterval = time.Minute
|
|
coolDownInterval = time.Second
|
|
dialTimeout = 5 * time.Second
|
|
requestTimeout = 3 * time.Second
|
|
endpointsSeparator = ","
|
|
)
|
|
|
|
var (
|
|
// DialTimeout is the dial timeout.
|
|
DialTimeout = dialTimeout
|
|
// RequestTimeout is the request timeout.
|
|
RequestTimeout = requestTimeout
|
|
// NewClient is used to create etcd clients.
|
|
NewClient = DialClient
|
|
)
|