You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-zero/core/discov/internal/vars.go

24 lines
509 B
Go

4 years ago
package internal
import "time"
const (
// Delimiter is a separator that separates the etcd path.
Delimiter = '/'
4 years ago
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.
4 years ago
RequestTimeout = requestTimeout
// NewClient is used to create etcd clients.
NewClient = DialClient
4 years ago
)