code: func NewServer(hostname string, recorder record.EventRecorder, listener Listener, httpServerFactory HTTPServerFactory) Server {
  	if listener == nil {
  		listener = stdNetListener{}
  	}
  	if httpServerFactory == nil {
  		httpServerFactory = stdHTTPServerFactory{}
  	}
  	return &server{
  		hostname:    hostname,
  		recorder:    recorder,
  		listener:    listener,
  		httpFactory: httpServerFactory,
  		services:    map[types.NamespacedName]*hcInstance{},
  	}
  }
docs: // NewServer allocates a new healthcheck server manager.  If either
  // of the injected arguments are nil, defaults will be used.