mirror of
https://github.com/xinliangnote/go-gin-api.git
synced 2024-04-21 12:31:46 +00:00
16 lines
242 B
Go
16 lines
242 B
Go
package grpclient
|
|
|
|
import (
|
|
"time"
|
|
|
|
"google.golang.org/grpc/keepalive"
|
|
)
|
|
|
|
var (
|
|
defaultKeepAlive = &keepalive.ClientParameters{
|
|
Time: 10 * time.Second,
|
|
Timeout: time.Second,
|
|
PermitWithoutStream: true,
|
|
}
|
|
)
|