chronograf/server/service.go

21 lines
585 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
TimeSeries chronograf.TimeSeries
2016-10-25 15:20:06 +00:00
Logger chronograf.Logger
}
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"`
}