config

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 10, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(path string) error

Types

type Config

type Config struct {
	Slack struct {
		Token  string `yaml:"token"`
		Secret string `yaml:"secret"`
		Addr   string `yaml:"addr"`
	} `yaml:"slack"`
	Grafana struct {
		UseClientAuth bool   `yaml:"use_client_auth"`
		ClientAuthP12 string `yaml:"client_auth_p12"`
		Endpoint      string `yaml:"endpoint"`
	} `yaml:"grafana"`
	Dashboards []Dashboard `yaml:"dashboards"`
}
var Global *Config

type Dashboard

type Dashboard struct {
	Name          string `yaml:"name"`
	DashboardID   string `yaml:"dashboardId"`
	DashboardName string `yaml:"dashboardName"`
	OrgID         string `yaml:"orgId"`
	PanelID       string `yaml:"panelId"`
}

func GetDashboard

func GetDashboard(name string) (*Dashboard, error)

Jump to

Keyboard shortcuts

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