Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultQPS is default qps of grpc server. DefaultQPS = 10 * 1000 // DefaultBurst is default burst of grpc server. DefaultBurst = 20 * 1000 // DefaultMaxConnectionIdle is default max connection idle of grpc keepalive. DefaultMaxConnectionIdle = 10 * time.Minute // DefaultMaxConnectionAge is default max connection age of grpc keepalive. DefaultMaxConnectionAge = 12 * time.Hour // DefaultMaxConnectionAgeGrace is default max connection age grace of grpc keepalive. DefaultMaxConnectionAgeGrace = 5 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(svr dfdaemonv1.DaemonServer, healthServer healthpb.HealthServer, opts ...grpc.ServerOption) *grpc.Server
New returns a grpc server instance and register service on grpc server.
Types ¶
type DaemonServer ¶
type DaemonServer interface { dfdaemonv1.DaemonServer }
Click to show internal directories.
Click to hide internal directories.