// NewHandler returns a new instance of Handler. func NewHandler(requireAuthentication bool) *Handler { h := &Handler{ Handler: httpd.NewHandler(requireAuthentication, true, false), } h.Handler.MetaStore = &h.MetaStore h.Handler.QueryExecutor = &h.QueryExecutor h.Handler.Version = "0.0.0" return h }
// NewHandler returns a new instance of Handler. func NewHandler(requireAuthentication bool) *Handler { statMap := influxdb.NewStatistics("httpd", "httpd", nil) h := &Handler{ Handler: httpd.NewHandler(requireAuthentication, true, false, statMap), } h.Handler.MetaStore = &h.MetaStore h.Handler.QueryExecutor = &h.QueryExecutor h.Handler.Version = "0.0.0" return h }