2016-10-25 15:20:06 +00:00
|
|
|
package server
|
2016-09-30 20:39:27 +00:00
|
|
|
|
2016-10-20 14:38:23 +00:00
|
|
|
import "github.com/influxdata/chronograf"
|
2016-09-30 20:39:27 +00:00
|
|
|
|
2016-10-28 16:27:06 +00:00
|
|
|
// 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
|
2016-11-04 00:44:28 +00:00
|
|
|
AlertRulesStore chronograf.AlertRulesStore
|
2016-11-17 23:57:46 +00:00
|
|
|
UsersStore chronograf.UsersStore
|
2016-12-14 20:12:20 +00:00
|
|
|
DashboardsStore chronograf.DashboardsStore
|
2016-10-28 16:27:06 +00:00
|
|
|
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-09-30 20:39:27 +00:00
|
|
|
}
|
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"`
|
|
|
|
}
|