// NewService returns a new instance of Service. func NewService() *Service { s := &Service{ Service: cluster.NewService(cluster.Config{}), } s.Service.TSDBStore = &s.TSDBStore return s }
func (s *Server) appendClusterService(c cluster.Config) { srv := cluster.NewService(c) srv.TSDBStore = s.TSDBStore s.Services = append(s.Services, srv) s.ClusterService = srv }