Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
Fetch func(context.Context, sciensano.SummaryColumn) (*tabulator.Tabulator, error)
grafanaJSONServer.Metric
Accumulate bool
}
func (Handler) Query ¶
func (h Handler) Query(ctx context.Context, target string, request grafanaJSONServer.QueryRequest) (grafanaJSONServer.QueryResponse, error)
type Handler2 ¶
type Handler2 struct {
Fetch func(context.Context, sciensano.SummaryColumn, sciensano.DoseType) (*tabulator.Tabulator, error)
grafanaJSONServer.Metric
DoseType sciensano.DoseType
Accumulate bool
}
func (Handler2) Query ¶
func (h Handler2) Query(ctx context.Context, target string, request grafanaJSONServer.QueryRequest) (grafanaJSONServer.QueryResponse, error)
type Server ¶
type Server struct {
JSONServer *grafanaJSONServer.Server
Demographics demographics.Fetcher
// contains filtered or unexported fields
}
Server groups Grafana JSON API handlers that retrieve Belgium COVID-19-related statistics
func (*Server) Collect ¶
func (s *Server) Collect(metrics chan<- prometheus.Metric)
func (*Server) Describe ¶
func (s *Server) Describe(descs chan<- *prometheus.Desc)
Click to show internal directories.
Click to hide internal directories.