Esempio n. 1
0
func TestConfig_WriteTracing(t *testing.T) {
	c := httpd.Config{WriteTracing: true}
	s := httpd.NewService(c)
	if !s.PingController.WriteTrace {
		t.Fatalf("write tracing was not set")
	}
}
Esempio n. 2
0
func (s *Server) appendHTTPDService(c httpd.Config) {
	if !c.Enabled {
		return
	}
	srv := httpd.NewService(c)

	srv.SetMetaStore(s.MetaStore)
	srv.SetDataStore(s.DataStore)
	srv.SetQueryExecutor(s.QueryExecutor)
	srv.SetMessagesWriter(s.MessagesWriter)
	srv.Version = s.version

	s.Services = append(s.Services, srv)
}