config

package
v0.0.0-...-5ecede5 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2018 License: LGPL-3.0-or-later 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