keepalive.go 242 B

123456789101112131415
  1. package grpclient
  2. import (
  3. "time"
  4. "google.golang.org/grpc/keepalive"
  5. )
  6. var (
  7. defaultKeepAlive = &keepalive.ClientParameters{
  8. Time: 10 * time.Second,
  9. Timeout: time.Second,
  10. PermitWithoutStream: true,
  11. }
  12. )