influxdb/server/service.go

24 lines
693 B
Go
Raw Normal View History

2016-10-25 15:20:06 +00:00
package server
2016-10-20 14:38:23 +00:00
import "github.com/influxdata/chronograf"
// Service handles REST calls to the persistence
type Service struct {
2016-10-20 14:38:23 +00:00
ExplorationStore chronograf.ExplorationStore
SourcesStore chronograf.SourcesStore
ServersStore chronograf.ServersStore
LayoutStore chronograf.LayoutStore
AlertRulesStore chronograf.AlertRulesStore
UsersStore chronograf.UsersStore
2016-12-14 20:12:20 +00:00
DashboardsStore chronograf.DashboardsStore
TimeSeries chronograf.TimeSeries
2016-10-25 15:20:06 +00:00
Logger chronograf.Logger
2016-11-18 00:52:19 +00:00
UseAuth bool
}
2016-11-19 17:41:06 +00:00
// ErrorMessage is the error response format for all service errors
type ErrorMessage struct {
Code int `json:"code"`
Message string `json:"message"`
}