mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-24 09:40:24 +08:00
20 lines
378 B
Go
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
|
||
|
)
|