config

package
v0.0.0-...-f848192 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseHandlers

func ParseHandlers(handlers []interface{}, alerters alerting.Alerters) []alerting.Alerter

ParseHandlers is a helper function used by Setup

func ParseTests

func ParseTests(config Config, tests map[string]interface{}) services.Test

ParseTests is a helper function used by Setup

func SetupAlerters

func SetupAlerters(config Config, rawConfig map[string]interface{}) alerting.Alerters

SetupAlerters is responsible for parsing the alerters config section

func SetupServices

func SetupServices(config Config, rawConfig map[string]interface{}, alerters alerting.Alerters) services.Services

SetupServices is responsible for parsing the services config section

Types

type Config

type Config struct {
	Alerters alerting.Alerters
	Core     *Core
	Services services.Services
}

Config represents the configuration

func Setup

func Setup() *Config

Setup is responsible for initialising the configuration

type Core

type Core struct {
	RetryTimeoutSeconds int
	TestIntervalSeconds int
}

Core is the type for our core configuration section

func NewCore

func NewCore() *Core

func SetupCore

func SetupCore(config map[string]interface{}) *Core

SetupCore is responsible for parsing the core config section

Jump to

Keyboard shortcuts

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