vars.go 547 B

123456789101112131415161718192021222324
  1. package internal
  2. import "time"
  3. const (
  4. // Delimiter is a separator that separates the etcd path.
  5. Delimiter = '/'
  6. autoSyncInterval = time.Minute
  7. coolDownInterval = time.Second
  8. dialTimeout = 5 * time.Second
  9. dialKeepAliveTime = 5 * time.Second
  10. requestTimeout = 3 * time.Second
  11. endpointsSeparator = ","
  12. )
  13. var (
  14. // DialTimeout is the dial timeout.
  15. DialTimeout = dialTimeout
  16. // RequestTimeout is the request timeout.
  17. RequestTimeout = requestTimeout
  18. // NewClient is used to create etcd clients.
  19. NewClient = DialClient
  20. )