stack

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: MIT Imports: 13 Imported by: 0

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

func (stack *Stack) RunHandler() error

RunHandler runs the SimpleJSON server

Jump to

Keyboard shortcuts

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