code: func getServerInfo(id string) *ServerInfo {
  	cfg := config.GetGlobalConfig()
  	info := &ServerInfo{
  		ID:         id,
  		IP:         cfg.AdvertiseAddress,
  		Port:       cfg.Port,
  		StatusPort: cfg.Status.StatusPort,
  		Lease:      cfg.Lease,
  	}
  	info.Version = mysql.ServerVersion
  	info.GitHash = printer.TiDBGitHash
  	return info
  }
docs: // getServerInfo gets self tidb server information.