state

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	AppKey        string
	APIKey        string
	Gauges        map[string]gaugeDict
	Labels        map[string](map[string](stringDict))
	DefaultGauges gaugeDict
	DataAgeGauge  *prometheus.GaugeVec
	RainAgeGauge  *prometheus.GaugeVec
}

State represents the application state

func Init

func Init(metricPrefix string, appKey string, apiKey string, theConfig *config.Config, disableDefaultGauges bool) *State

Init the state from config

Jump to

Keyboard shortcuts

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