refactor response flow

This commit is contained in:
bergquist
2017-09-21 15:02:17 +02:00
parent adda84d124
commit 55f1b36e31
21 changed files with 66 additions and 72 deletions
+12
View File
@@ -6,6 +6,18 @@ import (
"github.com/grafana/grafana/pkg/models"
)
type TsdbQuery struct {
TimeRange *TimeRange
Queries QuerySlice
}
func NewQueryContext(queries QuerySlice, timeRange *TimeRange) *TsdbQuery {
return &TsdbQuery{
TimeRange: timeRange,
Queries: queries,
}
}
type Query struct {
RefId string
Model *simplejson.Json