server

package
v1.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2023 License: MIT Imports: 16 Imported by: 0

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

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 New

func New(f demographics.Fetcher, memcacheAddr string) *Server

func (*Server) Collect

func (s *Server) Collect(metrics chan<- prometheus.Metric)

func (*Server) Describe

func (s *Server) Describe(descs chan<- *prometheus.Desc)

func (*Server) Health

func (s *Server) Health(w http.ResponseWriter, _ *http.Request)

func (*Server) Run

func (s *Server) Run(ctx context.Context) (err error)

Run starts the supporting components

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL