func (s *Manager) GetNodesInCluster() int {
	s.lockServices.RLock()
	defer s.lockServices.RUnlock()
	if len(s.services) == 0 {
		return 1
	}
	return len(s.services)
}
GetNodesInCluster get total number of gateways
package syncman
import (
	"context"
	"errors"
	"fmt"
	"net/http"
	"github.com/spaceuptech/space-cloud/gateway/config"
	"github.com/spaceuptech/space-cloud/gateway/model"
	"github.com/spaceuptech/space-cloud/gateway/utils"
)
func (s *Manager) GetSpaceCloudPort() int {
	return s.port
}
func (s *Manager) GetEventSource() string {
	return fmt.Sprintf("sc-%s", s.nodeID)
}
func (s *Manager) GetNodeID() string {
	return s.nodeID
}
func (s *Manager) GetClusterID() string {
	return s.clusterID
}