code: func NewRouter(logger *log.Logger, localDatacenter string) *Router {
  	router := &Router{
  		logger:          logger,
  		localDatacenter: localDatacenter,
  		areas:           make(map[types.AreaID]*areaInfo),
  		managers:        make(map[string][]*Manager),
  	}
  
  	// Hook the direct route lookup by default.
  	router.routeFn = router.findDirectRoute
  
  	return router
  }
docs: // NewRouter returns a new Router with the given configuration.