config

package
v0.0.0-...-8e17a21 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertMessage

type AlertMessage struct {
	To      string `toml:"to"`
	From    string `toml:"from"`
	Subject string `toml:"subject"`
}

type Config

type Config struct {
	Daemon       Daemon       `toml:"daemon"`
	AlertMessage AlertMessage `toml:"alert_message"`
	Smtp         Smtp         `toml:"smtp"`
	NodesList    []string     `toml:"nodes_list"`
}

func (*Config) Read

func (c *Config) Read(fileName string) error

type Daemon

type Daemon struct {
	DaemonMode     bool `toml:"daemon"`
	QueryingPeriod int  `toml:"querying_period"`
}

type Smtp

type Smtp struct {
	Host     string `toml:"host"`
	Port     int    `toml:"port"`
	Username string `toml:"username"`
	Password string `toml:"password"`
}

Jump to

Keyboard shortcuts

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