config

package
v0.0.0-...-7082fca Latest Latest
Warning

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

Go to latest
Published: Aug 12, 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 {
	Notifiers []*notifierInstace `yaml:"notifiers"`
	Log       *LogConfig         `yaml:"log"`
}

Config is a struct that holds the configuration that is used for the application. It includes logger and notifiers configuration.

func New

func New() *Config

New returns a new Config struct

type LogConfig

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

LogConfig contains the configuration for the logger, e.g. level

Jump to

Keyboard shortcuts

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