Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stack ¶
type Stack struct { Cfg *configuration.Configuration DB *db.DB CovidStore *db.PGCovidStore PopulationStore *db.PGPopulationStore SimpleJSONServer *simplejson.Server }
Stack groups the different components that make up the application
func CreateStack ¶
func CreateStack(cfg *configuration.Configuration) (*Stack, error)
CreateStack creates an application stack for the provided configuration
func (*Stack) Collect ¶ added in v1.3.1
func (stack *Stack) Collect(metrics chan<- prometheus.Metric)
Collect implements the prometheus.Collector interface
func (*Stack) Describe ¶ added in v1.3.1
func (stack *Stack) Describe(descs chan<- *prometheus.Desc)
Describe implements the prometheus.Collector interface
func (*Stack) Load ¶
func (stack *Stack) Load()
Load retrieves the latest covid19 figures and stores them in the database
func (*Stack) LoadPopulation ¶
func (stack *Stack) LoadPopulation()
LoadPopulation retrieves the latest population figures and stores them in the database
func (*Stack) RunHandler ¶
RunHandler runs the SimpleJSON server
Click to show internal directories.
Click to hide internal directories.