// NewServer creates a new driver.Server
NewServer creates a new driver.Server
// NewServer creates a new driver . Server
func NewServer(hostPort string, tracer opentracing.Tracer, metricsFactory metrics.Factory, logger log.Factory) *Server {
	server := grpc.NewServer(grpc.UnaryInterceptor(
		otgrpc.OpenTracingServerInterceptor(tracer)),
		grpc.StreamInterceptor(
			otgrpc.OpenTracingStreamServerInterceptor(tracer)))
	return &Server{
		hostPort: hostPort,
		tracer:   tracer,
		logger:   logger,
		server:   server,
		redis:    newRedis(metricsFactory, logger),
	}
}
func NewServer ( hostPort string , tracer opentracing . Tracer , metricsFactory metrics . Factory , logger log . Factory ) * Server { server := grpc . NewServer ( grpc . UnaryInterceptor ( otgrpc . OpenTracingServerInterceptor ( tracer ) ) , grpc . StreamInterceptor ( otgrpc . OpenTracingStreamServerInterceptor ( tracer ) ) ) return & Server { hostPort : hostPort , tracer : tracer , logger : logger , server : server , redis : newRedis ( metricsFactory , logger ) , } }
NewServer creates a new driver.Server
NewServer creates a new driver . Server