config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Slack      Slack       `yaml:"slack"`
	Grafana    Grafana     `yaml:"grafana"`
	Dashboards []Dashboard `yaml:"dashboards"`
}

func Load

func Load(path string) (*Config, error)

type Dashboard

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

type Grafana

type Grafana struct {
	UseClientAuth bool   `yaml:"use_client_auth"`
	ClientAuthP12 string `yaml:"client_auth_p12"`
	Endpoint      string `yaml:"endpoint"`
	ApiKey        string `yaml:"apikey"`
}

type Slack

type Slack struct {
	Token   string `yaml:"token"`
	Channel string `yaml:"channel"`
}

Jump to

Keyboard shortcuts

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