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