go-zero/core/discov/internal/vars.go
2020-07-26 17:09:05 +08:00

20 lines
378 B
Go

package internal
import "time"
const (
autoSyncInterval = time.Minute
coolDownInterval = time.Second
dialTimeout = 5 * time.Second
dialKeepAliveTime = 5 * time.Second
requestTimeout = 3 * time.Second
Delimiter = '/'
endpointsSeparator = ","
)
var (
DialTimeout = dialTimeout
RequestTimeout = requestTimeout
NewClient = DialClient
)