config

package
v0.0.0-...-b7fae21 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 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 Config

type Config struct {
	Checks    []*checkInstance   `yaml:"checks"`
	Notifiers []*notifierInstace `yaml:"notifiers"`
	Log       *LogConfig         `yaml:"log"`
}

Config is the struct that holds the entire configuration for the app

func New

func New() *Config

New return a new `*Config` with `Checks` slice initialized with 0 checks

type LogConfig

type LogConfig struct {
	Level string `yaml:"level"`
}

LogConfig is the struct that holds the configuration for the logger

Jump to

Keyboard shortcuts

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